4 #ifndef PROTOBUF_goby_2fapps_2facomms_2fgoby_5fmodemdriver_2fmodemdriver_5fconfig_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fapps_2facomms_2fgoby_5fmodemdriver_2fmodemdriver_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/app_base_config.pb.h" 29 #include "goby/acomms/protobuf/driver_base.pb.h" 30 #include <boost/units/quantity.hpp> 31 #include <boost/units/absolute.hpp> 32 #include <boost/units/dimensionless_type.hpp> 33 #include <boost/units/make_scaled_unit.hpp> 41 void protobuf_AddDesc_goby_2fapps_2facomms_2fgoby_5fmodemdriver_2fmodemdriver_5fconfig_2eproto();
42 void protobuf_AssignDesc_goby_2fapps_2facomms_2fgoby_5fmodemdriver_2fmodemdriver_5fconfig_2eproto();
43 void protobuf_ShutdownFile_goby_2fapps_2facomms_2fgoby_5fmodemdriver_2fmodemdriver_5fconfig_2eproto();
45 class ModemDriverConfig;
61 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
62 return _unknown_fields_;
65 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
66 return &_unknown_fields_;
69 static const ::google::protobuf::Descriptor* descriptor();
77 void CopyFrom(const ::google::protobuf::Message& from);
78 void MergeFrom(const ::google::protobuf::Message& from);
82 bool IsInitialized()
const;
85 bool MergePartialFromCodedStream(
86 ::google::protobuf::io::CodedInputStream* input);
87 void SerializeWithCachedSizes(
88 ::google::protobuf::io::CodedOutputStream* output)
const;
89 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
90 int GetCachedSize()
const {
return _cached_size_; }
94 void SetCachedSize(
int size)
const;
96 ::google::protobuf::Metadata GetMetadata()
const;
103 inline bool has_base()
const;
104 inline void clear_base();
105 static const int kBaseFieldNumber = 1;
106 inline const ::AppBaseConfig& base()
const;
107 inline ::AppBaseConfig* mutable_base();
108 inline ::AppBaseConfig* release_base();
112 inline bool has_driver_type()
const;
113 inline void clear_driver_type();
114 static const int kDriverTypeFieldNumber = 2;
115 inline ::goby::acomms::protobuf::DriverType driver_type()
const;
116 inline void set_driver_type(::goby::acomms::protobuf::DriverType value);
119 inline bool has_driver_cfg()
const;
120 inline void clear_driver_cfg();
121 static const int kDriverCfgFieldNumber = 3;
122 inline const ::goby::acomms::protobuf::DriverConfig& driver_cfg()
const;
123 inline ::goby::acomms::protobuf::DriverConfig* mutable_driver_cfg();
124 inline ::goby::acomms::protobuf::DriverConfig* release_driver_cfg();
128 inline bool has_data_request_timeout()
const;
129 inline void clear_data_request_timeout();
130 static const int kDataRequestTimeoutFieldNumber = 4;
131 inline float data_request_timeout()
const;
132 inline void set_data_request_timeout(
float value);
135 inline bool has_status_period_s()
const;
136 inline void clear_status_period_s();
137 static const int kStatusPeriodSFieldNumber = 5;
138 inline ::google::protobuf::int32 status_period_s()
const;
139 inline void set_status_period_s(::google::protobuf::int32 value);
143 inline void set_has_base();
144 inline void clear_has_base();
145 inline void set_has_driver_type();
146 inline void clear_has_driver_type();
147 inline void set_has_driver_cfg();
148 inline void clear_has_driver_cfg();
149 inline void set_has_data_request_timeout();
150 inline void clear_has_data_request_timeout();
151 inline void set_has_status_period_s();
152 inline void clear_has_status_period_s();
154 ::google::protobuf::UnknownFieldSet _unknown_fields_;
156 ::google::protobuf::uint32 _has_bits_[1];
157 mutable int _cached_size_;
161 float data_request_timeout_;
162 ::google::protobuf::int32 status_period_s_;
163 friend void protobuf_AddDesc_goby_2fapps_2facomms_2fgoby_5fmodemdriver_2fmodemdriver_5fconfig_2eproto();
164 friend void protobuf_AssignDesc_goby_2fapps_2facomms_2fgoby_5fmodemdriver_2fmodemdriver_5fconfig_2eproto();
165 friend void protobuf_ShutdownFile_goby_2fapps_2facomms_2fgoby_5fmodemdriver_2fmodemdriver_5fconfig_2eproto();
167 void InitAsDefaultInstance();
178 inline bool ModemDriverConfig::has_base()
const {
179 return (_has_bits_[0] & 0x00000001u) != 0;
181 inline void ModemDriverConfig::set_has_base() {
182 _has_bits_[0] |= 0x00000001u;
184 inline void ModemDriverConfig::clear_has_base() {
185 _has_bits_[0] &= ~0x00000001u;
187 inline void ModemDriverConfig::clear_base() {
188 if (base_ != NULL) base_->::AppBaseConfig::Clear();
191 inline const ::AppBaseConfig& ModemDriverConfig::base()
const {
193 return base_ != NULL ? *base_ : *default_instance_->base_;
195 inline ::AppBaseConfig* ModemDriverConfig::mutable_base() {
197 if (base_ == NULL) base_ = new ::AppBaseConfig;
201 inline ::AppBaseConfig* ModemDriverConfig::release_base() {
207 inline void ModemDriverConfig::set_allocated_base(::
AppBaseConfig* base) {
219 inline bool ModemDriverConfig::has_driver_type()
const {
220 return (_has_bits_[0] & 0x00000002u) != 0;
222 inline void ModemDriverConfig::set_has_driver_type() {
223 _has_bits_[0] |= 0x00000002u;
225 inline void ModemDriverConfig::clear_has_driver_type() {
226 _has_bits_[0] &= ~0x00000002u;
228 inline void ModemDriverConfig::clear_driver_type() {
230 clear_has_driver_type();
232 inline ::goby::acomms::protobuf::DriverType ModemDriverConfig::driver_type()
const {
234 return static_cast< ::goby::acomms::protobuf::DriverType
>(driver_type_);
236 inline void ModemDriverConfig::set_driver_type(::goby::acomms::protobuf::DriverType value) {
237 assert(::goby::acomms::protobuf::DriverType_IsValid(value));
238 set_has_driver_type();
239 driver_type_ = value;
244 inline bool ModemDriverConfig::has_driver_cfg()
const {
245 return (_has_bits_[0] & 0x00000004u) != 0;
247 inline void ModemDriverConfig::set_has_driver_cfg() {
248 _has_bits_[0] |= 0x00000004u;
250 inline void ModemDriverConfig::clear_has_driver_cfg() {
251 _has_bits_[0] &= ~0x00000004u;
253 inline void ModemDriverConfig::clear_driver_cfg() {
254 if (driver_cfg_ != NULL) driver_cfg_->::goby::acomms::protobuf::DriverConfig::Clear();
255 clear_has_driver_cfg();
257 inline const ::goby::acomms::protobuf::DriverConfig& ModemDriverConfig::driver_cfg()
const {
259 return driver_cfg_ != NULL ? *driver_cfg_ : *default_instance_->driver_cfg_;
261 inline ::goby::acomms::protobuf::DriverConfig* ModemDriverConfig::mutable_driver_cfg() {
262 set_has_driver_cfg();
263 if (driver_cfg_ == NULL) driver_cfg_ = new ::goby::acomms::protobuf::DriverConfig;
267 inline ::goby::acomms::protobuf::DriverConfig* ModemDriverConfig::release_driver_cfg() {
268 clear_has_driver_cfg();
275 driver_cfg_ = driver_cfg;
277 set_has_driver_cfg();
279 clear_has_driver_cfg();
285 inline bool ModemDriverConfig::has_data_request_timeout()
const {
286 return (_has_bits_[0] & 0x00000008u) != 0;
288 inline void ModemDriverConfig::set_has_data_request_timeout() {
289 _has_bits_[0] |= 0x00000008u;
291 inline void ModemDriverConfig::clear_has_data_request_timeout() {
292 _has_bits_[0] &= ~0x00000008u;
294 inline void ModemDriverConfig::clear_data_request_timeout() {
295 data_request_timeout_ = 1;
296 clear_has_data_request_timeout();
298 inline float ModemDriverConfig::data_request_timeout()
const {
300 return data_request_timeout_;
302 inline void ModemDriverConfig::set_data_request_timeout(
float value) {
303 set_has_data_request_timeout();
304 data_request_timeout_ = value;
309 inline bool ModemDriverConfig::has_status_period_s()
const {
310 return (_has_bits_[0] & 0x00000010u) != 0;
312 inline void ModemDriverConfig::set_has_status_period_s() {
313 _has_bits_[0] |= 0x00000010u;
315 inline void ModemDriverConfig::clear_has_status_period_s() {
316 _has_bits_[0] &= ~0x00000010u;
318 inline void ModemDriverConfig::clear_status_period_s() {
319 status_period_s_ = 300;
320 clear_has_status_period_s();
322 inline ::google::protobuf::int32 ModemDriverConfig::status_period_s()
const {
324 return status_period_s_;
326 inline void ModemDriverConfig::set_status_period_s(::google::protobuf::int32 value) {
327 set_has_status_period_s();
328 status_period_s_ = value;
350 #endif // PROTOBUF_goby_2fapps_2facomms_2fgoby_5fmodemdriver_2fmodemdriver_5fconfig_2eproto__INCLUDED
The global namespace for the Goby project.