4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto__INCLUDED 5 #define PROTOBUF_goby_2facomms_2fprotobuf_2fdriver_5fbase_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/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> 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();
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
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;
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);
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);
68 DRIVER_WHOI_MICROMODEM = 2,
69 DRIVER_ABC_EXAMPLE_MODEM = 3,
70 DRIVER_UFIELD_SIM_DRIVER = 4,
71 DRIVER_PB_STORE_SERVER = 5,
73 DRIVER_BLUEFIN_MOOS = 7,
75 DRIVER_IRIDIUM_SHORE = 9,
76 DRIVER_BENTHOS_ATM900 = 10
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;
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);
88 inline bool DriverType_Parse(
89 const ::std::string& name, DriverType* value) {
90 return ::google::protobuf::internal::ParseNamedEnum<DriverType>(
91 DriverType_descriptor(), name, value);
107 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
108 return _unknown_fields_;
111 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
112 return &_unknown_fields_;
115 static const ::google::protobuf::Descriptor* descriptor();
123 void CopyFrom(const ::google::protobuf::Message& from);
124 void MergeFrom(const ::google::protobuf::Message& from);
128 bool IsInitialized()
const;
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_; }
140 void SetCachedSize(
int size)
const;
142 ::google::protobuf::Metadata GetMetadata()
const;
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);
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();
163 static inline const ::std::string& ConnectionType_Name(ConnectionType value) {
164 return DriverConfig_ConnectionType_Name(value);
166 static inline bool ConnectionType_Parse(const ::std::string& name,
167 ConnectionType* value) {
168 return DriverConfig_ConnectionType_Parse(name, value);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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();
292 ::google::protobuf::internal::ExtensionSet _extensions_;
294 ::google::protobuf::UnknownFieldSet _unknown_fields_;
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();
313 void InitAsDefaultInstance();
324 inline bool DriverConfig::has_modem_id()
const {
325 return (_has_bits_[0] & 0x00000001u) != 0;
327 inline void DriverConfig::set_has_modem_id() {
328 _has_bits_[0] |= 0x00000001u;
330 inline void DriverConfig::clear_has_modem_id() {
331 _has_bits_[0] &= ~0x00000001u;
333 inline void DriverConfig::clear_modem_id() {
335 clear_has_modem_id();
337 inline ::google::protobuf::int32 DriverConfig::modem_id()
const {
341 inline void DriverConfig::set_modem_id(::google::protobuf::int32 value) {
348 inline bool DriverConfig::has_connection_type()
const {
349 return (_has_bits_[0] & 0x00000002u) != 0;
351 inline void DriverConfig::set_has_connection_type() {
352 _has_bits_[0] |= 0x00000002u;
354 inline void DriverConfig::clear_has_connection_type() {
355 _has_bits_[0] &= ~0x00000002u;
357 inline void DriverConfig::clear_connection_type() {
358 connection_type_ = 1;
359 clear_has_connection_type();
361 inline ::goby::acomms::protobuf::DriverConfig_ConnectionType DriverConfig::connection_type()
const {
363 return static_cast< ::goby::acomms::protobuf::DriverConfig_ConnectionType
>(connection_type_);
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;
373 inline bool DriverConfig::has_line_delimiter()
const {
374 return (_has_bits_[0] & 0x00000004u) != 0;
376 inline void DriverConfig::set_has_line_delimiter() {
377 _has_bits_[0] |= 0x00000004u;
379 inline void DriverConfig::clear_has_line_delimiter() {
380 _has_bits_[0] &= ~0x00000004u;
382 inline void DriverConfig::clear_line_delimiter() {
383 if (line_delimiter_ != _default_line_delimiter_) {
384 line_delimiter_->assign(*_default_line_delimiter_);
386 clear_has_line_delimiter();
388 inline const ::std::string& DriverConfig::line_delimiter()
const {
390 return *line_delimiter_;
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;
397 line_delimiter_->assign(value);
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;
405 line_delimiter_->assign(value);
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;
413 line_delimiter_->assign(reinterpret_cast<const char*>(value), size);
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_);
422 return line_delimiter_;
424 inline ::std::string* DriverConfig::release_line_delimiter() {
425 clear_has_line_delimiter();
426 if (line_delimiter_ == _default_line_delimiter_) {
429 ::std::string* temp = line_delimiter_;
430 line_delimiter_ =
const_cast< ::std::string*
>(_default_line_delimiter_);
434 inline void DriverConfig::set_allocated_line_delimiter(::std::string* line_delimiter) {
435 if (line_delimiter_ != _default_line_delimiter_) {
436 delete line_delimiter_;
438 if (line_delimiter) {
439 set_has_line_delimiter();
440 line_delimiter_ = line_delimiter;
442 clear_has_line_delimiter();
443 line_delimiter_ =
const_cast< ::std::string*
>(_default_line_delimiter_);
449 inline bool DriverConfig::has_serial_port()
const {
450 return (_has_bits_[0] & 0x00000008u) != 0;
452 inline void DriverConfig::set_has_serial_port() {
453 _has_bits_[0] |= 0x00000008u;
455 inline void DriverConfig::clear_has_serial_port() {
456 _has_bits_[0] &= ~0x00000008u;
458 inline void DriverConfig::clear_serial_port() {
459 if (serial_port_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
460 serial_port_->clear();
462 clear_has_serial_port();
464 inline const ::std::string& DriverConfig::serial_port()
const {
466 return *serial_port_;
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;
473 serial_port_->assign(value);
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;
481 serial_port_->assign(value);
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;
489 serial_port_->assign(reinterpret_cast<const char*>(value), size);
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;
500 inline ::std::string* DriverConfig::release_serial_port() {
501 clear_has_serial_port();
502 if (serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
505 ::std::string* temp = serial_port_;
506 serial_port_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
510 inline void DriverConfig::set_allocated_serial_port(::std::string* serial_port) {
511 if (serial_port_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
515 set_has_serial_port();
516 serial_port_ = serial_port;
518 clear_has_serial_port();
519 serial_port_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
525 inline bool DriverConfig::has_serial_baud()
const {
526 return (_has_bits_[0] & 0x00000010u) != 0;
528 inline void DriverConfig::set_has_serial_baud() {
529 _has_bits_[0] |= 0x00000010u;
531 inline void DriverConfig::clear_has_serial_baud() {
532 _has_bits_[0] &= ~0x00000010u;
534 inline void DriverConfig::clear_serial_baud() {
536 clear_has_serial_baud();
538 inline ::google::protobuf::uint32 DriverConfig::serial_baud()
const {
542 inline void DriverConfig::set_serial_baud(::google::protobuf::uint32 value) {
543 set_has_serial_baud();
544 serial_baud_ = value;
549 inline bool DriverConfig::has_tcp_server()
const {
550 return (_has_bits_[0] & 0x00000020u) != 0;
552 inline void DriverConfig::set_has_tcp_server() {
553 _has_bits_[0] |= 0x00000020u;
555 inline void DriverConfig::clear_has_tcp_server() {
556 _has_bits_[0] &= ~0x00000020u;
558 inline void DriverConfig::clear_tcp_server() {
559 if (tcp_server_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
560 tcp_server_->clear();
562 clear_has_tcp_server();
564 inline const ::std::string& DriverConfig::tcp_server()
const {
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;
573 tcp_server_->assign(value);
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;
581 tcp_server_->assign(value);
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;
589 tcp_server_->assign(reinterpret_cast<const char*>(value), size);
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;
600 inline ::std::string* DriverConfig::release_tcp_server() {
601 clear_has_tcp_server();
602 if (tcp_server_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
605 ::std::string* temp = tcp_server_;
606 tcp_server_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
610 inline void DriverConfig::set_allocated_tcp_server(::std::string* tcp_server) {
611 if (tcp_server_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
615 set_has_tcp_server();
616 tcp_server_ = tcp_server;
618 clear_has_tcp_server();
619 tcp_server_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
625 inline bool DriverConfig::has_tcp_port()
const {
626 return (_has_bits_[0] & 0x00000040u) != 0;
628 inline void DriverConfig::set_has_tcp_port() {
629 _has_bits_[0] |= 0x00000040u;
631 inline void DriverConfig::clear_has_tcp_port() {
632 _has_bits_[0] &= ~0x00000040u;
634 inline void DriverConfig::clear_tcp_port() {
636 clear_has_tcp_port();
638 inline ::google::protobuf::uint32 DriverConfig::tcp_port()
const {
642 inline void DriverConfig::set_tcp_port(::google::protobuf::uint32 value) {
649 inline bool DriverConfig::has_reconnect_interval()
const {
650 return (_has_bits_[0] & 0x00000080u) != 0;
652 inline void DriverConfig::set_has_reconnect_interval() {
653 _has_bits_[0] |= 0x00000080u;
655 inline void DriverConfig::clear_has_reconnect_interval() {
656 _has_bits_[0] &= ~0x00000080u;
658 inline void DriverConfig::clear_reconnect_interval() {
659 reconnect_interval_ = 10u;
660 clear_has_reconnect_interval();
662 inline ::google::protobuf::uint32 DriverConfig::reconnect_interval()
const {
664 return reconnect_interval_;
666 inline void DriverConfig::set_reconnect_interval(::google::protobuf::uint32 value) {
667 set_has_reconnect_interval();
668 reconnect_interval_ = value;
673 inline bool DriverConfig::has_raw_log()
const {
674 return (_has_bits_[0] & 0x00000100u) != 0;
676 inline void DriverConfig::set_has_raw_log() {
677 _has_bits_[0] |= 0x00000100u;
679 inline void DriverConfig::clear_has_raw_log() {
680 _has_bits_[0] &= ~0x00000100u;
682 inline void DriverConfig::clear_raw_log() {
683 if (raw_log_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
688 inline const ::std::string& DriverConfig::raw_log()
const {
692 inline void DriverConfig::set_raw_log(const ::std::string& value) {
694 if (raw_log_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
695 raw_log_ = new ::std::string;
697 raw_log_->assign(value);
700 inline void DriverConfig::set_raw_log(
const char* value) {
702 if (raw_log_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
703 raw_log_ = new ::std::string;
705 raw_log_->assign(value);
708 inline void DriverConfig::set_raw_log(
const char* value,
size_t size) {
710 if (raw_log_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
711 raw_log_ = new ::std::string;
713 raw_log_->assign(reinterpret_cast<const char*>(value), size);
716 inline ::std::string* DriverConfig::mutable_raw_log() {
718 if (raw_log_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
719 raw_log_ = new ::std::string;
724 inline ::std::string* DriverConfig::release_raw_log() {
726 if (raw_log_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
729 ::std::string* temp = raw_log_;
730 raw_log_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
734 inline void DriverConfig::set_allocated_raw_log(::std::string* raw_log) {
735 if (raw_log_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
743 raw_log_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
749 inline bool DriverConfig::has_driver_name()
const {
750 return (_has_bits_[0] & 0x00000200u) != 0;
752 inline void DriverConfig::set_has_driver_name() {
753 _has_bits_[0] |= 0x00000200u;
755 inline void DriverConfig::clear_has_driver_name() {
756 _has_bits_[0] &= ~0x00000200u;
758 inline void DriverConfig::clear_driver_name() {
759 if (driver_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
760 driver_name_->clear();
762 clear_has_driver_name();
764 inline const ::std::string& DriverConfig::driver_name()
const {
766 return *driver_name_;
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;
773 driver_name_->assign(value);
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;
781 driver_name_->assign(value);
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;
789 driver_name_->assign(reinterpret_cast<const char*>(value), size);
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;
800 inline ::std::string* DriverConfig::release_driver_name() {
801 clear_has_driver_name();
802 if (driver_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
805 ::std::string* temp = driver_name_;
806 driver_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
810 inline void DriverConfig::set_allocated_driver_name(::std::string* driver_name) {
811 if (driver_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
815 set_has_driver_name();
816 driver_name_ = driver_name;
818 clear_has_driver_name();
819 driver_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
835 template <>
struct is_proto_enum< ::goby::acomms::protobuf::DriverConfig_ConnectionType> : ::google::protobuf::internal::true_type {};
837 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::DriverConfig_ConnectionType>() {
838 return ::goby::acomms::protobuf::DriverConfig_ConnectionType_descriptor();
840 template <>
struct is_proto_enum< ::goby::acomms::protobuf::DriverType> : ::google::protobuf::internal::true_type {};
842 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::DriverType>() {
843 return ::goby::acomms::protobuf::DriverType_descriptor();
852 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto__INCLUDED The global namespace for the Goby project.