4 #ifndef PROTOBUF_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_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/acomms/protobuf/driver_base.pb.h" 29 #include "goby/moos/protobuf/modem_id_lookup.pb.h" 30 #include "goby/acomms/protobuf/modem_message.pb.h" 31 #include "dccl/option_extensions.pb.h" 32 #include <boost/units/quantity.hpp> 33 #include <boost/units/absolute.hpp> 34 #include <boost/units/dimensionless_type.hpp> 35 #include <boost/units/make_scaled_unit.hpp> 43 void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto();
44 void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto();
45 void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto();
47 class MicroModemMimic;
50 enum TransmissionType {
52 UFIELD_DRIVER_POLL = 1
54 bool TransmissionType_IsValid(
int value);
55 const TransmissionType TransmissionType_MIN = BASE_TYPE;
56 const TransmissionType TransmissionType_MAX = UFIELD_DRIVER_POLL;
57 const int TransmissionType_ARRAYSIZE = TransmissionType_MAX + 1;
59 const ::google::protobuf::EnumDescriptor* TransmissionType_descriptor();
60 inline const ::std::string& TransmissionType_Name(TransmissionType value) {
61 return ::google::protobuf::internal::NameOfEnum(
62 TransmissionType_descriptor(), value);
64 inline bool TransmissionType_Parse(
65 const ::std::string& name, TransmissionType* value) {
66 return ::google::protobuf::internal::ParseNamedEnum<TransmissionType>(
67 TransmissionType_descriptor(), name, value);
83 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
84 return _unknown_fields_;
87 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
88 return &_unknown_fields_;
91 static const ::google::protobuf::Descriptor* descriptor();
99 void CopyFrom(const ::google::protobuf::Message& from);
100 void MergeFrom(const ::google::protobuf::Message& from);
104 bool IsInitialized()
const;
106 int ByteSize()
const;
107 bool MergePartialFromCodedStream(
108 ::google::protobuf::io::CodedInputStream* input);
109 void SerializeWithCachedSizes(
110 ::google::protobuf::io::CodedOutputStream* output)
const;
111 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
112 int GetCachedSize()
const {
return _cached_size_; }
116 void SetCachedSize(
int size)
const;
118 ::google::protobuf::Metadata GetMetadata()
const;
125 inline bool has_range_request_var()
const;
126 inline void clear_range_request_var();
127 static const int kRangeRequestVarFieldNumber = 1;
128 inline const ::std::string& range_request_var()
const;
129 inline void set_range_request_var(const ::std::string& value);
130 inline void set_range_request_var(
const char* value);
131 inline void set_range_request_var(
const char* value,
size_t size);
132 inline ::std::string* mutable_range_request_var();
133 inline ::std::string* release_range_request_var();
134 inline void set_allocated_range_request_var(::std::string* range_request_var);
137 inline bool has_range_report_var()
const;
138 inline void clear_range_report_var();
139 static const int kRangeReportVarFieldNumber = 2;
140 inline const ::std::string& range_report_var()
const;
141 inline void set_range_report_var(const ::std::string& value);
142 inline void set_range_report_var(
const char* value);
143 inline void set_range_report_var(
const char* value,
size_t size);
144 inline ::std::string* mutable_range_report_var();
145 inline ::std::string* release_range_report_var();
146 inline void set_allocated_range_report_var(::std::string* range_report_var);
150 inline void set_has_range_request_var();
151 inline void clear_has_range_request_var();
152 inline void set_has_range_report_var();
153 inline void clear_has_range_report_var();
155 ::google::protobuf::UnknownFieldSet _unknown_fields_;
157 ::google::protobuf::uint32 _has_bits_[1];
158 mutable int _cached_size_;
159 static ::std::string* _default_range_request_var_;
160 ::std::string* range_request_var_;
161 static ::std::string* _default_range_report_var_;
162 ::std::string* range_report_var_;
163 friend void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto();
164 friend void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto();
165 friend void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto();
167 void InitAsDefaultInstance();
172 class Config :
public ::google::protobuf::Message {
184 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
185 return _unknown_fields_;
188 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
189 return &_unknown_fields_;
192 static const ::google::protobuf::Descriptor* descriptor();
193 static const Config& default_instance();
200 void CopyFrom(const ::google::protobuf::Message& from);
201 void MergeFrom(const ::google::protobuf::Message& from);
202 void CopyFrom(
const Config& from);
203 void MergeFrom(
const Config& from);
205 bool IsInitialized()
const;
207 int ByteSize()
const;
208 bool MergePartialFromCodedStream(
209 ::google::protobuf::io::CodedInputStream* input);
210 void SerializeWithCachedSizes(
211 ::google::protobuf::io::CodedOutputStream* output)
const;
212 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
213 int GetCachedSize()
const {
return _cached_size_; }
217 void SetCachedSize(
int size)
const;
219 ::google::protobuf::Metadata GetMetadata()
const;
225 static const int kMoosServerFieldNumber = 1300;
227 ::google::protobuf::internal::StringTypeTraits, 9,
false >
229 static const int kMoosPortFieldNumber = 1301;
230 static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
231 ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5,
false >
233 static const int kIncomingMoosVarFieldNumber = 1302;
234 static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
235 ::google::protobuf::internal::StringTypeTraits, 9,
false >
237 static const int kOutgoingMoosVarFieldNumber = 1303;
238 static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
239 ::google::protobuf::internal::StringTypeTraits, 9,
false >
241 static const int kUfieldOutgoingMoosVarFieldNumber = 1304;
242 static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
243 ::google::protobuf::internal::StringTypeTraits, 9,
false >
244 ufield_outgoing_moos_var;
245 static const int kRateToBytesFieldNumber = 1305;
246 static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
247 ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 5,
false >
249 static const int kModemIdLookupPathFieldNumber = 1306;
250 static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
251 ::google::protobuf::internal::StringTypeTraits, 9,
false >
252 modem_id_lookup_path;
253 static const int kMicromodemMimicFieldNumber = 1307;
254 static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
255 ::google::protobuf::internal::MessageTypeTraits< ::goby::moos::protobuf::MicroModemMimic >, 11,
false >
260 ::google::protobuf::UnknownFieldSet _unknown_fields_;
262 ::google::protobuf::uint32 _has_bits_[1];
263 mutable int _cached_size_;
264 friend void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto();
265 friend void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto();
266 friend void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto();
268 void InitAsDefaultInstance();
269 static Config* default_instance_;
273 static const int kTypeFieldNumber = 1300;
275 ::google::protobuf::internal::EnumTypeTraits< ::goby::moos::protobuf::TransmissionType, ::goby::moos::protobuf::TransmissionType_IsValid>, 14,
false >
277 static const int kPollSrcFieldNumber = 1301;
278 extern ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::ModemTransmission,
279 ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5,
false >
281 static const int kPollDestFieldNumber = 1302;
282 extern ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::ModemTransmission,
283 ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5,
false >
291 inline bool MicroModemMimic::has_range_request_var()
const {
292 return (_has_bits_[0] & 0x00000001u) != 0;
294 inline void MicroModemMimic::set_has_range_request_var() {
295 _has_bits_[0] |= 0x00000001u;
297 inline void MicroModemMimic::clear_has_range_request_var() {
298 _has_bits_[0] &= ~0x00000001u;
300 inline void MicroModemMimic::clear_range_request_var() {
301 if (range_request_var_ != _default_range_request_var_) {
302 range_request_var_->assign(*_default_range_request_var_);
304 clear_has_range_request_var();
306 inline const ::std::string& MicroModemMimic::range_request_var()
const {
308 return *range_request_var_;
310 inline void MicroModemMimic::set_range_request_var(const ::std::string& value) {
311 set_has_range_request_var();
312 if (range_request_var_ == _default_range_request_var_) {
313 range_request_var_ = new ::std::string;
315 range_request_var_->assign(value);
318 inline void MicroModemMimic::set_range_request_var(
const char* value) {
319 set_has_range_request_var();
320 if (range_request_var_ == _default_range_request_var_) {
321 range_request_var_ = new ::std::string;
323 range_request_var_->assign(value);
326 inline void MicroModemMimic::set_range_request_var(
const char* value,
size_t size) {
327 set_has_range_request_var();
328 if (range_request_var_ == _default_range_request_var_) {
329 range_request_var_ = new ::std::string;
331 range_request_var_->assign(reinterpret_cast<const char*>(value), size);
334 inline ::std::string* MicroModemMimic::mutable_range_request_var() {
335 set_has_range_request_var();
336 if (range_request_var_ == _default_range_request_var_) {
337 range_request_var_ = new ::std::string(*_default_range_request_var_);
340 return range_request_var_;
342 inline ::std::string* MicroModemMimic::release_range_request_var() {
343 clear_has_range_request_var();
344 if (range_request_var_ == _default_range_request_var_) {
347 ::std::string* temp = range_request_var_;
348 range_request_var_ =
const_cast< ::std::string*
>(_default_range_request_var_);
352 inline void MicroModemMimic::set_allocated_range_request_var(::std::string* range_request_var) {
353 if (range_request_var_ != _default_range_request_var_) {
354 delete range_request_var_;
356 if (range_request_var) {
357 set_has_range_request_var();
358 range_request_var_ = range_request_var;
360 clear_has_range_request_var();
361 range_request_var_ =
const_cast< ::std::string*
>(_default_range_request_var_);
367 inline bool MicroModemMimic::has_range_report_var()
const {
368 return (_has_bits_[0] & 0x00000002u) != 0;
370 inline void MicroModemMimic::set_has_range_report_var() {
371 _has_bits_[0] |= 0x00000002u;
373 inline void MicroModemMimic::clear_has_range_report_var() {
374 _has_bits_[0] &= ~0x00000002u;
376 inline void MicroModemMimic::clear_range_report_var() {
377 if (range_report_var_ != _default_range_report_var_) {
378 range_report_var_->assign(*_default_range_report_var_);
380 clear_has_range_report_var();
382 inline const ::std::string& MicroModemMimic::range_report_var()
const {
384 return *range_report_var_;
386 inline void MicroModemMimic::set_range_report_var(const ::std::string& value) {
387 set_has_range_report_var();
388 if (range_report_var_ == _default_range_report_var_) {
389 range_report_var_ = new ::std::string;
391 range_report_var_->assign(value);
394 inline void MicroModemMimic::set_range_report_var(
const char* value) {
395 set_has_range_report_var();
396 if (range_report_var_ == _default_range_report_var_) {
397 range_report_var_ = new ::std::string;
399 range_report_var_->assign(value);
402 inline void MicroModemMimic::set_range_report_var(
const char* value,
size_t size) {
403 set_has_range_report_var();
404 if (range_report_var_ == _default_range_report_var_) {
405 range_report_var_ = new ::std::string;
407 range_report_var_->assign(reinterpret_cast<const char*>(value), size);
410 inline ::std::string* MicroModemMimic::mutable_range_report_var() {
411 set_has_range_report_var();
412 if (range_report_var_ == _default_range_report_var_) {
413 range_report_var_ = new ::std::string(*_default_range_report_var_);
416 return range_report_var_;
418 inline ::std::string* MicroModemMimic::release_range_report_var() {
419 clear_has_range_report_var();
420 if (range_report_var_ == _default_range_report_var_) {
423 ::std::string* temp = range_report_var_;
424 range_report_var_ =
const_cast< ::std::string*
>(_default_range_report_var_);
428 inline void MicroModemMimic::set_allocated_range_report_var(::std::string* range_report_var) {
429 if (range_report_var_ != _default_range_report_var_) {
430 delete range_report_var_;
432 if (range_report_var) {
433 set_has_range_report_var();
434 range_report_var_ = range_report_var;
436 clear_has_range_report_var();
437 range_report_var_ =
const_cast< ::std::string*
>(_default_range_report_var_);
457 template <>
struct is_proto_enum< ::goby::moos::protobuf::TransmissionType> : ::google::protobuf::internal::true_type {};
459 inline const EnumDescriptor* GetEnumDescriptor< ::goby::moos::protobuf::TransmissionType>() {
460 return ::goby::moos::protobuf::TransmissionType_descriptor();
469 #endif // PROTOBUF_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto__INCLUDED
The global namespace for the Goby project.