Goby v2
ufield_sim_driver.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/moos/protobuf/ufield_sim_driver.proto
3 
4 #ifndef PROTOBUF_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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>
36 // @@protoc_insertion_point(includes)
37 
38 namespace goby {
39 namespace moos {
40 namespace protobuf {
41 
42 // Internal implementation detail -- do not call these.
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();
46 
47 class MicroModemMimic;
48 class Config;
49 
50 enum TransmissionType {
51  BASE_TYPE = 0,
52  UFIELD_DRIVER_POLL = 1
53 };
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;
58 
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);
63 }
64 inline bool TransmissionType_Parse(
65  const ::std::string& name, TransmissionType* value) {
66  return ::google::protobuf::internal::ParseNamedEnum<TransmissionType>(
67  TransmissionType_descriptor(), name, value);
68 }
69 // ===================================================================
70 
71 class MicroModemMimic : public ::google::protobuf::Message {
72  public:
74  virtual ~MicroModemMimic();
75 
76  MicroModemMimic(const MicroModemMimic& from);
77 
78  inline MicroModemMimic& operator=(const MicroModemMimic& from) {
79  CopyFrom(from);
80  return *this;
81  }
82 
83  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
84  return _unknown_fields_;
85  }
86 
87  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
88  return &_unknown_fields_;
89  }
90 
91  static const ::google::protobuf::Descriptor* descriptor();
92  static const MicroModemMimic& default_instance();
93 
94  void Swap(MicroModemMimic* other);
95 
96  // implements Message ----------------------------------------------
97 
98  MicroModemMimic* New() const;
99  void CopyFrom(const ::google::protobuf::Message& from);
100  void MergeFrom(const ::google::protobuf::Message& from);
101  void CopyFrom(const MicroModemMimic& from);
102  void MergeFrom(const MicroModemMimic& from);
103  void Clear();
104  bool IsInitialized() const;
105 
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_; }
113  private:
114  void SharedCtor();
115  void SharedDtor();
116  void SetCachedSize(int size) const;
117  public:
118  ::google::protobuf::Metadata GetMetadata() const;
119 
120  // nested types ----------------------------------------------------
121 
122  // accessors -------------------------------------------------------
123 
124  // optional string range_request_var = 1 [default = "CRS_RANGE_REQUEST"];
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);
135 
136  // optional string range_report_var = 2 [default = "CRS_RANGE_REPORT"];
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);
147 
148  // @@protoc_insertion_point(class_scope:goby.moos.protobuf.MicroModemMimic)
149  private:
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();
154 
155  ::google::protobuf::UnknownFieldSet _unknown_fields_;
156 
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();
166 
167  void InitAsDefaultInstance();
168  static MicroModemMimic* default_instance_;
169 };
170 // -------------------------------------------------------------------
171 
172 class Config : public ::google::protobuf::Message {
173  public:
174  Config();
175  virtual ~Config();
176 
177  Config(const Config& from);
178 
179  inline Config& operator=(const Config& from) {
180  CopyFrom(from);
181  return *this;
182  }
183 
184  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
185  return _unknown_fields_;
186  }
187 
188  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
189  return &_unknown_fields_;
190  }
191 
192  static const ::google::protobuf::Descriptor* descriptor();
193  static const Config& default_instance();
194 
195  void Swap(Config* other);
196 
197  // implements Message ----------------------------------------------
198 
199  Config* New() const;
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);
204  void Clear();
205  bool IsInitialized() const;
206 
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_; }
214  private:
215  void SharedCtor();
216  void SharedDtor();
217  void SetCachedSize(int size) const;
218  public:
219  ::google::protobuf::Metadata GetMetadata() const;
220 
221  // nested types ----------------------------------------------------
222 
223  // accessors -------------------------------------------------------
224 
225  static const int kMoosServerFieldNumber = 1300;
226  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
227  ::google::protobuf::internal::StringTypeTraits, 9, false >
228  moos_server;
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 >
232  moos_port;
233  static const int kIncomingMoosVarFieldNumber = 1302;
234  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
235  ::google::protobuf::internal::StringTypeTraits, 9, false >
236  incoming_moos_var;
237  static const int kOutgoingMoosVarFieldNumber = 1303;
238  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
239  ::google::protobuf::internal::StringTypeTraits, 9, false >
240  outgoing_moos_var;
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 >
248  rate_to_bytes;
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 >
256  micromodem_mimic;
257  // @@protoc_insertion_point(class_scope:goby.moos.protobuf.Config)
258  private:
259 
260  ::google::protobuf::UnknownFieldSet _unknown_fields_;
261 
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();
267 
268  void InitAsDefaultInstance();
269  static Config* default_instance_;
270 };
271 // ===================================================================
272 
273 static const int kTypeFieldNumber = 1300;
274 extern ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::ModemTransmission,
275  ::google::protobuf::internal::EnumTypeTraits< ::goby::moos::protobuf::TransmissionType, ::goby::moos::protobuf::TransmissionType_IsValid>, 14, false >
276  type;
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 >
280  poll_src;
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 >
284  poll_dest;
285 
286 // ===================================================================
287 
288 // MicroModemMimic
289 
290 // optional string range_request_var = 1 [default = "CRS_RANGE_REQUEST"];
291 inline bool MicroModemMimic::has_range_request_var() const {
292  return (_has_bits_[0] & 0x00000001u) != 0;
293 }
294 inline void MicroModemMimic::set_has_range_request_var() {
295  _has_bits_[0] |= 0x00000001u;
296 }
297 inline void MicroModemMimic::clear_has_range_request_var() {
298  _has_bits_[0] &= ~0x00000001u;
299 }
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_);
303  }
304  clear_has_range_request_var();
305 }
306 inline const ::std::string& MicroModemMimic::range_request_var() const {
307  // @@protoc_insertion_point(field_get:goby.moos.protobuf.MicroModemMimic.range_request_var)
308  return *range_request_var_;
309 }
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;
314  }
315  range_request_var_->assign(value);
316  // @@protoc_insertion_point(field_set:goby.moos.protobuf.MicroModemMimic.range_request_var)
317 }
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;
322  }
323  range_request_var_->assign(value);
324  // @@protoc_insertion_point(field_set_char:goby.moos.protobuf.MicroModemMimic.range_request_var)
325 }
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;
330  }
331  range_request_var_->assign(reinterpret_cast<const char*>(value), size);
332  // @@protoc_insertion_point(field_set_pointer:goby.moos.protobuf.MicroModemMimic.range_request_var)
333 }
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_);
338  }
339  // @@protoc_insertion_point(field_mutable:goby.moos.protobuf.MicroModemMimic.range_request_var)
340  return range_request_var_;
341 }
342 inline ::std::string* MicroModemMimic::release_range_request_var() {
343  clear_has_range_request_var();
344  if (range_request_var_ == _default_range_request_var_) {
345  return NULL;
346  } else {
347  ::std::string* temp = range_request_var_;
348  range_request_var_ = const_cast< ::std::string*>(_default_range_request_var_);
349  return temp;
350  }
351 }
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_;
355  }
356  if (range_request_var) {
357  set_has_range_request_var();
358  range_request_var_ = range_request_var;
359  } else {
360  clear_has_range_request_var();
361  range_request_var_ = const_cast< ::std::string*>(_default_range_request_var_);
362  }
363  // @@protoc_insertion_point(field_set_allocated:goby.moos.protobuf.MicroModemMimic.range_request_var)
364 }
365 
366 // optional string range_report_var = 2 [default = "CRS_RANGE_REPORT"];
367 inline bool MicroModemMimic::has_range_report_var() const {
368  return (_has_bits_[0] & 0x00000002u) != 0;
369 }
370 inline void MicroModemMimic::set_has_range_report_var() {
371  _has_bits_[0] |= 0x00000002u;
372 }
373 inline void MicroModemMimic::clear_has_range_report_var() {
374  _has_bits_[0] &= ~0x00000002u;
375 }
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_);
379  }
380  clear_has_range_report_var();
381 }
382 inline const ::std::string& MicroModemMimic::range_report_var() const {
383  // @@protoc_insertion_point(field_get:goby.moos.protobuf.MicroModemMimic.range_report_var)
384  return *range_report_var_;
385 }
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;
390  }
391  range_report_var_->assign(value);
392  // @@protoc_insertion_point(field_set:goby.moos.protobuf.MicroModemMimic.range_report_var)
393 }
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;
398  }
399  range_report_var_->assign(value);
400  // @@protoc_insertion_point(field_set_char:goby.moos.protobuf.MicroModemMimic.range_report_var)
401 }
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;
406  }
407  range_report_var_->assign(reinterpret_cast<const char*>(value), size);
408  // @@protoc_insertion_point(field_set_pointer:goby.moos.protobuf.MicroModemMimic.range_report_var)
409 }
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_);
414  }
415  // @@protoc_insertion_point(field_mutable:goby.moos.protobuf.MicroModemMimic.range_report_var)
416  return range_report_var_;
417 }
418 inline ::std::string* MicroModemMimic::release_range_report_var() {
419  clear_has_range_report_var();
420  if (range_report_var_ == _default_range_report_var_) {
421  return NULL;
422  } else {
423  ::std::string* temp = range_report_var_;
424  range_report_var_ = const_cast< ::std::string*>(_default_range_report_var_);
425  return temp;
426  }
427 }
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_;
431  }
432  if (range_report_var) {
433  set_has_range_report_var();
434  range_report_var_ = range_report_var;
435  } else {
436  clear_has_range_report_var();
437  range_report_var_ = const_cast< ::std::string*>(_default_range_report_var_);
438  }
439  // @@protoc_insertion_point(field_set_allocated:goby.moos.protobuf.MicroModemMimic.range_report_var)
440 }
441 
442 // -------------------------------------------------------------------
443 
444 // Config
445 
446 
447 // @@protoc_insertion_point(namespace_scope)
448 
449 } // namespace protobuf
450 } // namespace moos
451 } // namespace goby
452 
453 #ifndef SWIG
454 namespace google {
455 namespace protobuf {
456 
457 template <> struct is_proto_enum< ::goby::moos::protobuf::TransmissionType> : ::google::protobuf::internal::true_type {};
458 template <>
459 inline const EnumDescriptor* GetEnumDescriptor< ::goby::moos::protobuf::TransmissionType>() {
460  return ::goby::moos::protobuf::TransmissionType_descriptor();
461 }
462 
463 } // namespace google
464 } // namespace protobuf
465 #endif // SWIG
466 
467 // @@protoc_insertion_point(global_scope)
468 
469 #endif // PROTOBUF_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto__INCLUDED
The global namespace for the Goby project.