Goby v2
logger.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/common/protobuf/logger.proto
3 
4 #ifndef PROTOBUF_goby_2fcommon_2fprotobuf_2flogger_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fcommon_2fprotobuf_2flogger_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 2006000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/generated_message_util.h>
23 #include <google/protobuf/message.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include <google/protobuf/generated_enum_reflection.h>
27 #include <google/protobuf/unknown_field_set.h>
28 #include "goby/common/protobuf/option_extensions.pb.h"
29 #include <boost/units/quantity.hpp>
30 #include <boost/units/absolute.hpp>
31 #include <boost/units/dimensionless_type.hpp>
32 #include <boost/units/make_scaled_unit.hpp>
33 // @@protoc_insertion_point(includes)
34 
35 namespace goby {
36 namespace common {
37 namespace protobuf {
38 
39 // Internal implementation detail -- do not call these.
40 void protobuf_AddDesc_goby_2fcommon_2fprotobuf_2flogger_2eproto();
41 void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2flogger_2eproto();
42 void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2flogger_2eproto();
43 
44 class GLogConfig;
45 class GLogConfig_FileLog;
46 
47 enum GLogConfig_Verbosity {
48  GLogConfig_Verbosity_QUIET = 1,
49  GLogConfig_Verbosity_WARN = 2,
50  GLogConfig_Verbosity_VERBOSE = 3,
51  GLogConfig_Verbosity_DEBUG1 = 5,
52  GLogConfig_Verbosity_DEBUG2 = 6,
53  GLogConfig_Verbosity_DEBUG3 = 7,
54  GLogConfig_Verbosity_VERBOSITY_QUIET = 1,
55  GLogConfig_Verbosity_VERBOSITY_WARN = 2,
56  GLogConfig_Verbosity_VERBOSITY_VERBOSE = 3,
57  GLogConfig_Verbosity_VERBOSITY_DEBUG = 6,
58  GLogConfig_Verbosity_VERBOSITY_GUI = 6
59 };
60 bool GLogConfig_Verbosity_IsValid(int value);
61 const GLogConfig_Verbosity GLogConfig_Verbosity_Verbosity_MIN = GLogConfig_Verbosity_QUIET;
62 const GLogConfig_Verbosity GLogConfig_Verbosity_Verbosity_MAX = GLogConfig_Verbosity_DEBUG3;
63 const int GLogConfig_Verbosity_Verbosity_ARRAYSIZE = GLogConfig_Verbosity_Verbosity_MAX + 1;
64 
65 const ::google::protobuf::EnumDescriptor* GLogConfig_Verbosity_descriptor();
66 inline const ::std::string& GLogConfig_Verbosity_Name(GLogConfig_Verbosity value) {
67  return ::google::protobuf::internal::NameOfEnum(
68  GLogConfig_Verbosity_descriptor(), value);
69 }
70 inline bool GLogConfig_Verbosity_Parse(
71  const ::std::string& name, GLogConfig_Verbosity* value) {
72  return ::google::protobuf::internal::ParseNamedEnum<GLogConfig_Verbosity>(
73  GLogConfig_Verbosity_descriptor(), name, value);
74 }
75 // ===================================================================
76 
77 class GLogConfig_FileLog : public ::google::protobuf::Message {
78  public:
80  virtual ~GLogConfig_FileLog();
81 
83 
84  inline GLogConfig_FileLog& operator=(const GLogConfig_FileLog& from) {
85  CopyFrom(from);
86  return *this;
87  }
88 
89  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
90  return _unknown_fields_;
91  }
92 
93  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
94  return &_unknown_fields_;
95  }
96 
97  static const ::google::protobuf::Descriptor* descriptor();
98  static const GLogConfig_FileLog& default_instance();
99 
100  void Swap(GLogConfig_FileLog* other);
101 
102  // implements Message ----------------------------------------------
103 
104  GLogConfig_FileLog* New() const;
105  void CopyFrom(const ::google::protobuf::Message& from);
106  void MergeFrom(const ::google::protobuf::Message& from);
107  void CopyFrom(const GLogConfig_FileLog& from);
108  void MergeFrom(const GLogConfig_FileLog& from);
109  void Clear();
110  bool IsInitialized() const;
111 
112  int ByteSize() const;
113  bool MergePartialFromCodedStream(
114  ::google::protobuf::io::CodedInputStream* input);
115  void SerializeWithCachedSizes(
116  ::google::protobuf::io::CodedOutputStream* output) const;
117  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
118  int GetCachedSize() const { return _cached_size_; }
119  private:
120  void SharedCtor();
121  void SharedDtor();
122  void SetCachedSize(int size) const;
123  public:
124  ::google::protobuf::Metadata GetMetadata() const;
125 
126  // nested types ----------------------------------------------------
127 
128  // accessors -------------------------------------------------------
129 
130  // required string file_name = 1;
131  inline bool has_file_name() const;
132  inline void clear_file_name();
133  static const int kFileNameFieldNumber = 1;
134  inline const ::std::string& file_name() const;
135  inline void set_file_name(const ::std::string& value);
136  inline void set_file_name(const char* value);
137  inline void set_file_name(const char* value, size_t size);
138  inline ::std::string* mutable_file_name();
139  inline ::std::string* release_file_name();
140  inline void set_allocated_file_name(::std::string* file_name);
141 
142  // optional .goby.common.protobuf.GLogConfig.Verbosity verbosity = 2 [default = VERBOSE];
143  inline bool has_verbosity() const;
144  inline void clear_verbosity();
145  static const int kVerbosityFieldNumber = 2;
146  inline ::goby::common::protobuf::GLogConfig_Verbosity verbosity() const;
147  inline void set_verbosity(::goby::common::protobuf::GLogConfig_Verbosity value);
148 
149  // @@protoc_insertion_point(class_scope:goby.common.protobuf.GLogConfig.FileLog)
150  private:
151  inline void set_has_file_name();
152  inline void clear_has_file_name();
153  inline void set_has_verbosity();
154  inline void clear_has_verbosity();
155 
156  ::google::protobuf::UnknownFieldSet _unknown_fields_;
157 
158  ::google::protobuf::uint32 _has_bits_[1];
159  mutable int _cached_size_;
160  ::std::string* file_name_;
161  int verbosity_;
162  friend void protobuf_AddDesc_goby_2fcommon_2fprotobuf_2flogger_2eproto();
163  friend void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2flogger_2eproto();
164  friend void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2flogger_2eproto();
165 
166  void InitAsDefaultInstance();
167  static GLogConfig_FileLog* default_instance_;
168 };
169 // -------------------------------------------------------------------
170 
171 class GLogConfig : public ::google::protobuf::Message {
172  public:
173  GLogConfig();
174  virtual ~GLogConfig();
175 
176  GLogConfig(const GLogConfig& from);
177 
178  inline GLogConfig& operator=(const GLogConfig& from) {
179  CopyFrom(from);
180  return *this;
181  }
182 
183  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
184  return _unknown_fields_;
185  }
186 
187  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
188  return &_unknown_fields_;
189  }
190 
191  static const ::google::protobuf::Descriptor* descriptor();
192  static const GLogConfig& default_instance();
193 
194  void Swap(GLogConfig* other);
195 
196  // implements Message ----------------------------------------------
197 
198  GLogConfig* New() const;
199  void CopyFrom(const ::google::protobuf::Message& from);
200  void MergeFrom(const ::google::protobuf::Message& from);
201  void CopyFrom(const GLogConfig& from);
202  void MergeFrom(const GLogConfig& from);
203  void Clear();
204  bool IsInitialized() const;
205 
206  int ByteSize() const;
207  bool MergePartialFromCodedStream(
208  ::google::protobuf::io::CodedInputStream* input);
209  void SerializeWithCachedSizes(
210  ::google::protobuf::io::CodedOutputStream* output) const;
211  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
212  int GetCachedSize() const { return _cached_size_; }
213  private:
214  void SharedCtor();
215  void SharedDtor();
216  void SetCachedSize(int size) const;
217  public:
218  ::google::protobuf::Metadata GetMetadata() const;
219 
220  // nested types ----------------------------------------------------
221 
222  typedef GLogConfig_FileLog FileLog;
223 
224  typedef GLogConfig_Verbosity Verbosity;
225  static const Verbosity QUIET = GLogConfig_Verbosity_QUIET;
226  static const Verbosity WARN = GLogConfig_Verbosity_WARN;
227  static const Verbosity VERBOSE = GLogConfig_Verbosity_VERBOSE;
228  static const Verbosity DEBUG1 = GLogConfig_Verbosity_DEBUG1;
229  static const Verbosity DEBUG2 = GLogConfig_Verbosity_DEBUG2;
230  static const Verbosity DEBUG3 = GLogConfig_Verbosity_DEBUG3;
231  static const Verbosity VERBOSITY_QUIET = GLogConfig_Verbosity_VERBOSITY_QUIET;
232  static const Verbosity VERBOSITY_WARN = GLogConfig_Verbosity_VERBOSITY_WARN;
233  static const Verbosity VERBOSITY_VERBOSE = GLogConfig_Verbosity_VERBOSITY_VERBOSE;
234  static const Verbosity VERBOSITY_DEBUG = GLogConfig_Verbosity_VERBOSITY_DEBUG;
235  static const Verbosity VERBOSITY_GUI = GLogConfig_Verbosity_VERBOSITY_GUI;
236  static inline bool Verbosity_IsValid(int value) {
237  return GLogConfig_Verbosity_IsValid(value);
238  }
239  static const Verbosity Verbosity_MIN =
240  GLogConfig_Verbosity_Verbosity_MIN;
241  static const Verbosity Verbosity_MAX =
242  GLogConfig_Verbosity_Verbosity_MAX;
243  static const int Verbosity_ARRAYSIZE =
244  GLogConfig_Verbosity_Verbosity_ARRAYSIZE;
245  static inline const ::google::protobuf::EnumDescriptor*
246  Verbosity_descriptor() {
247  return GLogConfig_Verbosity_descriptor();
248  }
249  static inline const ::std::string& Verbosity_Name(Verbosity value) {
250  return GLogConfig_Verbosity_Name(value);
251  }
252  static inline bool Verbosity_Parse(const ::std::string& name,
253  Verbosity* value) {
254  return GLogConfig_Verbosity_Parse(name, value);
255  }
256 
257  // accessors -------------------------------------------------------
258 
259  // optional .goby.common.protobuf.GLogConfig.Verbosity tty_verbosity = 1 [default = QUIET];
260  inline bool has_tty_verbosity() const;
261  inline void clear_tty_verbosity();
262  static const int kTtyVerbosityFieldNumber = 1;
263  inline ::goby::common::protobuf::GLogConfig_Verbosity tty_verbosity() const;
264  inline void set_tty_verbosity(::goby::common::protobuf::GLogConfig_Verbosity value);
265 
266  // optional bool show_gui = 2 [default = false];
267  inline bool has_show_gui() const;
268  inline void clear_show_gui();
269  static const int kShowGuiFieldNumber = 2;
270  inline bool show_gui() const;
271  inline void set_show_gui(bool value);
272 
273  // repeated .goby.common.protobuf.GLogConfig.FileLog file_log = 3;
274  inline int file_log_size() const;
275  inline void clear_file_log();
276  static const int kFileLogFieldNumber = 3;
277  inline const ::goby::common::protobuf::GLogConfig_FileLog& file_log(int index) const;
278  inline ::goby::common::protobuf::GLogConfig_FileLog* mutable_file_log(int index);
279  inline ::goby::common::protobuf::GLogConfig_FileLog* add_file_log();
280  inline const ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::GLogConfig_FileLog >&
281  file_log() const;
282  inline ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::GLogConfig_FileLog >*
283  mutable_file_log();
284 
285  // @@protoc_insertion_point(class_scope:goby.common.protobuf.GLogConfig)
286  private:
287  inline void set_has_tty_verbosity();
288  inline void clear_has_tty_verbosity();
289  inline void set_has_show_gui();
290  inline void clear_has_show_gui();
291 
292  ::google::protobuf::UnknownFieldSet _unknown_fields_;
293 
294  ::google::protobuf::uint32 _has_bits_[1];
295  mutable int _cached_size_;
296  int tty_verbosity_;
297  bool show_gui_;
298  ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::GLogConfig_FileLog > file_log_;
299  friend void protobuf_AddDesc_goby_2fcommon_2fprotobuf_2flogger_2eproto();
300  friend void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2flogger_2eproto();
301  friend void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2flogger_2eproto();
302 
303  void InitAsDefaultInstance();
304  static GLogConfig* default_instance_;
305 };
306 // ===================================================================
307 
308 
309 // ===================================================================
310 
311 // GLogConfig_FileLog
312 
313 // required string file_name = 1;
314 inline bool GLogConfig_FileLog::has_file_name() const {
315  return (_has_bits_[0] & 0x00000001u) != 0;
316 }
317 inline void GLogConfig_FileLog::set_has_file_name() {
318  _has_bits_[0] |= 0x00000001u;
319 }
320 inline void GLogConfig_FileLog::clear_has_file_name() {
321  _has_bits_[0] &= ~0x00000001u;
322 }
323 inline void GLogConfig_FileLog::clear_file_name() {
324  if (file_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
325  file_name_->clear();
326  }
327  clear_has_file_name();
328 }
329 inline const ::std::string& GLogConfig_FileLog::file_name() const {
330  // @@protoc_insertion_point(field_get:goby.common.protobuf.GLogConfig.FileLog.file_name)
331  return *file_name_;
332 }
333 inline void GLogConfig_FileLog::set_file_name(const ::std::string& value) {
334  set_has_file_name();
335  if (file_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
336  file_name_ = new ::std::string;
337  }
338  file_name_->assign(value);
339  // @@protoc_insertion_point(field_set:goby.common.protobuf.GLogConfig.FileLog.file_name)
340 }
341 inline void GLogConfig_FileLog::set_file_name(const char* value) {
342  set_has_file_name();
343  if (file_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
344  file_name_ = new ::std::string;
345  }
346  file_name_->assign(value);
347  // @@protoc_insertion_point(field_set_char:goby.common.protobuf.GLogConfig.FileLog.file_name)
348 }
349 inline void GLogConfig_FileLog::set_file_name(const char* value, size_t size) {
350  set_has_file_name();
351  if (file_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
352  file_name_ = new ::std::string;
353  }
354  file_name_->assign(reinterpret_cast<const char*>(value), size);
355  // @@protoc_insertion_point(field_set_pointer:goby.common.protobuf.GLogConfig.FileLog.file_name)
356 }
357 inline ::std::string* GLogConfig_FileLog::mutable_file_name() {
358  set_has_file_name();
359  if (file_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
360  file_name_ = new ::std::string;
361  }
362  // @@protoc_insertion_point(field_mutable:goby.common.protobuf.GLogConfig.FileLog.file_name)
363  return file_name_;
364 }
365 inline ::std::string* GLogConfig_FileLog::release_file_name() {
366  clear_has_file_name();
367  if (file_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
368  return NULL;
369  } else {
370  ::std::string* temp = file_name_;
371  file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
372  return temp;
373  }
374 }
375 inline void GLogConfig_FileLog::set_allocated_file_name(::std::string* file_name) {
376  if (file_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
377  delete file_name_;
378  }
379  if (file_name) {
380  set_has_file_name();
381  file_name_ = file_name;
382  } else {
383  clear_has_file_name();
384  file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
385  }
386  // @@protoc_insertion_point(field_set_allocated:goby.common.protobuf.GLogConfig.FileLog.file_name)
387 }
388 
389 // optional .goby.common.protobuf.GLogConfig.Verbosity verbosity = 2 [default = VERBOSE];
390 inline bool GLogConfig_FileLog::has_verbosity() const {
391  return (_has_bits_[0] & 0x00000002u) != 0;
392 }
393 inline void GLogConfig_FileLog::set_has_verbosity() {
394  _has_bits_[0] |= 0x00000002u;
395 }
396 inline void GLogConfig_FileLog::clear_has_verbosity() {
397  _has_bits_[0] &= ~0x00000002u;
398 }
399 inline void GLogConfig_FileLog::clear_verbosity() {
400  verbosity_ = 3;
401  clear_has_verbosity();
402 }
403 inline ::goby::common::protobuf::GLogConfig_Verbosity GLogConfig_FileLog::verbosity() const {
404  // @@protoc_insertion_point(field_get:goby.common.protobuf.GLogConfig.FileLog.verbosity)
405  return static_cast< ::goby::common::protobuf::GLogConfig_Verbosity >(verbosity_);
406 }
407 inline void GLogConfig_FileLog::set_verbosity(::goby::common::protobuf::GLogConfig_Verbosity value) {
408  assert(::goby::common::protobuf::GLogConfig_Verbosity_IsValid(value));
409  set_has_verbosity();
410  verbosity_ = value;
411  // @@protoc_insertion_point(field_set:goby.common.protobuf.GLogConfig.FileLog.verbosity)
412 }
413 
414 // -------------------------------------------------------------------
415 
416 // GLogConfig
417 
418 // optional .goby.common.protobuf.GLogConfig.Verbosity tty_verbosity = 1 [default = QUIET];
419 inline bool GLogConfig::has_tty_verbosity() const {
420  return (_has_bits_[0] & 0x00000001u) != 0;
421 }
422 inline void GLogConfig::set_has_tty_verbosity() {
423  _has_bits_[0] |= 0x00000001u;
424 }
425 inline void GLogConfig::clear_has_tty_verbosity() {
426  _has_bits_[0] &= ~0x00000001u;
427 }
428 inline void GLogConfig::clear_tty_verbosity() {
429  tty_verbosity_ = 1;
430  clear_has_tty_verbosity();
431 }
432 inline ::goby::common::protobuf::GLogConfig_Verbosity GLogConfig::tty_verbosity() const {
433  // @@protoc_insertion_point(field_get:goby.common.protobuf.GLogConfig.tty_verbosity)
434  return static_cast< ::goby::common::protobuf::GLogConfig_Verbosity >(tty_verbosity_);
435 }
436 inline void GLogConfig::set_tty_verbosity(::goby::common::protobuf::GLogConfig_Verbosity value) {
437  assert(::goby::common::protobuf::GLogConfig_Verbosity_IsValid(value));
438  set_has_tty_verbosity();
439  tty_verbosity_ = value;
440  // @@protoc_insertion_point(field_set:goby.common.protobuf.GLogConfig.tty_verbosity)
441 }
442 
443 // optional bool show_gui = 2 [default = false];
444 inline bool GLogConfig::has_show_gui() const {
445  return (_has_bits_[0] & 0x00000002u) != 0;
446 }
447 inline void GLogConfig::set_has_show_gui() {
448  _has_bits_[0] |= 0x00000002u;
449 }
450 inline void GLogConfig::clear_has_show_gui() {
451  _has_bits_[0] &= ~0x00000002u;
452 }
453 inline void GLogConfig::clear_show_gui() {
454  show_gui_ = false;
455  clear_has_show_gui();
456 }
457 inline bool GLogConfig::show_gui() const {
458  // @@protoc_insertion_point(field_get:goby.common.protobuf.GLogConfig.show_gui)
459  return show_gui_;
460 }
461 inline void GLogConfig::set_show_gui(bool value) {
462  set_has_show_gui();
463  show_gui_ = value;
464  // @@protoc_insertion_point(field_set:goby.common.protobuf.GLogConfig.show_gui)
465 }
466 
467 // repeated .goby.common.protobuf.GLogConfig.FileLog file_log = 3;
468 inline int GLogConfig::file_log_size() const {
469  return file_log_.size();
470 }
471 inline void GLogConfig::clear_file_log() {
472  file_log_.Clear();
473 }
474 inline const ::goby::common::protobuf::GLogConfig_FileLog& GLogConfig::file_log(int index) const {
475  // @@protoc_insertion_point(field_get:goby.common.protobuf.GLogConfig.file_log)
476  return file_log_.Get(index);
477 }
478 inline ::goby::common::protobuf::GLogConfig_FileLog* GLogConfig::mutable_file_log(int index) {
479  // @@protoc_insertion_point(field_mutable:goby.common.protobuf.GLogConfig.file_log)
480  return file_log_.Mutable(index);
481 }
482 inline ::goby::common::protobuf::GLogConfig_FileLog* GLogConfig::add_file_log() {
483  // @@protoc_insertion_point(field_add:goby.common.protobuf.GLogConfig.file_log)
484  return file_log_.Add();
485 }
486 inline const ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::GLogConfig_FileLog >&
487 GLogConfig::file_log() const {
488  // @@protoc_insertion_point(field_list:goby.common.protobuf.GLogConfig.file_log)
489  return file_log_;
490 }
491 inline ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::GLogConfig_FileLog >*
492 GLogConfig::mutable_file_log() {
493  // @@protoc_insertion_point(field_mutable_list:goby.common.protobuf.GLogConfig.file_log)
494  return &file_log_;
495 }
496 
497 
498 // @@protoc_insertion_point(namespace_scope)
499 
500 } // namespace protobuf
501 } // namespace common
502 } // namespace goby
503 
504 #ifndef SWIG
505 namespace google {
506 namespace protobuf {
507 
508 template <> struct is_proto_enum< ::goby::common::protobuf::GLogConfig_Verbosity> : ::google::protobuf::internal::true_type {};
509 template <>
510 inline const EnumDescriptor* GetEnumDescriptor< ::goby::common::protobuf::GLogConfig_Verbosity>() {
511  return ::goby::common::protobuf::GLogConfig_Verbosity_descriptor();
512 }
513 
514 } // namespace google
515 } // namespace protobuf
516 #endif // SWIG
517 
518 // @@protoc_insertion_point(global_scope)
519 
520 #endif // PROTOBUF_goby_2fcommon_2fprotobuf_2flogger_2eproto__INCLUDED
The global namespace for the Goby project.