4 #ifndef PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fopencpn_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fopencpn_5fconfig_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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/io/coded_stream.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
37 #include "dccl/option_extensions.pb.h"
39 #include <boost/units/quantity.hpp>
40 #include <boost/units/absolute.hpp>
41 #include <boost/units/dimensionless_type.hpp>
42 #include <boost/units/make_scaled_unit.hpp>
44 #include <boost/units/systems/si.hpp>
46 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fzeromq_2fprotobuf_2fopencpn_5fconfig_2eproto
51 static const ::google::protobuf::internal::ParseTableField
entries[];
52 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
53 static const ::google::protobuf::internal::ParseTable
schema[1];
64 class OpenCPNInterfaceConfig;
65 class OpenCPNInterfaceConfigDefaultTypeInternal;
97 *
this = ::std::move(from);
101 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
102 if (
this != &from) InternalSwap(&from);
110 return _internal_metadata_.unknown_fields();
113 return _internal_metadata_.mutable_unknown_fields();
116 static const ::google::protobuf::Descriptor*
descriptor();
141 return CreateMaybeMessage<OpenCPNInterfaceConfig>(NULL);
145 return CreateMaybeMessage<OpenCPNInterfaceConfig>(arena);
147 void CopyFrom(const ::google::protobuf::Message& from)
final;
148 void MergeFrom(const ::google::protobuf::Message& from)
final;
156 ::
google::protobuf::io::CodedInputStream* input) final;
158 ::
google::protobuf::io::CodedOutputStream* output) const final;
160 bool deterministic, ::
google::protobuf::uint8* target) const final;
166 void SetCachedSize(
int size)
const final;
169 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
172 inline void* MaybeArenaPtr()
const {
188 const ::
goby::middleware::protobuf::AppConfig& _internal_app() const;
190 const ::
goby::middleware::protobuf::AppConfig&
app() const;
200 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
202 const ::
goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess() const;
240 const ::
goby::middleware::protobuf::TCPServerConfig& _internal_ais_server() const;
242 const ::
goby::middleware::protobuf::TCPServerConfig&
ais_server() const;
252 const ::
goby::middleware::protobuf::PTYConfig& _internal_ais_serial() const;
254 const ::
goby::middleware::protobuf::PTYConfig&
ais_serial() const;
265 template<typename Quantity >
269 template<
typename Quantity >
274 {
return position_report_interval_with_units<boost::units::quantity< position_report_interval_unit,double > >(); };
280 template<
typename Quantity >
284 template<
typename Quantity >
289 {
return voyage_report_interval_with_units<boost::units::quantity< voyage_report_interval_unit,double > >(); };
294 void clear_has_app();
295 void set_has_interprocess();
296 void clear_has_interprocess();
297 void set_has_ais_server();
298 void set_has_ais_serial();
299 void set_has_mmsi_start();
300 void clear_has_mmsi_start();
301 void set_has_filter_length();
302 void clear_has_filter_length();
303 void set_has_position_report_interval();
304 void clear_has_position_report_interval();
305 void set_has_voyage_report_interval();
306 void clear_has_voyage_report_interval();
308 inline bool has_io()
const;
309 inline void clear_has_io();
311 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
312 ::google::protobuf::internal::HasBits<1> _has_bits_;
313 mutable ::google::protobuf::internal::CachedSize _cached_size_;
318 double position_report_interval_;
319 double voyage_report_interval_;
327 friend struct ::protobuf_goby_2fzeromq_2fprotobuf_2fopencpn_5fconfig_2eproto::TableStruct;
335 #pragma GCC diagnostic push
336 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
342 return (_has_bits_[0] & 0x00000001u) != 0;
344 inline void OpenCPNInterfaceConfig::set_has_app() {
345 _has_bits_[0] |= 0x00000001u;
347 inline void OpenCPNInterfaceConfig::clear_has_app() {
348 _has_bits_[0] &= ~0x00000001u;
350 inline const ::goby::middleware::protobuf::AppConfig& OpenCPNInterfaceConfig::_internal_app()
const {
354 const ::goby::middleware::protobuf::AppConfig* p = app_;
369 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
377 if (message_arena == NULL) {
382 if (message_arena != submessage_arena) {
383 app = ::google::protobuf::internal::GetOwnedMessage(
384 message_arena,
app, submessage_arena);
396 return (_has_bits_[0] & 0x00000002u) != 0;
398 inline void OpenCPNInterfaceConfig::set_has_interprocess() {
399 _has_bits_[0] |= 0x00000002u;
401 inline void OpenCPNInterfaceConfig::clear_has_interprocess() {
402 _has_bits_[0] &= ~0x00000002u;
404 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& OpenCPNInterfaceConfig::_internal_interprocess()
const {
405 return *interprocess_;
408 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
415 clear_has_interprocess();
417 interprocess_ = NULL;
421 set_has_interprocess();
422 if (interprocess_ == NULL) {
423 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
427 return interprocess_;
431 if (message_arena == NULL) {
436 if (message_arena != submessage_arena) {
437 interprocess = ::google::protobuf::internal::GetOwnedMessage(
440 set_has_interprocess();
442 clear_has_interprocess();
452 inline void OpenCPNInterfaceConfig::set_has_ais_server() {
455 inline const ::goby::middleware::protobuf::TCPServerConfig& OpenCPNInterfaceConfig::_internal_ais_server()
const {
456 return *io_.ais_server_;
463 io_.ais_server_ = NULL;
478 set_has_ais_server();
479 io_.ais_server_ = CreateMaybeMessage< ::goby::middleware::protobuf::TCPServerConfig >(
480 GetArenaNoVirtual());
483 return io_.ais_server_;
490 inline void OpenCPNInterfaceConfig::set_has_ais_serial() {
493 inline const ::goby::middleware::protobuf::PTYConfig& OpenCPNInterfaceConfig::_internal_ais_serial()
const {
494 return *io_.ais_serial_;
501 io_.ais_serial_ = NULL;
516 set_has_ais_serial();
517 io_.ais_serial_ = CreateMaybeMessage< ::goby::middleware::protobuf::PTYConfig >(
518 GetArenaNoVirtual());
521 return io_.ais_serial_;
526 return (_has_bits_[0] & 0x00000004u) != 0;
528 inline void OpenCPNInterfaceConfig::set_has_mmsi_start() {
529 _has_bits_[0] |= 0x00000004u;
531 inline void OpenCPNInterfaceConfig::clear_has_mmsi_start() {
532 _has_bits_[0] &= ~0x00000004u;
535 mmsi_start_ = 988700000;
536 clear_has_mmsi_start();
543 set_has_mmsi_start();
550 return (_has_bits_[0] & 0x00000008u) != 0;
552 inline void OpenCPNInterfaceConfig::set_has_filter_length() {
553 _has_bits_[0] |= 0x00000008u;
555 inline void OpenCPNInterfaceConfig::clear_has_filter_length() {
556 _has_bits_[0] &= ~0x00000008u;
560 clear_has_filter_length();
564 return filter_length_;
567 set_has_filter_length();
568 filter_length_ = value;
574 return (_has_bits_[0] & 0x00000010u) != 0;
576 inline void OpenCPNInterfaceConfig::set_has_position_report_interval() {
577 _has_bits_[0] |= 0x00000010u;
579 inline void OpenCPNInterfaceConfig::clear_has_position_report_interval() {
580 _has_bits_[0] &= ~0x00000010u;
583 position_report_interval_ = 1;
584 clear_has_position_report_interval();
588 return position_report_interval_;
591 set_has_position_report_interval();
592 position_report_interval_ = value;
598 return (_has_bits_[0] & 0x00000020u) != 0;
600 inline void OpenCPNInterfaceConfig::set_has_voyage_report_interval() {
601 _has_bits_[0] |= 0x00000020u;
603 inline void OpenCPNInterfaceConfig::clear_has_voyage_report_interval() {
604 _has_bits_[0] &= ~0x00000020u;
607 voyage_report_interval_ = 30;
608 clear_has_voyage_report_interval();
612 return voyage_report_interval_;
615 set_has_voyage_report_interval();
616 voyage_report_interval_ = value;
620 inline bool OpenCPNInterfaceConfig::has_io()
const {
623 inline void OpenCPNInterfaceConfig::clear_has_io() {
630 #pragma GCC diagnostic pop
642 #endif // PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fopencpn_5fconfig_2eproto