Goby v2
test_config.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/test/acomms/mmdriver2/test_config.proto
3 
4 #ifndef PROTOBUF_goby_2ftest_2facomms_2fmmdriver2_2ftest_5fconfig_2eproto__INCLUDED
5 #define PROTOBUF_goby_2ftest_2facomms_2fmmdriver2_2ftest_5fconfig_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/unknown_field_set.h>
27 #include "goby/common/protobuf/option_extensions.pb.h"
28 #include "goby/acomms/protobuf/driver_base.pb.h"
29 #include "goby/acomms/protobuf/modem_message.pb.h"
30 #include "goby/common/protobuf/app_base_config.pb.h"
31 #include <boost/units/quantity.hpp>
32 #include <boost/units/absolute.hpp>
33 #include <boost/units/dimensionless_type.hpp>
34 #include <boost/units/make_scaled_unit.hpp>
35 // @@protoc_insertion_point(includes)
36 
37 namespace goby {
38 namespace test {
39 namespace protobuf {
40 
41 // Internal implementation detail -- do not call these.
42 void protobuf_AddDesc_goby_2ftest_2facomms_2fmmdriver2_2ftest_5fconfig_2eproto();
43 void protobuf_AssignDesc_goby_2ftest_2facomms_2fmmdriver2_2ftest_5fconfig_2eproto();
44 void protobuf_ShutdownFile_goby_2ftest_2facomms_2fmmdriver2_2ftest_5fconfig_2eproto();
45 
46 class MMDriverTest2Config;
47 
48 // ===================================================================
49 
50 class MMDriverTest2Config : public ::google::protobuf::Message {
51  public:
53  virtual ~MMDriverTest2Config();
54 
56 
57  inline MMDriverTest2Config& operator=(const MMDriverTest2Config& from) {
58  CopyFrom(from);
59  return *this;
60  }
61 
62  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
63  return _unknown_fields_;
64  }
65 
66  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
67  return &_unknown_fields_;
68  }
69 
70  static const ::google::protobuf::Descriptor* descriptor();
71  static const MMDriverTest2Config& default_instance();
72 
73  void Swap(MMDriverTest2Config* other);
74 
75  // implements Message ----------------------------------------------
76 
77  MMDriverTest2Config* New() const;
78  void CopyFrom(const ::google::protobuf::Message& from);
79  void MergeFrom(const ::google::protobuf::Message& from);
80  void CopyFrom(const MMDriverTest2Config& from);
81  void MergeFrom(const MMDriverTest2Config& from);
82  void Clear();
83  bool IsInitialized() const;
84 
85  int ByteSize() const;
86  bool MergePartialFromCodedStream(
87  ::google::protobuf::io::CodedInputStream* input);
88  void SerializeWithCachedSizes(
89  ::google::protobuf::io::CodedOutputStream* output) const;
90  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
91  int GetCachedSize() const { return _cached_size_; }
92  private:
93  void SharedCtor();
94  void SharedDtor();
95  void SetCachedSize(int size) const;
96  public:
97  ::google::protobuf::Metadata GetMetadata() const;
98 
99  // nested types ----------------------------------------------------
100 
101  // accessors -------------------------------------------------------
102 
103  // optional .AppBaseConfig app = 1;
104  inline bool has_app() const;
105  inline void clear_app();
106  static const int kAppFieldNumber = 1;
107  inline const ::AppBaseConfig& app() const;
108  inline ::AppBaseConfig* mutable_app();
109  inline ::AppBaseConfig* release_app();
110  inline void set_allocated_app(::AppBaseConfig* app);
111 
112  // required .goby.acomms.protobuf.DriverConfig mm1_cfg = 10;
113  inline bool has_mm1_cfg() const;
114  inline void clear_mm1_cfg();
115  static const int kMm1CfgFieldNumber = 10;
116  inline const ::goby::acomms::protobuf::DriverConfig& mm1_cfg() const;
117  inline ::goby::acomms::protobuf::DriverConfig* mutable_mm1_cfg();
118  inline ::goby::acomms::protobuf::DriverConfig* release_mm1_cfg();
119  inline void set_allocated_mm1_cfg(::goby::acomms::protobuf::DriverConfig* mm1_cfg);
120 
121  // required .goby.acomms.protobuf.DriverConfig mm2_cfg = 11;
122  inline bool has_mm2_cfg() const;
123  inline void clear_mm2_cfg();
124  static const int kMm2CfgFieldNumber = 11;
125  inline const ::goby::acomms::protobuf::DriverConfig& mm2_cfg() const;
126  inline ::goby::acomms::protobuf::DriverConfig* mutable_mm2_cfg();
127  inline ::goby::acomms::protobuf::DriverConfig* release_mm2_cfg();
128  inline void set_allocated_mm2_cfg(::goby::acomms::protobuf::DriverConfig* mm2_cfg);
129 
130  // repeated .goby.acomms.protobuf.ModemTransmission transmission = 20;
131  inline int transmission_size() const;
132  inline void clear_transmission();
133  static const int kTransmissionFieldNumber = 20;
134  inline const ::goby::acomms::protobuf::ModemTransmission& transmission(int index) const;
135  inline ::goby::acomms::protobuf::ModemTransmission* mutable_transmission(int index);
136  inline ::goby::acomms::protobuf::ModemTransmission* add_transmission();
137  inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
138  transmission() const;
139  inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
140  mutable_transmission();
141 
142  // optional int32 repeat = 21 [default = 1];
143  inline bool has_repeat() const;
144  inline void clear_repeat();
145  static const int kRepeatFieldNumber = 21;
146  inline ::google::protobuf::int32 repeat() const;
147  inline void set_repeat(::google::protobuf::int32 value);
148 
149  // @@protoc_insertion_point(class_scope:goby.test.protobuf.MMDriverTest2Config)
150  private:
151  inline void set_has_app();
152  inline void clear_has_app();
153  inline void set_has_mm1_cfg();
154  inline void clear_has_mm1_cfg();
155  inline void set_has_mm2_cfg();
156  inline void clear_has_mm2_cfg();
157  inline void set_has_repeat();
158  inline void clear_has_repeat();
159 
160  ::google::protobuf::UnknownFieldSet _unknown_fields_;
161 
162  ::google::protobuf::uint32 _has_bits_[1];
163  mutable int _cached_size_;
164  ::AppBaseConfig* app_;
167  ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission > transmission_;
168  ::google::protobuf::int32 repeat_;
169  friend void protobuf_AddDesc_goby_2ftest_2facomms_2fmmdriver2_2ftest_5fconfig_2eproto();
170  friend void protobuf_AssignDesc_goby_2ftest_2facomms_2fmmdriver2_2ftest_5fconfig_2eproto();
171  friend void protobuf_ShutdownFile_goby_2ftest_2facomms_2fmmdriver2_2ftest_5fconfig_2eproto();
172 
173  void InitAsDefaultInstance();
174  static MMDriverTest2Config* default_instance_;
175 };
176 // ===================================================================
177 
178 
179 // ===================================================================
180 
181 // MMDriverTest2Config
182 
183 // optional .AppBaseConfig app = 1;
184 inline bool MMDriverTest2Config::has_app() const {
185  return (_has_bits_[0] & 0x00000001u) != 0;
186 }
187 inline void MMDriverTest2Config::set_has_app() {
188  _has_bits_[0] |= 0x00000001u;
189 }
190 inline void MMDriverTest2Config::clear_has_app() {
191  _has_bits_[0] &= ~0x00000001u;
192 }
193 inline void MMDriverTest2Config::clear_app() {
194  if (app_ != NULL) app_->::AppBaseConfig::Clear();
195  clear_has_app();
196 }
197 inline const ::AppBaseConfig& MMDriverTest2Config::app() const {
198  // @@protoc_insertion_point(field_get:goby.test.protobuf.MMDriverTest2Config.app)
199  return app_ != NULL ? *app_ : *default_instance_->app_;
200 }
201 inline ::AppBaseConfig* MMDriverTest2Config::mutable_app() {
202  set_has_app();
203  if (app_ == NULL) app_ = new ::AppBaseConfig;
204  // @@protoc_insertion_point(field_mutable:goby.test.protobuf.MMDriverTest2Config.app)
205  return app_;
206 }
207 inline ::AppBaseConfig* MMDriverTest2Config::release_app() {
208  clear_has_app();
209  ::AppBaseConfig* temp = app_;
210  app_ = NULL;
211  return temp;
212 }
213 inline void MMDriverTest2Config::set_allocated_app(::AppBaseConfig* app) {
214  delete app_;
215  app_ = app;
216  if (app) {
217  set_has_app();
218  } else {
219  clear_has_app();
220  }
221  // @@protoc_insertion_point(field_set_allocated:goby.test.protobuf.MMDriverTest2Config.app)
222 }
223 
224 // required .goby.acomms.protobuf.DriverConfig mm1_cfg = 10;
225 inline bool MMDriverTest2Config::has_mm1_cfg() const {
226  return (_has_bits_[0] & 0x00000002u) != 0;
227 }
228 inline void MMDriverTest2Config::set_has_mm1_cfg() {
229  _has_bits_[0] |= 0x00000002u;
230 }
231 inline void MMDriverTest2Config::clear_has_mm1_cfg() {
232  _has_bits_[0] &= ~0x00000002u;
233 }
234 inline void MMDriverTest2Config::clear_mm1_cfg() {
235  if (mm1_cfg_ != NULL) mm1_cfg_->::goby::acomms::protobuf::DriverConfig::Clear();
236  clear_has_mm1_cfg();
237 }
238 inline const ::goby::acomms::protobuf::DriverConfig& MMDriverTest2Config::mm1_cfg() const {
239  // @@protoc_insertion_point(field_get:goby.test.protobuf.MMDriverTest2Config.mm1_cfg)
240  return mm1_cfg_ != NULL ? *mm1_cfg_ : *default_instance_->mm1_cfg_;
241 }
242 inline ::goby::acomms::protobuf::DriverConfig* MMDriverTest2Config::mutable_mm1_cfg() {
243  set_has_mm1_cfg();
244  if (mm1_cfg_ == NULL) mm1_cfg_ = new ::goby::acomms::protobuf::DriverConfig;
245  // @@protoc_insertion_point(field_mutable:goby.test.protobuf.MMDriverTest2Config.mm1_cfg)
246  return mm1_cfg_;
247 }
248 inline ::goby::acomms::protobuf::DriverConfig* MMDriverTest2Config::release_mm1_cfg() {
249  clear_has_mm1_cfg();
251  mm1_cfg_ = NULL;
252  return temp;
253 }
254 inline void MMDriverTest2Config::set_allocated_mm1_cfg(::goby::acomms::protobuf::DriverConfig* mm1_cfg) {
255  delete mm1_cfg_;
256  mm1_cfg_ = mm1_cfg;
257  if (mm1_cfg) {
258  set_has_mm1_cfg();
259  } else {
260  clear_has_mm1_cfg();
261  }
262  // @@protoc_insertion_point(field_set_allocated:goby.test.protobuf.MMDriverTest2Config.mm1_cfg)
263 }
264 
265 // required .goby.acomms.protobuf.DriverConfig mm2_cfg = 11;
266 inline bool MMDriverTest2Config::has_mm2_cfg() const {
267  return (_has_bits_[0] & 0x00000004u) != 0;
268 }
269 inline void MMDriverTest2Config::set_has_mm2_cfg() {
270  _has_bits_[0] |= 0x00000004u;
271 }
272 inline void MMDriverTest2Config::clear_has_mm2_cfg() {
273  _has_bits_[0] &= ~0x00000004u;
274 }
275 inline void MMDriverTest2Config::clear_mm2_cfg() {
276  if (mm2_cfg_ != NULL) mm2_cfg_->::goby::acomms::protobuf::DriverConfig::Clear();
277  clear_has_mm2_cfg();
278 }
279 inline const ::goby::acomms::protobuf::DriverConfig& MMDriverTest2Config::mm2_cfg() const {
280  // @@protoc_insertion_point(field_get:goby.test.protobuf.MMDriverTest2Config.mm2_cfg)
281  return mm2_cfg_ != NULL ? *mm2_cfg_ : *default_instance_->mm2_cfg_;
282 }
283 inline ::goby::acomms::protobuf::DriverConfig* MMDriverTest2Config::mutable_mm2_cfg() {
284  set_has_mm2_cfg();
285  if (mm2_cfg_ == NULL) mm2_cfg_ = new ::goby::acomms::protobuf::DriverConfig;
286  // @@protoc_insertion_point(field_mutable:goby.test.protobuf.MMDriverTest2Config.mm2_cfg)
287  return mm2_cfg_;
288 }
289 inline ::goby::acomms::protobuf::DriverConfig* MMDriverTest2Config::release_mm2_cfg() {
290  clear_has_mm2_cfg();
292  mm2_cfg_ = NULL;
293  return temp;
294 }
295 inline void MMDriverTest2Config::set_allocated_mm2_cfg(::goby::acomms::protobuf::DriverConfig* mm2_cfg) {
296  delete mm2_cfg_;
297  mm2_cfg_ = mm2_cfg;
298  if (mm2_cfg) {
299  set_has_mm2_cfg();
300  } else {
301  clear_has_mm2_cfg();
302  }
303  // @@protoc_insertion_point(field_set_allocated:goby.test.protobuf.MMDriverTest2Config.mm2_cfg)
304 }
305 
306 // repeated .goby.acomms.protobuf.ModemTransmission transmission = 20;
307 inline int MMDriverTest2Config::transmission_size() const {
308  return transmission_.size();
309 }
310 inline void MMDriverTest2Config::clear_transmission() {
311  transmission_.Clear();
312 }
313 inline const ::goby::acomms::protobuf::ModemTransmission& MMDriverTest2Config::transmission(int index) const {
314  // @@protoc_insertion_point(field_get:goby.test.protobuf.MMDriverTest2Config.transmission)
315  return transmission_.Get(index);
316 }
317 inline ::goby::acomms::protobuf::ModemTransmission* MMDriverTest2Config::mutable_transmission(int index) {
318  // @@protoc_insertion_point(field_mutable:goby.test.protobuf.MMDriverTest2Config.transmission)
319  return transmission_.Mutable(index);
320 }
321 inline ::goby::acomms::protobuf::ModemTransmission* MMDriverTest2Config::add_transmission() {
322  // @@protoc_insertion_point(field_add:goby.test.protobuf.MMDriverTest2Config.transmission)
323  return transmission_.Add();
324 }
325 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >&
326 MMDriverTest2Config::transmission() const {
327  // @@protoc_insertion_point(field_list:goby.test.protobuf.MMDriverTest2Config.transmission)
328  return transmission_;
329 }
330 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::ModemTransmission >*
331 MMDriverTest2Config::mutable_transmission() {
332  // @@protoc_insertion_point(field_mutable_list:goby.test.protobuf.MMDriverTest2Config.transmission)
333  return &transmission_;
334 }
335 
336 // optional int32 repeat = 21 [default = 1];
337 inline bool MMDriverTest2Config::has_repeat() const {
338  return (_has_bits_[0] & 0x00000010u) != 0;
339 }
340 inline void MMDriverTest2Config::set_has_repeat() {
341  _has_bits_[0] |= 0x00000010u;
342 }
343 inline void MMDriverTest2Config::clear_has_repeat() {
344  _has_bits_[0] &= ~0x00000010u;
345 }
346 inline void MMDriverTest2Config::clear_repeat() {
347  repeat_ = 1;
348  clear_has_repeat();
349 }
350 inline ::google::protobuf::int32 MMDriverTest2Config::repeat() const {
351  // @@protoc_insertion_point(field_get:goby.test.protobuf.MMDriverTest2Config.repeat)
352  return repeat_;
353 }
354 inline void MMDriverTest2Config::set_repeat(::google::protobuf::int32 value) {
355  set_has_repeat();
356  repeat_ = value;
357  // @@protoc_insertion_point(field_set:goby.test.protobuf.MMDriverTest2Config.repeat)
358 }
359 
360 
361 // @@protoc_insertion_point(namespace_scope)
362 
363 } // namespace protobuf
364 } // namespace test
365 } // namespace goby
366 
367 #ifndef SWIG
368 namespace google {
369 namespace protobuf {
370 
371 
372 } // namespace google
373 } // namespace protobuf
374 #endif // SWIG
375 
376 // @@protoc_insertion_point(global_scope)
377 
378 #endif // PROTOBUF_goby_2ftest_2facomms_2fmmdriver2_2ftest_5fconfig_2eproto__INCLUDED
Definition: as.cpp:24
The global namespace for the Goby project.