4 #ifndef PROTOBUF_goby_2fcommon_2fprotobuf_2fpubsub_5fnode_5fconfig_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fcommon_2fprotobuf_2fpubsub_5fnode_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 <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_2fpubsub_5fnode_5fconfig_2eproto();
41 void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2fpubsub_5fnode_5fconfig_2eproto();
42 void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2fpubsub_5fnode_5fconfig_2eproto();
44 class PubSubSocketConfig;
60 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
61 return _unknown_fields_;
64 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
65 return &_unknown_fields_;
68 static const ::google::protobuf::Descriptor* descriptor();
76 void CopyFrom(const ::google::protobuf::Message& from);
77 void MergeFrom(const ::google::protobuf::Message& from);
81 bool IsInitialized()
const;
84 bool MergePartialFromCodedStream(
85 ::google::protobuf::io::CodedInputStream* input);
86 void SerializeWithCachedSizes(
87 ::google::protobuf::io::CodedOutputStream* output)
const;
88 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
89 int GetCachedSize()
const {
return _cached_size_; }
93 void SetCachedSize(
int size)
const;
95 ::google::protobuf::Metadata GetMetadata()
const;
102 inline bool has_publish_socket()
const;
103 inline void clear_publish_socket();
104 static const int kPublishSocketFieldNumber = 1;
105 inline const ::goby::common::protobuf::ZeroMQServiceConfig_Socket& publish_socket()
const;
106 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* mutable_publish_socket();
107 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* release_publish_socket();
111 inline bool has_subscribe_socket()
const;
112 inline void clear_subscribe_socket();
113 static const int kSubscribeSocketFieldNumber = 2;
114 inline const ::goby::common::protobuf::ZeroMQServiceConfig_Socket& subscribe_socket()
const;
115 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* mutable_subscribe_socket();
116 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* release_subscribe_socket();
121 inline void set_has_publish_socket();
122 inline void clear_has_publish_socket();
123 inline void set_has_subscribe_socket();
124 inline void clear_has_subscribe_socket();
126 ::google::protobuf::UnknownFieldSet _unknown_fields_;
128 ::google::protobuf::uint32 _has_bits_[1];
129 mutable int _cached_size_;
132 friend void protobuf_AddDesc_goby_2fcommon_2fprotobuf_2fpubsub_5fnode_5fconfig_2eproto();
133 friend void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2fpubsub_5fnode_5fconfig_2eproto();
134 friend void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2fpubsub_5fnode_5fconfig_2eproto();
136 void InitAsDefaultInstance();
147 inline bool PubSubSocketConfig::has_publish_socket()
const {
148 return (_has_bits_[0] & 0x00000001u) != 0;
150 inline void PubSubSocketConfig::set_has_publish_socket() {
151 _has_bits_[0] |= 0x00000001u;
153 inline void PubSubSocketConfig::clear_has_publish_socket() {
154 _has_bits_[0] &= ~0x00000001u;
156 inline void PubSubSocketConfig::clear_publish_socket() {
157 if (publish_socket_ != NULL) publish_socket_->::goby::common::protobuf::ZeroMQServiceConfig_Socket::Clear();
158 clear_has_publish_socket();
160 inline const ::goby::common::protobuf::ZeroMQServiceConfig_Socket& PubSubSocketConfig::publish_socket()
const {
162 return publish_socket_ != NULL ? *publish_socket_ : *default_instance_->publish_socket_;
164 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* PubSubSocketConfig::mutable_publish_socket() {
165 set_has_publish_socket();
166 if (publish_socket_ == NULL) publish_socket_ = new ::goby::common::protobuf::ZeroMQServiceConfig_Socket;
168 return publish_socket_;
170 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* PubSubSocketConfig::release_publish_socket() {
171 clear_has_publish_socket();
173 publish_socket_ = NULL;
177 delete publish_socket_;
178 publish_socket_ = publish_socket;
179 if (publish_socket) {
180 set_has_publish_socket();
182 clear_has_publish_socket();
188 inline bool PubSubSocketConfig::has_subscribe_socket()
const {
189 return (_has_bits_[0] & 0x00000002u) != 0;
191 inline void PubSubSocketConfig::set_has_subscribe_socket() {
192 _has_bits_[0] |= 0x00000002u;
194 inline void PubSubSocketConfig::clear_has_subscribe_socket() {
195 _has_bits_[0] &= ~0x00000002u;
197 inline void PubSubSocketConfig::clear_subscribe_socket() {
198 if (subscribe_socket_ != NULL) subscribe_socket_->::goby::common::protobuf::ZeroMQServiceConfig_Socket::Clear();
199 clear_has_subscribe_socket();
201 inline const ::goby::common::protobuf::ZeroMQServiceConfig_Socket& PubSubSocketConfig::subscribe_socket()
const {
203 return subscribe_socket_ != NULL ? *subscribe_socket_ : *default_instance_->subscribe_socket_;
205 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* PubSubSocketConfig::mutable_subscribe_socket() {
206 set_has_subscribe_socket();
207 if (subscribe_socket_ == NULL) subscribe_socket_ = new ::goby::common::protobuf::ZeroMQServiceConfig_Socket;
209 return subscribe_socket_;
211 inline ::goby::common::protobuf::ZeroMQServiceConfig_Socket* PubSubSocketConfig::release_subscribe_socket() {
212 clear_has_subscribe_socket();
214 subscribe_socket_ = NULL;
218 delete subscribe_socket_;
219 subscribe_socket_ = subscribe_socket;
220 if (subscribe_socket) {
221 set_has_subscribe_socket();
223 clear_has_subscribe_socket();
246 #endif // PROTOBUF_goby_2fcommon_2fprotobuf_2fpubsub_5fnode_5fconfig_2eproto__INCLUDED
The global namespace for the Goby project.