4 #ifndef PROTOBUF_goby_2fcommon_2fprotobuf_2fapp_5fbase_5fconfig_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fcommon_2fprotobuf_2fapp_5fbase_5fconfig_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/unknown_field_set.h> 27 #include "goby/common/protobuf/option_extensions.pb.h" 28 #include "goby/common/protobuf/zero_mq_node_config.pb.h" 29 #include "goby/common/protobuf/pubsub_node_config.pb.h" 30 #include "goby/common/protobuf/logger.pb.h" 31 #include <boost/units/quantity.hpp> 32 #include <boost/units/absolute.hpp> 33 #include <boost/units/dimensionless_type.hpp> 34 #include <boost/units/make_scaled_unit.hpp> 38 void protobuf_AddDesc_goby_2fcommon_2fprotobuf_2fapp_5fbase_5fconfig_2eproto();
39 void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2fapp_5fbase_5fconfig_2eproto();
40 void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2fapp_5fbase_5fconfig_2eproto();
58 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
59 return _unknown_fields_;
62 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
63 return &_unknown_fields_;
66 static const ::google::protobuf::Descriptor* descriptor();
74 void CopyFrom(const ::google::protobuf::Message& from);
75 void MergeFrom(const ::google::protobuf::Message& from);
79 bool IsInitialized()
const;
82 bool MergePartialFromCodedStream(
83 ::google::protobuf::io::CodedInputStream* input);
84 void SerializeWithCachedSizes(
85 ::google::protobuf::io::CodedOutputStream* output)
const;
86 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
87 int GetCachedSize()
const {
return _cached_size_; }
91 void SetCachedSize(
int size)
const;
93 ::google::protobuf::Metadata GetMetadata()
const;
100 inline bool has_app_name()
const;
101 inline void clear_app_name();
102 static const int kAppNameFieldNumber = 1;
103 inline const ::std::string& app_name()
const;
104 inline void set_app_name(const ::std::string& value);
105 inline void set_app_name(
const char* value);
106 inline void set_app_name(
const char* value,
size_t size);
107 inline ::std::string* mutable_app_name();
108 inline ::std::string* release_app_name();
109 inline void set_allocated_app_name(::std::string* app_name);
112 inline bool has_loop_freq()
const;
113 inline void clear_loop_freq();
114 static const int kLoopFreqFieldNumber = 2;
115 inline float loop_freq()
const;
116 inline void set_loop_freq(
float value);
119 inline bool has_platform_name()
const;
120 inline void clear_platform_name();
121 static const int kPlatformNameFieldNumber = 3;
122 inline const ::std::string& platform_name()
const;
123 inline void set_platform_name(const ::std::string& value);
124 inline void set_platform_name(
const char* value);
125 inline void set_platform_name(
const char* value,
size_t size);
126 inline ::std::string* mutable_platform_name();
127 inline ::std::string* release_platform_name();
128 inline void set_allocated_platform_name(::std::string* platform_name);
131 inline bool has_pubsub_config()
const;
132 inline void clear_pubsub_config();
133 static const int kPubsubConfigFieldNumber = 10;
134 inline const ::goby::common::protobuf::PubSubSocketConfig& pubsub_config()
const;
135 inline ::goby::common::protobuf::PubSubSocketConfig* mutable_pubsub_config();
136 inline ::goby::common::protobuf::PubSubSocketConfig* release_pubsub_config();
140 inline bool has_additional_socket_config()
const;
141 inline void clear_additional_socket_config();
142 static const int kAdditionalSocketConfigFieldNumber = 100;
143 inline const ::goby::common::protobuf::ZeroMQServiceConfig& additional_socket_config()
const;
144 inline ::goby::common::protobuf::ZeroMQServiceConfig* mutable_additional_socket_config();
145 inline ::goby::common::protobuf::ZeroMQServiceConfig* release_additional_socket_config();
149 inline bool has_glog_config()
const;
150 inline void clear_glog_config();
151 static const int kGlogConfigFieldNumber = 11;
152 inline const ::goby::common::protobuf::GLogConfig& glog_config()
const;
153 inline ::goby::common::protobuf::GLogConfig* mutable_glog_config();
154 inline ::goby::common::protobuf::GLogConfig* release_glog_config();
160 inline void set_has_app_name();
161 inline void clear_has_app_name();
162 inline void set_has_loop_freq();
163 inline void clear_has_loop_freq();
164 inline void set_has_platform_name();
165 inline void clear_has_platform_name();
166 inline void set_has_pubsub_config();
167 inline void clear_has_pubsub_config();
168 inline void set_has_additional_socket_config();
169 inline void clear_has_additional_socket_config();
170 inline void set_has_glog_config();
171 inline void clear_has_glog_config();
173 ::google::protobuf::internal::ExtensionSet _extensions_;
175 ::google::protobuf::UnknownFieldSet _unknown_fields_;
177 ::google::protobuf::uint32 _has_bits_[1];
178 mutable int _cached_size_;
179 ::std::string* app_name_;
180 static ::std::string* _default_platform_name_;
181 ::std::string* platform_name_;
186 friend void protobuf_AddDesc_goby_2fcommon_2fprotobuf_2fapp_5fbase_5fconfig_2eproto();
187 friend void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2fapp_5fbase_5fconfig_2eproto();
188 friend void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2fapp_5fbase_5fconfig_2eproto();
190 void InitAsDefaultInstance();
201 inline bool AppBaseConfig::has_app_name()
const {
202 return (_has_bits_[0] & 0x00000001u) != 0;
204 inline void AppBaseConfig::set_has_app_name() {
205 _has_bits_[0] |= 0x00000001u;
207 inline void AppBaseConfig::clear_has_app_name() {
208 _has_bits_[0] &= ~0x00000001u;
210 inline void AppBaseConfig::clear_app_name() {
211 if (app_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
214 clear_has_app_name();
216 inline const ::std::string& AppBaseConfig::app_name()
const {
220 inline void AppBaseConfig::set_app_name(const ::std::string& value) {
222 if (app_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
223 app_name_ = new ::std::string;
225 app_name_->assign(value);
228 inline void AppBaseConfig::set_app_name(
const char* value) {
230 if (app_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
231 app_name_ = new ::std::string;
233 app_name_->assign(value);
236 inline void AppBaseConfig::set_app_name(
const char* value,
size_t size) {
238 if (app_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
239 app_name_ = new ::std::string;
241 app_name_->assign(reinterpret_cast<const char*>(value), size);
244 inline ::std::string* AppBaseConfig::mutable_app_name() {
246 if (app_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
247 app_name_ = new ::std::string;
252 inline ::std::string* AppBaseConfig::release_app_name() {
253 clear_has_app_name();
254 if (app_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
257 ::std::string* temp = app_name_;
258 app_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
262 inline void AppBaseConfig::set_allocated_app_name(::std::string* app_name) {
263 if (app_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
268 app_name_ = app_name;
270 clear_has_app_name();
271 app_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
277 inline bool AppBaseConfig::has_loop_freq()
const {
278 return (_has_bits_[0] & 0x00000002u) != 0;
280 inline void AppBaseConfig::set_has_loop_freq() {
281 _has_bits_[0] |= 0x00000002u;
283 inline void AppBaseConfig::clear_has_loop_freq() {
284 _has_bits_[0] &= ~0x00000002u;
286 inline void AppBaseConfig::clear_loop_freq() {
288 clear_has_loop_freq();
290 inline float AppBaseConfig::loop_freq()
const {
294 inline void AppBaseConfig::set_loop_freq(
float value) {
301 inline bool AppBaseConfig::has_platform_name()
const {
302 return (_has_bits_[0] & 0x00000004u) != 0;
304 inline void AppBaseConfig::set_has_platform_name() {
305 _has_bits_[0] |= 0x00000004u;
307 inline void AppBaseConfig::clear_has_platform_name() {
308 _has_bits_[0] &= ~0x00000004u;
310 inline void AppBaseConfig::clear_platform_name() {
311 if (platform_name_ != _default_platform_name_) {
312 platform_name_->assign(*_default_platform_name_);
314 clear_has_platform_name();
316 inline const ::std::string& AppBaseConfig::platform_name()
const {
318 return *platform_name_;
320 inline void AppBaseConfig::set_platform_name(const ::std::string& value) {
321 set_has_platform_name();
322 if (platform_name_ == _default_platform_name_) {
323 platform_name_ = new ::std::string;
325 platform_name_->assign(value);
328 inline void AppBaseConfig::set_platform_name(
const char* value) {
329 set_has_platform_name();
330 if (platform_name_ == _default_platform_name_) {
331 platform_name_ = new ::std::string;
333 platform_name_->assign(value);
336 inline void AppBaseConfig::set_platform_name(
const char* value,
size_t size) {
337 set_has_platform_name();
338 if (platform_name_ == _default_platform_name_) {
339 platform_name_ = new ::std::string;
341 platform_name_->assign(reinterpret_cast<const char*>(value), size);
344 inline ::std::string* AppBaseConfig::mutable_platform_name() {
345 set_has_platform_name();
346 if (platform_name_ == _default_platform_name_) {
347 platform_name_ = new ::std::string(*_default_platform_name_);
350 return platform_name_;
352 inline ::std::string* AppBaseConfig::release_platform_name() {
353 clear_has_platform_name();
354 if (platform_name_ == _default_platform_name_) {
357 ::std::string* temp = platform_name_;
358 platform_name_ =
const_cast< ::std::string*
>(_default_platform_name_);
362 inline void AppBaseConfig::set_allocated_platform_name(::std::string* platform_name) {
363 if (platform_name_ != _default_platform_name_) {
364 delete platform_name_;
367 set_has_platform_name();
368 platform_name_ = platform_name;
370 clear_has_platform_name();
371 platform_name_ =
const_cast< ::std::string*
>(_default_platform_name_);
377 inline bool AppBaseConfig::has_pubsub_config()
const {
378 return (_has_bits_[0] & 0x00000008u) != 0;
380 inline void AppBaseConfig::set_has_pubsub_config() {
381 _has_bits_[0] |= 0x00000008u;
383 inline void AppBaseConfig::clear_has_pubsub_config() {
384 _has_bits_[0] &= ~0x00000008u;
386 inline void AppBaseConfig::clear_pubsub_config() {
387 if (pubsub_config_ != NULL) pubsub_config_->::goby::common::protobuf::PubSubSocketConfig::Clear();
388 clear_has_pubsub_config();
390 inline const ::goby::common::protobuf::PubSubSocketConfig& AppBaseConfig::pubsub_config()
const {
392 return pubsub_config_ != NULL ? *pubsub_config_ : *default_instance_->pubsub_config_;
394 inline ::goby::common::protobuf::PubSubSocketConfig* AppBaseConfig::mutable_pubsub_config() {
395 set_has_pubsub_config();
396 if (pubsub_config_ == NULL) pubsub_config_ = new ::goby::common::protobuf::PubSubSocketConfig;
398 return pubsub_config_;
400 inline ::goby::common::protobuf::PubSubSocketConfig* AppBaseConfig::release_pubsub_config() {
401 clear_has_pubsub_config();
403 pubsub_config_ = NULL;
407 delete pubsub_config_;
408 pubsub_config_ = pubsub_config;
410 set_has_pubsub_config();
412 clear_has_pubsub_config();
418 inline bool AppBaseConfig::has_additional_socket_config()
const {
419 return (_has_bits_[0] & 0x00000010u) != 0;
421 inline void AppBaseConfig::set_has_additional_socket_config() {
422 _has_bits_[0] |= 0x00000010u;
424 inline void AppBaseConfig::clear_has_additional_socket_config() {
425 _has_bits_[0] &= ~0x00000010u;
427 inline void AppBaseConfig::clear_additional_socket_config() {
428 if (additional_socket_config_ != NULL) additional_socket_config_->::goby::common::protobuf::ZeroMQServiceConfig::Clear();
429 clear_has_additional_socket_config();
431 inline const ::goby::common::protobuf::ZeroMQServiceConfig& AppBaseConfig::additional_socket_config()
const {
433 return additional_socket_config_ != NULL ? *additional_socket_config_ : *default_instance_->additional_socket_config_;
435 inline ::goby::common::protobuf::ZeroMQServiceConfig* AppBaseConfig::mutable_additional_socket_config() {
436 set_has_additional_socket_config();
437 if (additional_socket_config_ == NULL) additional_socket_config_ = new ::goby::common::protobuf::ZeroMQServiceConfig;
439 return additional_socket_config_;
441 inline ::goby::common::protobuf::ZeroMQServiceConfig* AppBaseConfig::release_additional_socket_config() {
442 clear_has_additional_socket_config();
444 additional_socket_config_ = NULL;
448 delete additional_socket_config_;
449 additional_socket_config_ = additional_socket_config;
450 if (additional_socket_config) {
451 set_has_additional_socket_config();
453 clear_has_additional_socket_config();
459 inline bool AppBaseConfig::has_glog_config()
const {
460 return (_has_bits_[0] & 0x00000020u) != 0;
462 inline void AppBaseConfig::set_has_glog_config() {
463 _has_bits_[0] |= 0x00000020u;
465 inline void AppBaseConfig::clear_has_glog_config() {
466 _has_bits_[0] &= ~0x00000020u;
468 inline void AppBaseConfig::clear_glog_config() {
469 if (glog_config_ != NULL) glog_config_->::goby::common::protobuf::GLogConfig::Clear();
470 clear_has_glog_config();
472 inline const ::goby::common::protobuf::GLogConfig& AppBaseConfig::glog_config()
const {
474 return glog_config_ != NULL ? *glog_config_ : *default_instance_->glog_config_;
476 inline ::goby::common::protobuf::GLogConfig* AppBaseConfig::mutable_glog_config() {
477 set_has_glog_config();
478 if (glog_config_ == NULL) glog_config_ = new ::goby::common::protobuf::GLogConfig;
482 inline ::goby::common::protobuf::GLogConfig* AppBaseConfig::release_glog_config() {
483 clear_has_glog_config();
490 glog_config_ = glog_config;
492 set_has_glog_config();
494 clear_has_glog_config();
513 #endif // PROTOBUF_goby_2fcommon_2fprotobuf_2fapp_5fbase_5fconfig_2eproto__INCLUDED