4 #ifndef PROTOBUF_goby_2fcommon_2fprotobuf_2flogger_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fcommon_2fprotobuf_2flogger_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 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 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. 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> 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();
45 class GLogConfig_FileLog;
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
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;
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);
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);
89 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
90 return _unknown_fields_;
93 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
94 return &_unknown_fields_;
97 static const ::google::protobuf::Descriptor* descriptor();
105 void CopyFrom(const ::google::protobuf::Message& from);
106 void MergeFrom(const ::google::protobuf::Message& from);
110 bool IsInitialized()
const;
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_; }
122 void SetCachedSize(
int size)
const;
124 ::google::protobuf::Metadata GetMetadata()
const;
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);
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);
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();
156 ::google::protobuf::UnknownFieldSet _unknown_fields_;
158 ::google::protobuf::uint32 _has_bits_[1];
159 mutable int _cached_size_;
160 ::std::string* file_name_;
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();
166 void InitAsDefaultInstance();
183 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
184 return _unknown_fields_;
187 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
188 return &_unknown_fields_;
191 static const ::google::protobuf::Descriptor* descriptor();
199 void CopyFrom(const ::google::protobuf::Message& from);
200 void MergeFrom(const ::google::protobuf::Message& from);
204 bool IsInitialized()
const;
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_; }
216 void SetCachedSize(
int size)
const;
218 ::google::protobuf::Metadata GetMetadata()
const;
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);
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();
249 static inline const ::std::string& Verbosity_Name(Verbosity value) {
250 return GLogConfig_Verbosity_Name(value);
252 static inline bool Verbosity_Parse(const ::std::string& name,
254 return GLogConfig_Verbosity_Parse(name, value);
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);
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);
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 >&
282 inline ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::GLogConfig_FileLog >*
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();
292 ::google::protobuf::UnknownFieldSet _unknown_fields_;
294 ::google::protobuf::uint32 _has_bits_[1];
295 mutable int _cached_size_;
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();
303 void InitAsDefaultInstance();
314 inline bool GLogConfig_FileLog::has_file_name()
const {
315 return (_has_bits_[0] & 0x00000001u) != 0;
317 inline void GLogConfig_FileLog::set_has_file_name() {
318 _has_bits_[0] |= 0x00000001u;
320 inline void GLogConfig_FileLog::clear_has_file_name() {
321 _has_bits_[0] &= ~0x00000001u;
323 inline void GLogConfig_FileLog::clear_file_name() {
324 if (file_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
327 clear_has_file_name();
329 inline const ::std::string& GLogConfig_FileLog::file_name()
const {
333 inline void GLogConfig_FileLog::set_file_name(const ::std::string& value) {
335 if (file_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
336 file_name_ = new ::std::string;
338 file_name_->assign(value);
341 inline void GLogConfig_FileLog::set_file_name(
const char* value) {
343 if (file_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
344 file_name_ = new ::std::string;
346 file_name_->assign(value);
349 inline void GLogConfig_FileLog::set_file_name(
const char* value,
size_t size) {
351 if (file_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
352 file_name_ = new ::std::string;
354 file_name_->assign(reinterpret_cast<const char*>(value), size);
357 inline ::std::string* GLogConfig_FileLog::mutable_file_name() {
359 if (file_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
360 file_name_ = new ::std::string;
365 inline ::std::string* GLogConfig_FileLog::release_file_name() {
366 clear_has_file_name();
367 if (file_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
370 ::std::string* temp = file_name_;
371 file_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
375 inline void GLogConfig_FileLog::set_allocated_file_name(::std::string* file_name) {
376 if (file_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
381 file_name_ = file_name;
383 clear_has_file_name();
384 file_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
390 inline bool GLogConfig_FileLog::has_verbosity()
const {
391 return (_has_bits_[0] & 0x00000002u) != 0;
393 inline void GLogConfig_FileLog::set_has_verbosity() {
394 _has_bits_[0] |= 0x00000002u;
396 inline void GLogConfig_FileLog::clear_has_verbosity() {
397 _has_bits_[0] &= ~0x00000002u;
399 inline void GLogConfig_FileLog::clear_verbosity() {
401 clear_has_verbosity();
403 inline ::goby::common::protobuf::GLogConfig_Verbosity GLogConfig_FileLog::verbosity()
const {
405 return static_cast< ::goby::common::protobuf::GLogConfig_Verbosity
>(verbosity_);
407 inline void GLogConfig_FileLog::set_verbosity(::goby::common::protobuf::GLogConfig_Verbosity value) {
408 assert(::goby::common::protobuf::GLogConfig_Verbosity_IsValid(value));
419 inline bool GLogConfig::has_tty_verbosity()
const {
420 return (_has_bits_[0] & 0x00000001u) != 0;
422 inline void GLogConfig::set_has_tty_verbosity() {
423 _has_bits_[0] |= 0x00000001u;
425 inline void GLogConfig::clear_has_tty_verbosity() {
426 _has_bits_[0] &= ~0x00000001u;
428 inline void GLogConfig::clear_tty_verbosity() {
430 clear_has_tty_verbosity();
432 inline ::goby::common::protobuf::GLogConfig_Verbosity GLogConfig::tty_verbosity()
const {
434 return static_cast< ::goby::common::protobuf::GLogConfig_Verbosity
>(tty_verbosity_);
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;
444 inline bool GLogConfig::has_show_gui()
const {
445 return (_has_bits_[0] & 0x00000002u) != 0;
447 inline void GLogConfig::set_has_show_gui() {
448 _has_bits_[0] |= 0x00000002u;
450 inline void GLogConfig::clear_has_show_gui() {
451 _has_bits_[0] &= ~0x00000002u;
453 inline void GLogConfig::clear_show_gui() {
455 clear_has_show_gui();
457 inline bool GLogConfig::show_gui()
const {
461 inline void GLogConfig::set_show_gui(
bool value) {
468 inline int GLogConfig::file_log_size()
const {
469 return file_log_.size();
471 inline void GLogConfig::clear_file_log() {
474 inline const ::goby::common::protobuf::GLogConfig_FileLog& GLogConfig::file_log(
int index)
const {
476 return file_log_.Get(index);
478 inline ::goby::common::protobuf::GLogConfig_FileLog* GLogConfig::mutable_file_log(
int index) {
480 return file_log_.Mutable(index);
482 inline ::goby::common::protobuf::GLogConfig_FileLog* GLogConfig::add_file_log() {
484 return file_log_.Add();
486 inline const ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::GLogConfig_FileLog >&
487 GLogConfig::file_log()
const {
491 inline ::google::protobuf::RepeatedPtrField< ::goby::common::protobuf::GLogConfig_FileLog >*
492 GLogConfig::mutable_file_log() {
508 template <>
struct is_proto_enum< ::goby::common::protobuf::GLogConfig_Verbosity> : ::google::protobuf::internal::true_type {};
510 inline const EnumDescriptor* GetEnumDescriptor< ::goby::common::protobuf::GLogConfig_Verbosity>() {
511 return ::goby::common::protobuf::GLogConfig_Verbosity_descriptor();
520 #endif // PROTOBUF_goby_2fcommon_2fprotobuf_2flogger_2eproto__INCLUDED
The global namespace for the Goby project.