4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2fmodem_5fdriver_5fstatus_2eproto__INCLUDED 5 #define PROTOBUF_goby_2facomms_2fprotobuf_2fmodem_5fdriver_5fstatus_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 "dccl/option_extensions.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_2fmodem_5fdriver_5fstatus_2eproto();
42 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fmodem_5fdriver_5fstatus_2eproto();
43 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fmodem_5fdriver_5fstatus_2eproto();
45 class ModemDriverStatus;
47 enum ModemDriverStatus_Status {
48 ModemDriverStatus_Status_NOMINAL = 0,
49 ModemDriverStatus_Status_CONNECTION_TO_MODEM_FAILED = 1,
50 ModemDriverStatus_Status_MODEM_NOT_RESPONDING = 2,
51 ModemDriverStatus_Status_STARTUP_FAILED = 3,
52 ModemDriverStatus_Status_INVALID_CONFIGURATION = 4,
53 ModemDriverStatus_Status_MANUAL_RESET = 5
55 bool ModemDriverStatus_Status_IsValid(
int value);
56 const ModemDriverStatus_Status ModemDriverStatus_Status_Status_MIN = ModemDriverStatus_Status_NOMINAL;
57 const ModemDriverStatus_Status ModemDriverStatus_Status_Status_MAX = ModemDriverStatus_Status_MANUAL_RESET;
58 const int ModemDriverStatus_Status_Status_ARRAYSIZE = ModemDriverStatus_Status_Status_MAX + 1;
60 const ::google::protobuf::EnumDescriptor* ModemDriverStatus_Status_descriptor();
61 inline const ::std::string& ModemDriverStatus_Status_Name(ModemDriverStatus_Status value) {
62 return ::google::protobuf::internal::NameOfEnum(
63 ModemDriverStatus_Status_descriptor(), value);
65 inline bool ModemDriverStatus_Status_Parse(
66 const ::std::string& name, ModemDriverStatus_Status* value) {
67 return ::google::protobuf::internal::ParseNamedEnum<ModemDriverStatus_Status>(
68 ModemDriverStatus_Status_descriptor(), name, value);
84 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
85 return _unknown_fields_;
88 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
89 return &_unknown_fields_;
92 static const ::google::protobuf::Descriptor* descriptor();
100 void CopyFrom(const ::google::protobuf::Message& from);
101 void MergeFrom(const ::google::protobuf::Message& from);
105 bool IsInitialized()
const;
107 int ByteSize()
const;
108 bool MergePartialFromCodedStream(
109 ::google::protobuf::io::CodedInputStream* input);
110 void SerializeWithCachedSizes(
111 ::google::protobuf::io::CodedOutputStream* output)
const;
112 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
113 int GetCachedSize()
const {
return _cached_size_; }
117 void SetCachedSize(
int size)
const;
119 ::google::protobuf::Metadata GetMetadata()
const;
123 typedef ModemDriverStatus_Status Status;
124 static const Status NOMINAL = ModemDriverStatus_Status_NOMINAL;
125 static const Status CONNECTION_TO_MODEM_FAILED = ModemDriverStatus_Status_CONNECTION_TO_MODEM_FAILED;
126 static const Status MODEM_NOT_RESPONDING = ModemDriverStatus_Status_MODEM_NOT_RESPONDING;
127 static const Status STARTUP_FAILED = ModemDriverStatus_Status_STARTUP_FAILED;
128 static const Status INVALID_CONFIGURATION = ModemDriverStatus_Status_INVALID_CONFIGURATION;
129 static const Status MANUAL_RESET = ModemDriverStatus_Status_MANUAL_RESET;
130 static inline bool Status_IsValid(
int value) {
131 return ModemDriverStatus_Status_IsValid(value);
133 static const Status Status_MIN =
134 ModemDriverStatus_Status_Status_MIN;
135 static const Status Status_MAX =
136 ModemDriverStatus_Status_Status_MAX;
137 static const int Status_ARRAYSIZE =
138 ModemDriverStatus_Status_Status_ARRAYSIZE;
139 static inline const ::google::protobuf::EnumDescriptor*
140 Status_descriptor() {
141 return ModemDriverStatus_Status_descriptor();
143 static inline const ::std::string& Status_Name(Status value) {
144 return ModemDriverStatus_Status_Name(value);
146 static inline bool Status_Parse(const ::std::string& name,
148 return ModemDriverStatus_Status_Parse(name, value);
154 inline bool has_src()
const;
155 inline void clear_src();
156 static const int kSrcFieldNumber = 1;
157 inline ::google::protobuf::int32 src()
const;
158 inline void set_src(::google::protobuf::int32 value);
161 inline bool has_dest()
const;
162 inline void clear_dest();
163 static const int kDestFieldNumber = 2;
164 inline ::google::protobuf::int32 dest()
const;
165 inline void set_dest(::google::protobuf::int32 value);
168 inline bool has_time()
const;
169 inline void clear_time();
170 static const int kTimeFieldNumber = 3;
171 inline double time()
const;
172 inline void set_time(
double value);
175 inline bool has_status()
const;
176 inline void clear_status();
177 static const int kStatusFieldNumber = 4;
178 inline ::goby::acomms::protobuf::ModemDriverStatus_Status status()
const;
179 inline void set_status(::goby::acomms::protobuf::ModemDriverStatus_Status value);
182 inline bool has_n_resets()
const;
183 inline void clear_n_resets();
184 static const int kNResetsFieldNumber = 5;
185 inline ::google::protobuf::uint32 n_resets()
const;
186 inline void set_n_resets(::google::protobuf::uint32 value);
188 enum DCCLParameters { DCCL_ID = 513, DCCL_MAX_BYTES = 32 };
191 inline void set_has_src();
192 inline void clear_has_src();
193 inline void set_has_dest();
194 inline void clear_has_dest();
195 inline void set_has_time();
196 inline void clear_has_time();
197 inline void set_has_status();
198 inline void clear_has_status();
199 inline void set_has_n_resets();
200 inline void clear_has_n_resets();
202 ::google::protobuf::UnknownFieldSet _unknown_fields_;
204 ::google::protobuf::uint32 _has_bits_[1];
205 mutable int _cached_size_;
206 ::google::protobuf::int32 src_;
207 ::google::protobuf::int32 dest_;
210 ::google::protobuf::uint32 n_resets_;
211 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fmodem_5fdriver_5fstatus_2eproto();
212 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fmodem_5fdriver_5fstatus_2eproto();
213 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fmodem_5fdriver_5fstatus_2eproto();
215 void InitAsDefaultInstance();
226 inline bool ModemDriverStatus::has_src()
const {
227 return (_has_bits_[0] & 0x00000001u) != 0;
229 inline void ModemDriverStatus::set_has_src() {
230 _has_bits_[0] |= 0x00000001u;
232 inline void ModemDriverStatus::clear_has_src() {
233 _has_bits_[0] &= ~0x00000001u;
235 inline void ModemDriverStatus::clear_src() {
239 inline ::google::protobuf::int32 ModemDriverStatus::src()
const {
243 inline void ModemDriverStatus::set_src(::google::protobuf::int32 value) {
250 inline bool ModemDriverStatus::has_dest()
const {
251 return (_has_bits_[0] & 0x00000002u) != 0;
253 inline void ModemDriverStatus::set_has_dest() {
254 _has_bits_[0] |= 0x00000002u;
256 inline void ModemDriverStatus::clear_has_dest() {
257 _has_bits_[0] &= ~0x00000002u;
259 inline void ModemDriverStatus::clear_dest() {
263 inline ::google::protobuf::int32 ModemDriverStatus::dest()
const {
267 inline void ModemDriverStatus::set_dest(::google::protobuf::int32 value) {
274 inline bool ModemDriverStatus::has_time()
const {
275 return (_has_bits_[0] & 0x00000004u) != 0;
277 inline void ModemDriverStatus::set_has_time() {
278 _has_bits_[0] |= 0x00000004u;
280 inline void ModemDriverStatus::clear_has_time() {
281 _has_bits_[0] &= ~0x00000004u;
283 inline void ModemDriverStatus::clear_time() {
287 inline double ModemDriverStatus::time()
const {
291 inline void ModemDriverStatus::set_time(
double value) {
298 inline bool ModemDriverStatus::has_status()
const {
299 return (_has_bits_[0] & 0x00000008u) != 0;
301 inline void ModemDriverStatus::set_has_status() {
302 _has_bits_[0] |= 0x00000008u;
304 inline void ModemDriverStatus::clear_has_status() {
305 _has_bits_[0] &= ~0x00000008u;
307 inline void ModemDriverStatus::clear_status() {
311 inline ::goby::acomms::protobuf::ModemDriverStatus_Status ModemDriverStatus::status()
const {
313 return static_cast< ::goby::acomms::protobuf::ModemDriverStatus_Status
>(status_);
315 inline void ModemDriverStatus::set_status(::goby::acomms::protobuf::ModemDriverStatus_Status value) {
316 assert(::goby::acomms::protobuf::ModemDriverStatus_Status_IsValid(value));
323 inline bool ModemDriverStatus::has_n_resets()
const {
324 return (_has_bits_[0] & 0x00000010u) != 0;
326 inline void ModemDriverStatus::set_has_n_resets() {
327 _has_bits_[0] |= 0x00000010u;
329 inline void ModemDriverStatus::clear_has_n_resets() {
330 _has_bits_[0] &= ~0x00000010u;
332 inline void ModemDriverStatus::clear_n_resets() {
334 clear_has_n_resets();
336 inline ::google::protobuf::uint32 ModemDriverStatus::n_resets()
const {
340 inline void ModemDriverStatus::set_n_resets(::google::protobuf::uint32 value) {
357 template <>
struct is_proto_enum< ::goby::acomms::protobuf::ModemDriverStatus_Status> : ::google::protobuf::internal::true_type {};
359 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::ModemDriverStatus_Status>() {
360 return ::goby::acomms::protobuf::ModemDriverStatus_Status_descriptor();
369 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2fmodem_5fdriver_5fstatus_2eproto__INCLUDED The global namespace for the Goby project.