Goby v2
driver_base.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/driver_base.proto
3 
4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto__INCLUDED
5 #define PROTOBUF_goby_2facomms_2fprotobuf_2fdriver_5fbase_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/common/protobuf/option_extensions.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>
33 // @@protoc_insertion_point(includes)
34 
35 namespace goby {
36 namespace acomms {
37 namespace protobuf {
38 
39 // Internal implementation detail -- do not call these.
40 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto();
41 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto();
42 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto();
43 
44 class DriverConfig;
45 
46 enum DriverConfig_ConnectionType {
47  DriverConfig_ConnectionType_CONNECTION_SERIAL = 1,
48  DriverConfig_ConnectionType_CONNECTION_TCP_AS_CLIENT = 2,
49  DriverConfig_ConnectionType_CONNECTION_TCP_AS_SERVER = 3
50 };
51 bool DriverConfig_ConnectionType_IsValid(int value);
52 const DriverConfig_ConnectionType DriverConfig_ConnectionType_ConnectionType_MIN = DriverConfig_ConnectionType_CONNECTION_SERIAL;
53 const DriverConfig_ConnectionType DriverConfig_ConnectionType_ConnectionType_MAX = DriverConfig_ConnectionType_CONNECTION_TCP_AS_SERVER;
54 const int DriverConfig_ConnectionType_ConnectionType_ARRAYSIZE = DriverConfig_ConnectionType_ConnectionType_MAX + 1;
55 
56 const ::google::protobuf::EnumDescriptor* DriverConfig_ConnectionType_descriptor();
57 inline const ::std::string& DriverConfig_ConnectionType_Name(DriverConfig_ConnectionType value) {
58  return ::google::protobuf::internal::NameOfEnum(
59  DriverConfig_ConnectionType_descriptor(), value);
60 }
61 inline bool DriverConfig_ConnectionType_Parse(
62  const ::std::string& name, DriverConfig_ConnectionType* value) {
63  return ::google::protobuf::internal::ParseNamedEnum<DriverConfig_ConnectionType>(
64  DriverConfig_ConnectionType_descriptor(), name, value);
65 }
66 enum DriverType {
67  DRIVER_NONE = 1,
68  DRIVER_WHOI_MICROMODEM = 2,
69  DRIVER_ABC_EXAMPLE_MODEM = 3,
70  DRIVER_UFIELD_SIM_DRIVER = 4,
71  DRIVER_PB_STORE_SERVER = 5,
72  DRIVER_UDP = 6,
73  DRIVER_BLUEFIN_MOOS = 7,
74  DRIVER_IRIDIUM = 8,
75  DRIVER_IRIDIUM_SHORE = 9,
76  DRIVER_BENTHOS_ATM900 = 10
77 };
78 bool DriverType_IsValid(int value);
79 const DriverType DriverType_MIN = DRIVER_NONE;
80 const DriverType DriverType_MAX = DRIVER_BENTHOS_ATM900;
81 const int DriverType_ARRAYSIZE = DriverType_MAX + 1;
82 
83 const ::google::protobuf::EnumDescriptor* DriverType_descriptor();
84 inline const ::std::string& DriverType_Name(DriverType value) {
85  return ::google::protobuf::internal::NameOfEnum(
86  DriverType_descriptor(), value);
87 }
88 inline bool DriverType_Parse(
89  const ::std::string& name, DriverType* value) {
90  return ::google::protobuf::internal::ParseNamedEnum<DriverType>(
91  DriverType_descriptor(), name, value);
92 }
93 // ===================================================================
94 
95 class DriverConfig : public ::google::protobuf::Message {
96  public:
97  DriverConfig();
98  virtual ~DriverConfig();
99 
100  DriverConfig(const DriverConfig& from);
101 
102  inline DriverConfig& operator=(const DriverConfig& from) {
103  CopyFrom(from);
104  return *this;
105  }
106 
107  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
108  return _unknown_fields_;
109  }
110 
111  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
112  return &_unknown_fields_;
113  }
114 
115  static const ::google::protobuf::Descriptor* descriptor();
116  static const DriverConfig& default_instance();
117 
118  void Swap(DriverConfig* other);
119 
120  // implements Message ----------------------------------------------
121 
122  DriverConfig* New() const;
123  void CopyFrom(const ::google::protobuf::Message& from);
124  void MergeFrom(const ::google::protobuf::Message& from);
125  void CopyFrom(const DriverConfig& from);
126  void MergeFrom(const DriverConfig& from);
127  void Clear();
128  bool IsInitialized() const;
129 
130  int ByteSize() const;
131  bool MergePartialFromCodedStream(
132  ::google::protobuf::io::CodedInputStream* input);
133  void SerializeWithCachedSizes(
134  ::google::protobuf::io::CodedOutputStream* output) const;
135  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
136  int GetCachedSize() const { return _cached_size_; }
137  private:
138  void SharedCtor();
139  void SharedDtor();
140  void SetCachedSize(int size) const;
141  public:
142  ::google::protobuf::Metadata GetMetadata() const;
143 
144  // nested types ----------------------------------------------------
145 
146  typedef DriverConfig_ConnectionType ConnectionType;
147  static const ConnectionType CONNECTION_SERIAL = DriverConfig_ConnectionType_CONNECTION_SERIAL;
148  static const ConnectionType CONNECTION_TCP_AS_CLIENT = DriverConfig_ConnectionType_CONNECTION_TCP_AS_CLIENT;
149  static const ConnectionType CONNECTION_TCP_AS_SERVER = DriverConfig_ConnectionType_CONNECTION_TCP_AS_SERVER;
150  static inline bool ConnectionType_IsValid(int value) {
151  return DriverConfig_ConnectionType_IsValid(value);
152  }
153  static const ConnectionType ConnectionType_MIN =
154  DriverConfig_ConnectionType_ConnectionType_MIN;
155  static const ConnectionType ConnectionType_MAX =
156  DriverConfig_ConnectionType_ConnectionType_MAX;
157  static const int ConnectionType_ARRAYSIZE =
158  DriverConfig_ConnectionType_ConnectionType_ARRAYSIZE;
159  static inline const ::google::protobuf::EnumDescriptor*
160  ConnectionType_descriptor() {
161  return DriverConfig_ConnectionType_descriptor();
162  }
163  static inline const ::std::string& ConnectionType_Name(ConnectionType value) {
164  return DriverConfig_ConnectionType_Name(value);
165  }
166  static inline bool ConnectionType_Parse(const ::std::string& name,
167  ConnectionType* value) {
168  return DriverConfig_ConnectionType_Parse(name, value);
169  }
170 
171  // accessors -------------------------------------------------------
172 
173  // optional int32 modem_id = 1;
174  inline bool has_modem_id() const;
175  inline void clear_modem_id();
176  static const int kModemIdFieldNumber = 1;
177  inline ::google::protobuf::int32 modem_id() const;
178  inline void set_modem_id(::google::protobuf::int32 value);
179 
180  // optional .goby.acomms.protobuf.DriverConfig.ConnectionType connection_type = 2 [default = CONNECTION_SERIAL];
181  inline bool has_connection_type() const;
182  inline void clear_connection_type();
183  static const int kConnectionTypeFieldNumber = 2;
184  inline ::goby::acomms::protobuf::DriverConfig_ConnectionType connection_type() const;
185  inline void set_connection_type(::goby::acomms::protobuf::DriverConfig_ConnectionType value);
186 
187  // optional string line_delimiter = 3 [default = "\r\n"];
188  inline bool has_line_delimiter() const;
189  inline void clear_line_delimiter();
190  static const int kLineDelimiterFieldNumber = 3;
191  inline const ::std::string& line_delimiter() const;
192  inline void set_line_delimiter(const ::std::string& value);
193  inline void set_line_delimiter(const char* value);
194  inline void set_line_delimiter(const char* value, size_t size);
195  inline ::std::string* mutable_line_delimiter();
196  inline ::std::string* release_line_delimiter();
197  inline void set_allocated_line_delimiter(::std::string* line_delimiter);
198 
199  // optional string serial_port = 4;
200  inline bool has_serial_port() const;
201  inline void clear_serial_port();
202  static const int kSerialPortFieldNumber = 4;
203  inline const ::std::string& serial_port() const;
204  inline void set_serial_port(const ::std::string& value);
205  inline void set_serial_port(const char* value);
206  inline void set_serial_port(const char* value, size_t size);
207  inline ::std::string* mutable_serial_port();
208  inline ::std::string* release_serial_port();
209  inline void set_allocated_serial_port(::std::string* serial_port);
210 
211  // optional uint32 serial_baud = 5;
212  inline bool has_serial_baud() const;
213  inline void clear_serial_baud();
214  static const int kSerialBaudFieldNumber = 5;
215  inline ::google::protobuf::uint32 serial_baud() const;
216  inline void set_serial_baud(::google::protobuf::uint32 value);
217 
218  // optional string tcp_server = 6;
219  inline bool has_tcp_server() const;
220  inline void clear_tcp_server();
221  static const int kTcpServerFieldNumber = 6;
222  inline const ::std::string& tcp_server() const;
223  inline void set_tcp_server(const ::std::string& value);
224  inline void set_tcp_server(const char* value);
225  inline void set_tcp_server(const char* value, size_t size);
226  inline ::std::string* mutable_tcp_server();
227  inline ::std::string* release_tcp_server();
228  inline void set_allocated_tcp_server(::std::string* tcp_server);
229 
230  // optional uint32 tcp_port = 7;
231  inline bool has_tcp_port() const;
232  inline void clear_tcp_port();
233  static const int kTcpPortFieldNumber = 7;
234  inline ::google::protobuf::uint32 tcp_port() const;
235  inline void set_tcp_port(::google::protobuf::uint32 value);
236 
237  // optional uint32 reconnect_interval = 8 [default = 10];
238  inline bool has_reconnect_interval() const;
239  inline void clear_reconnect_interval();
240  static const int kReconnectIntervalFieldNumber = 8;
241  inline ::google::protobuf::uint32 reconnect_interval() const;
242  inline void set_reconnect_interval(::google::protobuf::uint32 value);
243 
244  // optional string raw_log = 9;
245  inline bool has_raw_log() const;
246  inline void clear_raw_log();
247  static const int kRawLogFieldNumber = 9;
248  inline const ::std::string& raw_log() const;
249  inline void set_raw_log(const ::std::string& value);
250  inline void set_raw_log(const char* value);
251  inline void set_raw_log(const char* value, size_t size);
252  inline ::std::string* mutable_raw_log();
253  inline ::std::string* release_raw_log();
254  inline void set_allocated_raw_log(::std::string* raw_log);
255 
256  // optional string driver_name = 10;
257  inline bool has_driver_name() const;
258  inline void clear_driver_name();
259  static const int kDriverNameFieldNumber = 10;
260  inline const ::std::string& driver_name() const;
261  inline void set_driver_name(const ::std::string& value);
262  inline void set_driver_name(const char* value);
263  inline void set_driver_name(const char* value, size_t size);
264  inline ::std::string* mutable_driver_name();
265  inline ::std::string* release_driver_name();
266  inline void set_allocated_driver_name(::std::string* driver_name);
267 
268  GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(DriverConfig)
269  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.DriverConfig)
270  private:
271  inline void set_has_modem_id();
272  inline void clear_has_modem_id();
273  inline void set_has_connection_type();
274  inline void clear_has_connection_type();
275  inline void set_has_line_delimiter();
276  inline void clear_has_line_delimiter();
277  inline void set_has_serial_port();
278  inline void clear_has_serial_port();
279  inline void set_has_serial_baud();
280  inline void clear_has_serial_baud();
281  inline void set_has_tcp_server();
282  inline void clear_has_tcp_server();
283  inline void set_has_tcp_port();
284  inline void clear_has_tcp_port();
285  inline void set_has_reconnect_interval();
286  inline void clear_has_reconnect_interval();
287  inline void set_has_raw_log();
288  inline void clear_has_raw_log();
289  inline void set_has_driver_name();
290  inline void clear_has_driver_name();
291 
292  ::google::protobuf::internal::ExtensionSet _extensions_;
293 
294  ::google::protobuf::UnknownFieldSet _unknown_fields_;
295 
296  ::google::protobuf::uint32 _has_bits_[1];
297  mutable int _cached_size_;
298  ::google::protobuf::int32 modem_id_;
299  int connection_type_;
300  static ::std::string* _default_line_delimiter_;
301  ::std::string* line_delimiter_;
302  ::std::string* serial_port_;
303  ::std::string* tcp_server_;
304  ::google::protobuf::uint32 serial_baud_;
305  ::google::protobuf::uint32 tcp_port_;
306  ::std::string* raw_log_;
307  ::std::string* driver_name_;
308  ::google::protobuf::uint32 reconnect_interval_;
309  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto();
310  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto();
311  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto();
312 
313  void InitAsDefaultInstance();
314  static DriverConfig* default_instance_;
315 };
316 // ===================================================================
317 
318 
319 // ===================================================================
320 
321 // DriverConfig
322 
323 // optional int32 modem_id = 1;
324 inline bool DriverConfig::has_modem_id() const {
325  return (_has_bits_[0] & 0x00000001u) != 0;
326 }
327 inline void DriverConfig::set_has_modem_id() {
328  _has_bits_[0] |= 0x00000001u;
329 }
330 inline void DriverConfig::clear_has_modem_id() {
331  _has_bits_[0] &= ~0x00000001u;
332 }
333 inline void DriverConfig::clear_modem_id() {
334  modem_id_ = 0;
335  clear_has_modem_id();
336 }
337 inline ::google::protobuf::int32 DriverConfig::modem_id() const {
338  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.modem_id)
339  return modem_id_;
340 }
341 inline void DriverConfig::set_modem_id(::google::protobuf::int32 value) {
342  set_has_modem_id();
343  modem_id_ = value;
344  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.modem_id)
345 }
346 
347 // optional .goby.acomms.protobuf.DriverConfig.ConnectionType connection_type = 2 [default = CONNECTION_SERIAL];
348 inline bool DriverConfig::has_connection_type() const {
349  return (_has_bits_[0] & 0x00000002u) != 0;
350 }
351 inline void DriverConfig::set_has_connection_type() {
352  _has_bits_[0] |= 0x00000002u;
353 }
354 inline void DriverConfig::clear_has_connection_type() {
355  _has_bits_[0] &= ~0x00000002u;
356 }
357 inline void DriverConfig::clear_connection_type() {
358  connection_type_ = 1;
359  clear_has_connection_type();
360 }
361 inline ::goby::acomms::protobuf::DriverConfig_ConnectionType DriverConfig::connection_type() const {
362  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.connection_type)
363  return static_cast< ::goby::acomms::protobuf::DriverConfig_ConnectionType >(connection_type_);
364 }
365 inline void DriverConfig::set_connection_type(::goby::acomms::protobuf::DriverConfig_ConnectionType value) {
366  assert(::goby::acomms::protobuf::DriverConfig_ConnectionType_IsValid(value));
367  set_has_connection_type();
368  connection_type_ = value;
369  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.connection_type)
370 }
371 
372 // optional string line_delimiter = 3 [default = "\r\n"];
373 inline bool DriverConfig::has_line_delimiter() const {
374  return (_has_bits_[0] & 0x00000004u) != 0;
375 }
376 inline void DriverConfig::set_has_line_delimiter() {
377  _has_bits_[0] |= 0x00000004u;
378 }
379 inline void DriverConfig::clear_has_line_delimiter() {
380  _has_bits_[0] &= ~0x00000004u;
381 }
382 inline void DriverConfig::clear_line_delimiter() {
383  if (line_delimiter_ != _default_line_delimiter_) {
384  line_delimiter_->assign(*_default_line_delimiter_);
385  }
386  clear_has_line_delimiter();
387 }
388 inline const ::std::string& DriverConfig::line_delimiter() const {
389  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.line_delimiter)
390  return *line_delimiter_;
391 }
392 inline void DriverConfig::set_line_delimiter(const ::std::string& value) {
393  set_has_line_delimiter();
394  if (line_delimiter_ == _default_line_delimiter_) {
395  line_delimiter_ = new ::std::string;
396  }
397  line_delimiter_->assign(value);
398  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.line_delimiter)
399 }
400 inline void DriverConfig::set_line_delimiter(const char* value) {
401  set_has_line_delimiter();
402  if (line_delimiter_ == _default_line_delimiter_) {
403  line_delimiter_ = new ::std::string;
404  }
405  line_delimiter_->assign(value);
406  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.DriverConfig.line_delimiter)
407 }
408 inline void DriverConfig::set_line_delimiter(const char* value, size_t size) {
409  set_has_line_delimiter();
410  if (line_delimiter_ == _default_line_delimiter_) {
411  line_delimiter_ = new ::std::string;
412  }
413  line_delimiter_->assign(reinterpret_cast<const char*>(value), size);
414  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.DriverConfig.line_delimiter)
415 }
416 inline ::std::string* DriverConfig::mutable_line_delimiter() {
417  set_has_line_delimiter();
418  if (line_delimiter_ == _default_line_delimiter_) {
419  line_delimiter_ = new ::std::string(*_default_line_delimiter_);
420  }
421  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.DriverConfig.line_delimiter)
422  return line_delimiter_;
423 }
424 inline ::std::string* DriverConfig::release_line_delimiter() {
425  clear_has_line_delimiter();
426  if (line_delimiter_ == _default_line_delimiter_) {
427  return NULL;
428  } else {
429  ::std::string* temp = line_delimiter_;
430  line_delimiter_ = const_cast< ::std::string*>(_default_line_delimiter_);
431  return temp;
432  }
433 }
434 inline void DriverConfig::set_allocated_line_delimiter(::std::string* line_delimiter) {
435  if (line_delimiter_ != _default_line_delimiter_) {
436  delete line_delimiter_;
437  }
438  if (line_delimiter) {
439  set_has_line_delimiter();
440  line_delimiter_ = line_delimiter;
441  } else {
442  clear_has_line_delimiter();
443  line_delimiter_ = const_cast< ::std::string*>(_default_line_delimiter_);
444  }
445  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.DriverConfig.line_delimiter)
446 }
447 
448 // optional string serial_port = 4;
449 inline bool DriverConfig::has_serial_port() const {
450  return (_has_bits_[0] & 0x00000008u) != 0;
451 }
452 inline void DriverConfig::set_has_serial_port() {
453  _has_bits_[0] |= 0x00000008u;
454 }
455 inline void DriverConfig::clear_has_serial_port() {
456  _has_bits_[0] &= ~0x00000008u;
457 }
458 inline void DriverConfig::clear_serial_port() {
459  if (serial_port_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
460  serial_port_->clear();
461  }
462  clear_has_serial_port();
463 }
464 inline const ::std::string& DriverConfig::serial_port() const {
465  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.serial_port)
466  return *serial_port_;
467 }
468 inline void DriverConfig::set_serial_port(const ::std::string& value) {
469  set_has_serial_port();
470  if (serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
471  serial_port_ = new ::std::string;
472  }
473  serial_port_->assign(value);
474  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.serial_port)
475 }
476 inline void DriverConfig::set_serial_port(const char* value) {
477  set_has_serial_port();
478  if (serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
479  serial_port_ = new ::std::string;
480  }
481  serial_port_->assign(value);
482  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.DriverConfig.serial_port)
483 }
484 inline void DriverConfig::set_serial_port(const char* value, size_t size) {
485  set_has_serial_port();
486  if (serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
487  serial_port_ = new ::std::string;
488  }
489  serial_port_->assign(reinterpret_cast<const char*>(value), size);
490  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.DriverConfig.serial_port)
491 }
492 inline ::std::string* DriverConfig::mutable_serial_port() {
493  set_has_serial_port();
494  if (serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
495  serial_port_ = new ::std::string;
496  }
497  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.DriverConfig.serial_port)
498  return serial_port_;
499 }
500 inline ::std::string* DriverConfig::release_serial_port() {
501  clear_has_serial_port();
502  if (serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
503  return NULL;
504  } else {
505  ::std::string* temp = serial_port_;
506  serial_port_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
507  return temp;
508  }
509 }
510 inline void DriverConfig::set_allocated_serial_port(::std::string* serial_port) {
511  if (serial_port_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
512  delete serial_port_;
513  }
514  if (serial_port) {
515  set_has_serial_port();
516  serial_port_ = serial_port;
517  } else {
518  clear_has_serial_port();
519  serial_port_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
520  }
521  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.DriverConfig.serial_port)
522 }
523 
524 // optional uint32 serial_baud = 5;
525 inline bool DriverConfig::has_serial_baud() const {
526  return (_has_bits_[0] & 0x00000010u) != 0;
527 }
528 inline void DriverConfig::set_has_serial_baud() {
529  _has_bits_[0] |= 0x00000010u;
530 }
531 inline void DriverConfig::clear_has_serial_baud() {
532  _has_bits_[0] &= ~0x00000010u;
533 }
534 inline void DriverConfig::clear_serial_baud() {
535  serial_baud_ = 0u;
536  clear_has_serial_baud();
537 }
538 inline ::google::protobuf::uint32 DriverConfig::serial_baud() const {
539  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.serial_baud)
540  return serial_baud_;
541 }
542 inline void DriverConfig::set_serial_baud(::google::protobuf::uint32 value) {
543  set_has_serial_baud();
544  serial_baud_ = value;
545  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.serial_baud)
546 }
547 
548 // optional string tcp_server = 6;
549 inline bool DriverConfig::has_tcp_server() const {
550  return (_has_bits_[0] & 0x00000020u) != 0;
551 }
552 inline void DriverConfig::set_has_tcp_server() {
553  _has_bits_[0] |= 0x00000020u;
554 }
555 inline void DriverConfig::clear_has_tcp_server() {
556  _has_bits_[0] &= ~0x00000020u;
557 }
558 inline void DriverConfig::clear_tcp_server() {
559  if (tcp_server_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
560  tcp_server_->clear();
561  }
562  clear_has_tcp_server();
563 }
564 inline const ::std::string& DriverConfig::tcp_server() const {
565  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.tcp_server)
566  return *tcp_server_;
567 }
568 inline void DriverConfig::set_tcp_server(const ::std::string& value) {
569  set_has_tcp_server();
570  if (tcp_server_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
571  tcp_server_ = new ::std::string;
572  }
573  tcp_server_->assign(value);
574  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.tcp_server)
575 }
576 inline void DriverConfig::set_tcp_server(const char* value) {
577  set_has_tcp_server();
578  if (tcp_server_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
579  tcp_server_ = new ::std::string;
580  }
581  tcp_server_->assign(value);
582  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.DriverConfig.tcp_server)
583 }
584 inline void DriverConfig::set_tcp_server(const char* value, size_t size) {
585  set_has_tcp_server();
586  if (tcp_server_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
587  tcp_server_ = new ::std::string;
588  }
589  tcp_server_->assign(reinterpret_cast<const char*>(value), size);
590  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.DriverConfig.tcp_server)
591 }
592 inline ::std::string* DriverConfig::mutable_tcp_server() {
593  set_has_tcp_server();
594  if (tcp_server_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
595  tcp_server_ = new ::std::string;
596  }
597  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.DriverConfig.tcp_server)
598  return tcp_server_;
599 }
600 inline ::std::string* DriverConfig::release_tcp_server() {
601  clear_has_tcp_server();
602  if (tcp_server_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
603  return NULL;
604  } else {
605  ::std::string* temp = tcp_server_;
606  tcp_server_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
607  return temp;
608  }
609 }
610 inline void DriverConfig::set_allocated_tcp_server(::std::string* tcp_server) {
611  if (tcp_server_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
612  delete tcp_server_;
613  }
614  if (tcp_server) {
615  set_has_tcp_server();
616  tcp_server_ = tcp_server;
617  } else {
618  clear_has_tcp_server();
619  tcp_server_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
620  }
621  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.DriverConfig.tcp_server)
622 }
623 
624 // optional uint32 tcp_port = 7;
625 inline bool DriverConfig::has_tcp_port() const {
626  return (_has_bits_[0] & 0x00000040u) != 0;
627 }
628 inline void DriverConfig::set_has_tcp_port() {
629  _has_bits_[0] |= 0x00000040u;
630 }
631 inline void DriverConfig::clear_has_tcp_port() {
632  _has_bits_[0] &= ~0x00000040u;
633 }
634 inline void DriverConfig::clear_tcp_port() {
635  tcp_port_ = 0u;
636  clear_has_tcp_port();
637 }
638 inline ::google::protobuf::uint32 DriverConfig::tcp_port() const {
639  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.tcp_port)
640  return tcp_port_;
641 }
642 inline void DriverConfig::set_tcp_port(::google::protobuf::uint32 value) {
643  set_has_tcp_port();
644  tcp_port_ = value;
645  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.tcp_port)
646 }
647 
648 // optional uint32 reconnect_interval = 8 [default = 10];
649 inline bool DriverConfig::has_reconnect_interval() const {
650  return (_has_bits_[0] & 0x00000080u) != 0;
651 }
652 inline void DriverConfig::set_has_reconnect_interval() {
653  _has_bits_[0] |= 0x00000080u;
654 }
655 inline void DriverConfig::clear_has_reconnect_interval() {
656  _has_bits_[0] &= ~0x00000080u;
657 }
658 inline void DriverConfig::clear_reconnect_interval() {
659  reconnect_interval_ = 10u;
660  clear_has_reconnect_interval();
661 }
662 inline ::google::protobuf::uint32 DriverConfig::reconnect_interval() const {
663  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.reconnect_interval)
664  return reconnect_interval_;
665 }
666 inline void DriverConfig::set_reconnect_interval(::google::protobuf::uint32 value) {
667  set_has_reconnect_interval();
668  reconnect_interval_ = value;
669  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.reconnect_interval)
670 }
671 
672 // optional string raw_log = 9;
673 inline bool DriverConfig::has_raw_log() const {
674  return (_has_bits_[0] & 0x00000100u) != 0;
675 }
676 inline void DriverConfig::set_has_raw_log() {
677  _has_bits_[0] |= 0x00000100u;
678 }
679 inline void DriverConfig::clear_has_raw_log() {
680  _has_bits_[0] &= ~0x00000100u;
681 }
682 inline void DriverConfig::clear_raw_log() {
683  if (raw_log_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
684  raw_log_->clear();
685  }
686  clear_has_raw_log();
687 }
688 inline const ::std::string& DriverConfig::raw_log() const {
689  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.raw_log)
690  return *raw_log_;
691 }
692 inline void DriverConfig::set_raw_log(const ::std::string& value) {
693  set_has_raw_log();
694  if (raw_log_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
695  raw_log_ = new ::std::string;
696  }
697  raw_log_->assign(value);
698  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.raw_log)
699 }
700 inline void DriverConfig::set_raw_log(const char* value) {
701  set_has_raw_log();
702  if (raw_log_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
703  raw_log_ = new ::std::string;
704  }
705  raw_log_->assign(value);
706  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.DriverConfig.raw_log)
707 }
708 inline void DriverConfig::set_raw_log(const char* value, size_t size) {
709  set_has_raw_log();
710  if (raw_log_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
711  raw_log_ = new ::std::string;
712  }
713  raw_log_->assign(reinterpret_cast<const char*>(value), size);
714  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.DriverConfig.raw_log)
715 }
716 inline ::std::string* DriverConfig::mutable_raw_log() {
717  set_has_raw_log();
718  if (raw_log_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
719  raw_log_ = new ::std::string;
720  }
721  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.DriverConfig.raw_log)
722  return raw_log_;
723 }
724 inline ::std::string* DriverConfig::release_raw_log() {
725  clear_has_raw_log();
726  if (raw_log_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
727  return NULL;
728  } else {
729  ::std::string* temp = raw_log_;
730  raw_log_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
731  return temp;
732  }
733 }
734 inline void DriverConfig::set_allocated_raw_log(::std::string* raw_log) {
735  if (raw_log_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
736  delete raw_log_;
737  }
738  if (raw_log) {
739  set_has_raw_log();
740  raw_log_ = raw_log;
741  } else {
742  clear_has_raw_log();
743  raw_log_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
744  }
745  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.DriverConfig.raw_log)
746 }
747 
748 // optional string driver_name = 10;
749 inline bool DriverConfig::has_driver_name() const {
750  return (_has_bits_[0] & 0x00000200u) != 0;
751 }
752 inline void DriverConfig::set_has_driver_name() {
753  _has_bits_[0] |= 0x00000200u;
754 }
755 inline void DriverConfig::clear_has_driver_name() {
756  _has_bits_[0] &= ~0x00000200u;
757 }
758 inline void DriverConfig::clear_driver_name() {
759  if (driver_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
760  driver_name_->clear();
761  }
762  clear_has_driver_name();
763 }
764 inline const ::std::string& DriverConfig::driver_name() const {
765  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.driver_name)
766  return *driver_name_;
767 }
768 inline void DriverConfig::set_driver_name(const ::std::string& value) {
769  set_has_driver_name();
770  if (driver_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
771  driver_name_ = new ::std::string;
772  }
773  driver_name_->assign(value);
774  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.driver_name)
775 }
776 inline void DriverConfig::set_driver_name(const char* value) {
777  set_has_driver_name();
778  if (driver_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
779  driver_name_ = new ::std::string;
780  }
781  driver_name_->assign(value);
782  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.DriverConfig.driver_name)
783 }
784 inline void DriverConfig::set_driver_name(const char* value, size_t size) {
785  set_has_driver_name();
786  if (driver_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
787  driver_name_ = new ::std::string;
788  }
789  driver_name_->assign(reinterpret_cast<const char*>(value), size);
790  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.DriverConfig.driver_name)
791 }
792 inline ::std::string* DriverConfig::mutable_driver_name() {
793  set_has_driver_name();
794  if (driver_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
795  driver_name_ = new ::std::string;
796  }
797  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.DriverConfig.driver_name)
798  return driver_name_;
799 }
800 inline ::std::string* DriverConfig::release_driver_name() {
801  clear_has_driver_name();
802  if (driver_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
803  return NULL;
804  } else {
805  ::std::string* temp = driver_name_;
806  driver_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
807  return temp;
808  }
809 }
810 inline void DriverConfig::set_allocated_driver_name(::std::string* driver_name) {
811  if (driver_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
812  delete driver_name_;
813  }
814  if (driver_name) {
815  set_has_driver_name();
816  driver_name_ = driver_name;
817  } else {
818  clear_has_driver_name();
819  driver_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
820  }
821  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.DriverConfig.driver_name)
822 }
823 
824 
825 // @@protoc_insertion_point(namespace_scope)
826 
827 } // namespace protobuf
828 } // namespace acomms
829 } // namespace goby
830 
831 #ifndef SWIG
832 namespace google {
833 namespace protobuf {
834 
835 template <> struct is_proto_enum< ::goby::acomms::protobuf::DriverConfig_ConnectionType> : ::google::protobuf::internal::true_type {};
836 template <>
837 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::DriverConfig_ConnectionType>() {
838  return ::goby::acomms::protobuf::DriverConfig_ConnectionType_descriptor();
839 }
840 template <> struct is_proto_enum< ::goby::acomms::protobuf::DriverType> : ::google::protobuf::internal::true_type {};
841 template <>
842 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::DriverType>() {
843  return ::goby::acomms::protobuf::DriverType_descriptor();
844 }
845 
846 } // namespace google
847 } // namespace protobuf
848 #endif // SWIG
849 
850 // @@protoc_insertion_point(global_scope)
851 
852 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto__INCLUDED
The global namespace for the Goby project.