4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto__INCLUDED 5 #define PROTOBUF_goby_2facomms_2fprotobuf_2famac_5fconfig_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 "goby/acomms/protobuf/modem_message.pb.h" 30 #include <boost/units/quantity.hpp> 31 #include <boost/units/absolute.hpp> 32 #include <boost/units/dimensionless_type.hpp> 33 #include <boost/units/make_scaled_unit.hpp> 41 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto();
42 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto();
43 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto();
47 enum MACConfig_MACRefTime {
48 MACConfig_MACRefTime_REFERENCE_START_OF_DAY = 1,
49 MACConfig_MACRefTime_REFERENCE_FIXED = 2
51 bool MACConfig_MACRefTime_IsValid(
int value);
52 const MACConfig_MACRefTime MACConfig_MACRefTime_MACRefTime_MIN = MACConfig_MACRefTime_REFERENCE_START_OF_DAY;
53 const MACConfig_MACRefTime MACConfig_MACRefTime_MACRefTime_MAX = MACConfig_MACRefTime_REFERENCE_FIXED;
54 const int MACConfig_MACRefTime_MACRefTime_ARRAYSIZE = MACConfig_MACRefTime_MACRefTime_MAX + 1;
56 const ::google::protobuf::EnumDescriptor* MACConfig_MACRefTime_descriptor();
57 inline const ::std::string& MACConfig_MACRefTime_Name(MACConfig_MACRefTime value) {
58 return ::google::protobuf::internal::NameOfEnum(
59 MACConfig_MACRefTime_descriptor(), value);
61 inline bool MACConfig_MACRefTime_Parse(
62 const ::std::string& name, MACConfig_MACRefTime* value) {
63 return ::google::protobuf::internal::ParseNamedEnum<MACConfig_MACRefTime>(
64 MACConfig_MACRefTime_descriptor(), name, value);
68 MAC_FIXED_DECENTRALIZED = 2,
71 bool MACType_IsValid(
int value);
72 const MACType MACType_MIN = MAC_NONE;
73 const MACType MACType_MAX = MAC_POLLED;
74 const int MACType_ARRAYSIZE = MACType_MAX + 1;
76 const ::google::protobuf::EnumDescriptor* MACType_descriptor();
77 inline const ::std::string& MACType_Name(MACType value) {
78 return ::google::protobuf::internal::NameOfEnum(
79 MACType_descriptor(), value);
81 inline bool MACType_Parse(
82 const ::std::string& name, MACType* value) {
83 return ::google::protobuf::internal::ParseNamedEnum<MACType>(
84 MACType_descriptor(), name, value);
88 class MACConfig :
public ::google::protobuf::Message {
100 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
101 return _unknown_fields_;
104 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
105 return &_unknown_fields_;
108 static const ::google::protobuf::Descriptor* descriptor();
109 static const MACConfig& default_instance();
116 void CopyFrom(const ::google::protobuf::Message& from);
117 void MergeFrom(const ::google::protobuf::Message& from);
121 bool IsInitialized()
const;
123 int ByteSize()
const;
124 bool MergePartialFromCodedStream(
125 ::google::protobuf::io::CodedInputStream* input);
126 void SerializeWithCachedSizes(
127 ::google::protobuf::io::CodedOutputStream* output)
const;
128 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
129 int GetCachedSize()
const {
return _cached_size_; }
133 void SetCachedSize(
int size)
const;
135 ::google::protobuf::Metadata GetMetadata()
const;
139 typedef MACConfig_MACRefTime MACRefTime;
140 static const MACRefTime REFERENCE_START_OF_DAY = MACConfig_MACRefTime_REFERENCE_START_OF_DAY;
141 static const MACRefTime REFERENCE_FIXED = MACConfig_MACRefTime_REFERENCE_FIXED;
142 static inline bool MACRefTime_IsValid(
int value) {
143 return MACConfig_MACRefTime_IsValid(value);
145 static const MACRefTime MACRefTime_MIN =
146 MACConfig_MACRefTime_MACRefTime_MIN;
147 static const MACRefTime MACRefTime_MAX =
148 MACConfig_MACRefTime_MACRefTime_MAX;
149 static const int MACRefTime_ARRAYSIZE =
150 MACConfig_MACRefTime_MACRefTime_ARRAYSIZE;
151 static inline const ::google::protobuf::EnumDescriptor*
152 MACRefTime_descriptor() {
153 return MACConfig_MACRefTime_descriptor();
155 static inline const ::std::string& MACRefTime_Name(MACRefTime value) {
156 return MACConfig_MACRefTime_Name(value);
158 static inline bool MACRefTime_Parse(const ::std::string& name,
160 return MACConfig_MACRefTime_Parse(name, value);
166 inline bool has_modem_id()
const;
167 inline void clear_modem_id();
168 static const int kModemIdFieldNumber = 1;
169 inline ::google::protobuf::int32 modem_id()
const;
170 inline void set_modem_id(::google::protobuf::int32 value);
173 inline bool has_type()
const;
174 inline void clear_type();
175 static const int kTypeFieldNumber = 2;
176 inline ::goby::acomms::protobuf::MACType type()
const;
177 inline void set_type(::goby::acomms::protobuf::MACType value);
180 inline int slot_size()
const;
181 inline void clear_slot();
182 static const int kSlotFieldNumber = 3;
183 inline const ::goby::acomms::protobuf::ModemTransmission& slot(
int index)
const;
184 inline ::goby::acomms::protobuf::ModemTransmission* mutable_slot(
int index);
185 inline ::goby::acomms::protobuf::ModemTransmission* add_slot();
186 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
188 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
192 inline bool has_start_cycle_in_middle()
const;
193 inline void clear_start_cycle_in_middle();
194 static const int kStartCycleInMiddleFieldNumber = 4;
195 inline bool start_cycle_in_middle()
const;
196 inline void set_start_cycle_in_middle(
bool value);
199 inline bool has_ref_time_type()
const;
200 inline void clear_ref_time_type();
201 static const int kRefTimeTypeFieldNumber = 5;
202 inline ::goby::acomms::protobuf::MACConfig_MACRefTime ref_time_type()
const;
203 inline void set_ref_time_type(::goby::acomms::protobuf::MACConfig_MACRefTime value);
206 inline bool has_fixed_ref_time()
const;
207 inline void clear_fixed_ref_time();
208 static const int kFixedRefTimeFieldNumber = 6;
209 inline ::google::protobuf::int32 fixed_ref_time()
const;
210 inline void set_fixed_ref_time(::google::protobuf::int32 value);
214 inline void set_has_modem_id();
215 inline void clear_has_modem_id();
216 inline void set_has_type();
217 inline void clear_has_type();
218 inline void set_has_start_cycle_in_middle();
219 inline void clear_has_start_cycle_in_middle();
220 inline void set_has_ref_time_type();
221 inline void clear_has_ref_time_type();
222 inline void set_has_fixed_ref_time();
223 inline void clear_has_fixed_ref_time();
225 ::google::protobuf::UnknownFieldSet _unknown_fields_;
227 ::google::protobuf::uint32 _has_bits_[1];
228 mutable int _cached_size_;
229 ::google::protobuf::int32 modem_id_;
231 ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission > slot_;
232 bool start_cycle_in_middle_;
234 ::google::protobuf::int32 fixed_ref_time_;
235 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto();
236 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto();
237 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto();
239 void InitAsDefaultInstance();
250 inline bool MACConfig::has_modem_id()
const {
251 return (_has_bits_[0] & 0x00000001u) != 0;
253 inline void MACConfig::set_has_modem_id() {
254 _has_bits_[0] |= 0x00000001u;
256 inline void MACConfig::clear_has_modem_id() {
257 _has_bits_[0] &= ~0x00000001u;
259 inline void MACConfig::clear_modem_id() {
261 clear_has_modem_id();
263 inline ::google::protobuf::int32 MACConfig::modem_id()
const {
267 inline void MACConfig::set_modem_id(::google::protobuf::int32 value) {
274 inline bool MACConfig::has_type()
const {
275 return (_has_bits_[0] & 0x00000002u) != 0;
277 inline void MACConfig::set_has_type() {
278 _has_bits_[0] |= 0x00000002u;
280 inline void MACConfig::clear_has_type() {
281 _has_bits_[0] &= ~0x00000002u;
283 inline void MACConfig::clear_type() {
287 inline ::goby::acomms::protobuf::MACType MACConfig::type()
const {
289 return static_cast< ::goby::acomms::protobuf::MACType
>(type_);
291 inline void MACConfig::set_type(::goby::acomms::protobuf::MACType value) {
292 assert(::goby::acomms::protobuf::MACType_IsValid(value));
299 inline int MACConfig::slot_size()
const {
302 inline void MACConfig::clear_slot() {
305 inline const ::goby::acomms::protobuf::ModemTransmission& MACConfig::slot(
int index)
const {
307 return slot_.Get(index);
309 inline ::goby::acomms::protobuf::ModemTransmission* MACConfig::mutable_slot(
int index) {
311 return slot_.Mutable(index);
313 inline ::goby::acomms::protobuf::ModemTransmission* MACConfig::add_slot() {
317 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
318 MACConfig::slot()
const {
322 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
323 MACConfig::mutable_slot() {
329 inline bool MACConfig::has_start_cycle_in_middle()
const {
330 return (_has_bits_[0] & 0x00000008u) != 0;
332 inline void MACConfig::set_has_start_cycle_in_middle() {
333 _has_bits_[0] |= 0x00000008u;
335 inline void MACConfig::clear_has_start_cycle_in_middle() {
336 _has_bits_[0] &= ~0x00000008u;
338 inline void MACConfig::clear_start_cycle_in_middle() {
339 start_cycle_in_middle_ =
true;
340 clear_has_start_cycle_in_middle();
342 inline bool MACConfig::start_cycle_in_middle()
const {
344 return start_cycle_in_middle_;
346 inline void MACConfig::set_start_cycle_in_middle(
bool value) {
347 set_has_start_cycle_in_middle();
348 start_cycle_in_middle_ = value;
353 inline bool MACConfig::has_ref_time_type()
const {
354 return (_has_bits_[0] & 0x00000010u) != 0;
356 inline void MACConfig::set_has_ref_time_type() {
357 _has_bits_[0] |= 0x00000010u;
359 inline void MACConfig::clear_has_ref_time_type() {
360 _has_bits_[0] &= ~0x00000010u;
362 inline void MACConfig::clear_ref_time_type() {
364 clear_has_ref_time_type();
366 inline ::goby::acomms::protobuf::MACConfig_MACRefTime MACConfig::ref_time_type()
const {
368 return static_cast< ::goby::acomms::protobuf::MACConfig_MACRefTime
>(ref_time_type_);
370 inline void MACConfig::set_ref_time_type(::goby::acomms::protobuf::MACConfig_MACRefTime value) {
371 assert(::goby::acomms::protobuf::MACConfig_MACRefTime_IsValid(value));
372 set_has_ref_time_type();
373 ref_time_type_ = value;
378 inline bool MACConfig::has_fixed_ref_time()
const {
379 return (_has_bits_[0] & 0x00000020u) != 0;
381 inline void MACConfig::set_has_fixed_ref_time() {
382 _has_bits_[0] |= 0x00000020u;
384 inline void MACConfig::clear_has_fixed_ref_time() {
385 _has_bits_[0] &= ~0x00000020u;
387 inline void MACConfig::clear_fixed_ref_time() {
389 clear_has_fixed_ref_time();
391 inline ::google::protobuf::int32 MACConfig::fixed_ref_time()
const {
393 return fixed_ref_time_;
395 inline void MACConfig::set_fixed_ref_time(::google::protobuf::int32 value) {
396 set_has_fixed_ref_time();
397 fixed_ref_time_ = value;
412 template <>
struct is_proto_enum< ::goby::acomms::protobuf::MACConfig_MACRefTime> : ::google::protobuf::internal::true_type {};
414 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MACConfig_MACRefTime>() {
415 return ::goby::acomms::protobuf::MACConfig_MACRefTime_descriptor();
417 template <>
struct is_proto_enum< ::goby::acomms::protobuf::MACType> : ::google::protobuf::internal::true_type {};
419 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::MACType>() {
420 return ::goby::acomms::protobuf::MACType_descriptor();
429 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2famac_5fconfig_2eproto__INCLUDED
The global namespace for the Goby project.