Goby v2
desired_course.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/moos/protobuf/desired_course.proto
3 
4 #ifndef PROTOBUF_goby_2fmoos_2fprotobuf_2fdesired_5fcourse_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fmoos_2fprotobuf_2fdesired_5fcourse_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 "dccl/option_extensions.pb.h"
28 #include <boost/units/quantity.hpp>
29 #include <boost/units/absolute.hpp>
30 #include <boost/units/dimensionless_type.hpp>
31 #include <boost/units/make_scaled_unit.hpp>
32 
33 #include <boost/units/systems/angle/degrees.hpp>
34 
35 #include <boost/units/systems/si.hpp>
36 // @@protoc_insertion_point(includes)
37 
38 namespace goby {
39 namespace moos {
40 namespace protobuf {
41 
42 // Internal implementation detail -- do not call these.
43 void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2fdesired_5fcourse_2eproto();
44 void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2fdesired_5fcourse_2eproto();
45 void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2fdesired_5fcourse_2eproto();
46 
47 class DesiredCourse;
48 
49 // ===================================================================
50 
51 class DesiredCourse : public ::google::protobuf::Message {
52  public:
53  DesiredCourse();
54  virtual ~DesiredCourse();
55 
56  DesiredCourse(const DesiredCourse& from);
57 
58  inline DesiredCourse& operator=(const DesiredCourse& from) {
59  CopyFrom(from);
60  return *this;
61  }
62 
63  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
64  return _unknown_fields_;
65  }
66 
67  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
68  return &_unknown_fields_;
69  }
70 
71  static const ::google::protobuf::Descriptor* descriptor();
72  static const DesiredCourse& default_instance();
73 
74  void Swap(DesiredCourse* other);
75 
76  // implements Message ----------------------------------------------
77 
78  DesiredCourse* New() const;
79  void CopyFrom(const ::google::protobuf::Message& from);
80  void MergeFrom(const ::google::protobuf::Message& from);
81  void CopyFrom(const DesiredCourse& from);
82  void MergeFrom(const DesiredCourse& from);
83  void Clear();
84  bool IsInitialized() const;
85 
86  int ByteSize() const;
87  bool MergePartialFromCodedStream(
88  ::google::protobuf::io::CodedInputStream* input);
89  void SerializeWithCachedSizes(
90  ::google::protobuf::io::CodedOutputStream* output) const;
91  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
92  int GetCachedSize() const { return _cached_size_; }
93  private:
94  void SharedCtor();
95  void SharedDtor();
96  void SetCachedSize(int size) const;
97  public:
98  ::google::protobuf::Metadata GetMetadata() const;
99 
100  // nested types ----------------------------------------------------
101 
102  // accessors -------------------------------------------------------
103 
104  // required double time = 1;
105  inline bool has_time() const;
106  inline void clear_time();
107  static const int kTimeFieldNumber = 1;
108  inline double time() const;
109  inline void set_time(double value);
110 
111  // optional double heading = 2 [default = 0];
112  inline bool has_heading() const;
113  inline void clear_heading();
114  static const int kHeadingFieldNumber = 2;
115  inline double heading() const;
116  inline void set_heading(double value);
117 
118  // optional double speed = 3 [default = 0];
119  inline bool has_speed() const;
120  inline void clear_speed();
121  static const int kSpeedFieldNumber = 3;
122  inline double speed() const;
123  inline void set_speed(double value);
124 
125  // optional double depth = 4 [default = 0];
126  inline bool has_depth() const;
127  inline void clear_depth();
128  static const int kDepthFieldNumber = 4;
129  inline double depth() const;
130  inline void set_depth(double value);
131 
132  // optional double pitch = 5 [default = 0];
133  inline bool has_pitch() const;
134  inline void clear_pitch();
135  static const int kPitchFieldNumber = 5;
136  inline double pitch() const;
137  inline void set_pitch(double value);
138 
139  // optional double roll = 6 [default = 0];
140  inline bool has_roll() const;
141  inline void clear_roll();
142  static const int kRollFieldNumber = 6;
143  inline double roll() const;
144  inline void set_roll(double value);
145 
146  // optional double z_rate = 7 [default = 0];
147  inline bool has_z_rate() const;
148  inline void clear_z_rate();
149  static const int kZRateFieldNumber = 7;
150  inline double z_rate() const;
151  inline void set_z_rate(double value);
152 
153  // optional double altitude = 8 [default = 10];
154  inline bool has_altitude() const;
155  inline void clear_altitude();
156  static const int kAltitudeFieldNumber = 8;
157  inline double altitude() const;
158  inline void set_altitude(double value);
159 
160  GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(DesiredCourse)
161  typedef boost::units::time_dimension time_dimension;
162 
163  typedef boost::units::unit<time_dimension,boost::units::si::system> time_unit;
164 
165  template<typename Quantity >
166  void set_time_with_units(Quantity value_w_units)
167  { set_time(boost::units::quantity<time_unit,double >(value_w_units).value() ); };
168 
169  template<typename Quantity >
170  Quantity time_with_units() const
171  { return Quantity(time() * time_unit()); };
172 
173  boost::units::quantity< time_unit,double > time_with_units() const
174  { return time_with_units<boost::units::quantity< time_unit,double > >(); };
175 
176  typedef boost::units::plane_angle_dimension heading_dimension;
177 
178  typedef boost::units::unit<heading_dimension,boost::units::degree::system> heading_unit;
179 
180  template<typename Quantity >
181  void set_heading_with_units(Quantity value_w_units)
182  { set_heading(boost::units::quantity<heading_unit,double >(value_w_units).value() ); };
183 
184  template<typename Quantity >
185  Quantity heading_with_units() const
186  { return Quantity(heading() * heading_unit()); };
187 
188  boost::units::quantity< heading_unit,double > heading_with_units() const
189  { return heading_with_units<boost::units::quantity< heading_unit,double > >(); };
190 
191  typedef boost::mpl::divides<boost::units::length_dimension,boost::units::time_dimension>::type speed_dimension;
192 
193  typedef boost::units::unit<speed_dimension,boost::units::si::system> speed_unit;
194 
195  template<typename Quantity >
196  void set_speed_with_units(Quantity value_w_units)
197  { set_speed(boost::units::quantity<speed_unit,double >(value_w_units).value() ); };
198 
199  template<typename Quantity >
200  Quantity speed_with_units() const
201  { return Quantity(speed() * speed_unit()); };
202 
203  boost::units::quantity< speed_unit,double > speed_with_units() const
204  { return speed_with_units<boost::units::quantity< speed_unit,double > >(); };
205 
206  typedef boost::units::length_dimension depth_dimension;
207 
208  typedef boost::units::unit<depth_dimension,boost::units::si::system> depth_unit;
209 
210  template<typename Quantity >
211  void set_depth_with_units(Quantity value_w_units)
212  { set_depth(boost::units::quantity<depth_unit,double >(value_w_units).value() ); };
213 
214  template<typename Quantity >
215  Quantity depth_with_units() const
216  { return Quantity(depth() * depth_unit()); };
217 
218  boost::units::quantity< depth_unit,double > depth_with_units() const
219  { return depth_with_units<boost::units::quantity< depth_unit,double > >(); };
220 
221  typedef boost::units::plane_angle_dimension pitch_dimension;
222 
223  typedef boost::units::unit<pitch_dimension,boost::units::degree::system> pitch_unit;
224 
225  template<typename Quantity >
226  void set_pitch_with_units(Quantity value_w_units)
227  { set_pitch(boost::units::quantity<pitch_unit,double >(value_w_units).value() ); };
228 
229  template<typename Quantity >
230  Quantity pitch_with_units() const
231  { return Quantity(pitch() * pitch_unit()); };
232 
233  boost::units::quantity< pitch_unit,double > pitch_with_units() const
234  { return pitch_with_units<boost::units::quantity< pitch_unit,double > >(); };
235 
236  typedef boost::units::plane_angle_dimension roll_dimension;
237 
238  typedef boost::units::unit<roll_dimension,boost::units::degree::system> roll_unit;
239 
240  template<typename Quantity >
241  void set_roll_with_units(Quantity value_w_units)
242  { set_roll(boost::units::quantity<roll_unit,double >(value_w_units).value() ); };
243 
244  template<typename Quantity >
245  Quantity roll_with_units() const
246  { return Quantity(roll() * roll_unit()); };
247 
248  boost::units::quantity< roll_unit,double > roll_with_units() const
249  { return roll_with_units<boost::units::quantity< roll_unit,double > >(); };
250 
251  typedef boost::mpl::divides<boost::units::length_dimension,boost::units::time_dimension>::type z_rate_dimension;
252 
253  typedef boost::units::unit<z_rate_dimension,boost::units::si::system> z_rate_unit;
254 
255  template<typename Quantity >
256  void set_z_rate_with_units(Quantity value_w_units)
257  { set_z_rate(boost::units::quantity<z_rate_unit,double >(value_w_units).value() ); };
258 
259  template<typename Quantity >
260  Quantity z_rate_with_units() const
261  { return Quantity(z_rate() * z_rate_unit()); };
262 
263  boost::units::quantity< z_rate_unit,double > z_rate_with_units() const
264  { return z_rate_with_units<boost::units::quantity< z_rate_unit,double > >(); };
265 
266  typedef boost::units::length_dimension altitude_dimension;
267 
268  typedef boost::units::unit<altitude_dimension,boost::units::si::system> altitude_unit;
269 
270  template<typename Quantity >
271  void set_altitude_with_units(Quantity value_w_units)
272  { set_altitude(boost::units::quantity<altitude_unit,double >(value_w_units).value() ); };
273 
274  template<typename Quantity >
275  Quantity altitude_with_units() const
276  { return Quantity(altitude() * altitude_unit()); };
277 
278  boost::units::quantity< altitude_unit,double > altitude_with_units() const
279  { return altitude_with_units<boost::units::quantity< altitude_unit,double > >(); };
280 
281  // @@protoc_insertion_point(class_scope:goby.moos.protobuf.DesiredCourse)
282  private:
283  inline void set_has_time();
284  inline void clear_has_time();
285  inline void set_has_heading();
286  inline void clear_has_heading();
287  inline void set_has_speed();
288  inline void clear_has_speed();
289  inline void set_has_depth();
290  inline void clear_has_depth();
291  inline void set_has_pitch();
292  inline void clear_has_pitch();
293  inline void set_has_roll();
294  inline void clear_has_roll();
295  inline void set_has_z_rate();
296  inline void clear_has_z_rate();
297  inline void set_has_altitude();
298  inline void clear_has_altitude();
299 
300  ::google::protobuf::internal::ExtensionSet _extensions_;
301 
302  ::google::protobuf::UnknownFieldSet _unknown_fields_;
303 
304  ::google::protobuf::uint32 _has_bits_[1];
305  mutable int _cached_size_;
306  double time_;
307  double heading_;
308  double speed_;
309  double depth_;
310  double pitch_;
311  double roll_;
312  double z_rate_;
313  double altitude_;
314  friend void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2fdesired_5fcourse_2eproto();
315  friend void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2fdesired_5fcourse_2eproto();
316  friend void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2fdesired_5fcourse_2eproto();
317 
318  void InitAsDefaultInstance();
319  static DesiredCourse* default_instance_;
320 };
321 // ===================================================================
322 
323 
324 // ===================================================================
325 
326 // DesiredCourse
327 
328 // required double time = 1;
329 inline bool DesiredCourse::has_time() const {
330  return (_has_bits_[0] & 0x00000001u) != 0;
331 }
332 inline void DesiredCourse::set_has_time() {
333  _has_bits_[0] |= 0x00000001u;
334 }
335 inline void DesiredCourse::clear_has_time() {
336  _has_bits_[0] &= ~0x00000001u;
337 }
338 inline void DesiredCourse::clear_time() {
339  time_ = 0;
340  clear_has_time();
341 }
342 inline double DesiredCourse::time() const {
343  // @@protoc_insertion_point(field_get:goby.moos.protobuf.DesiredCourse.time)
344  return time_;
345 }
346 inline void DesiredCourse::set_time(double value) {
347  set_has_time();
348  time_ = value;
349  // @@protoc_insertion_point(field_set:goby.moos.protobuf.DesiredCourse.time)
350 }
351 
352 // optional double heading = 2 [default = 0];
353 inline bool DesiredCourse::has_heading() const {
354  return (_has_bits_[0] & 0x00000002u) != 0;
355 }
356 inline void DesiredCourse::set_has_heading() {
357  _has_bits_[0] |= 0x00000002u;
358 }
359 inline void DesiredCourse::clear_has_heading() {
360  _has_bits_[0] &= ~0x00000002u;
361 }
362 inline void DesiredCourse::clear_heading() {
363  heading_ = 0;
364  clear_has_heading();
365 }
366 inline double DesiredCourse::heading() const {
367  // @@protoc_insertion_point(field_get:goby.moos.protobuf.DesiredCourse.heading)
368  return heading_;
369 }
370 inline void DesiredCourse::set_heading(double value) {
371  set_has_heading();
372  heading_ = value;
373  // @@protoc_insertion_point(field_set:goby.moos.protobuf.DesiredCourse.heading)
374 }
375 
376 // optional double speed = 3 [default = 0];
377 inline bool DesiredCourse::has_speed() const {
378  return (_has_bits_[0] & 0x00000004u) != 0;
379 }
380 inline void DesiredCourse::set_has_speed() {
381  _has_bits_[0] |= 0x00000004u;
382 }
383 inline void DesiredCourse::clear_has_speed() {
384  _has_bits_[0] &= ~0x00000004u;
385 }
386 inline void DesiredCourse::clear_speed() {
387  speed_ = 0;
388  clear_has_speed();
389 }
390 inline double DesiredCourse::speed() const {
391  // @@protoc_insertion_point(field_get:goby.moos.protobuf.DesiredCourse.speed)
392  return speed_;
393 }
394 inline void DesiredCourse::set_speed(double value) {
395  set_has_speed();
396  speed_ = value;
397  // @@protoc_insertion_point(field_set:goby.moos.protobuf.DesiredCourse.speed)
398 }
399 
400 // optional double depth = 4 [default = 0];
401 inline bool DesiredCourse::has_depth() const {
402  return (_has_bits_[0] & 0x00000008u) != 0;
403 }
404 inline void DesiredCourse::set_has_depth() {
405  _has_bits_[0] |= 0x00000008u;
406 }
407 inline void DesiredCourse::clear_has_depth() {
408  _has_bits_[0] &= ~0x00000008u;
409 }
410 inline void DesiredCourse::clear_depth() {
411  depth_ = 0;
412  clear_has_depth();
413 }
414 inline double DesiredCourse::depth() const {
415  // @@protoc_insertion_point(field_get:goby.moos.protobuf.DesiredCourse.depth)
416  return depth_;
417 }
418 inline void DesiredCourse::set_depth(double value) {
419  set_has_depth();
420  depth_ = value;
421  // @@protoc_insertion_point(field_set:goby.moos.protobuf.DesiredCourse.depth)
422 }
423 
424 // optional double pitch = 5 [default = 0];
425 inline bool DesiredCourse::has_pitch() const {
426  return (_has_bits_[0] & 0x00000010u) != 0;
427 }
428 inline void DesiredCourse::set_has_pitch() {
429  _has_bits_[0] |= 0x00000010u;
430 }
431 inline void DesiredCourse::clear_has_pitch() {
432  _has_bits_[0] &= ~0x00000010u;
433 }
434 inline void DesiredCourse::clear_pitch() {
435  pitch_ = 0;
436  clear_has_pitch();
437 }
438 inline double DesiredCourse::pitch() const {
439  // @@protoc_insertion_point(field_get:goby.moos.protobuf.DesiredCourse.pitch)
440  return pitch_;
441 }
442 inline void DesiredCourse::set_pitch(double value) {
443  set_has_pitch();
444  pitch_ = value;
445  // @@protoc_insertion_point(field_set:goby.moos.protobuf.DesiredCourse.pitch)
446 }
447 
448 // optional double roll = 6 [default = 0];
449 inline bool DesiredCourse::has_roll() const {
450  return (_has_bits_[0] & 0x00000020u) != 0;
451 }
452 inline void DesiredCourse::set_has_roll() {
453  _has_bits_[0] |= 0x00000020u;
454 }
455 inline void DesiredCourse::clear_has_roll() {
456  _has_bits_[0] &= ~0x00000020u;
457 }
458 inline void DesiredCourse::clear_roll() {
459  roll_ = 0;
460  clear_has_roll();
461 }
462 inline double DesiredCourse::roll() const {
463  // @@protoc_insertion_point(field_get:goby.moos.protobuf.DesiredCourse.roll)
464  return roll_;
465 }
466 inline void DesiredCourse::set_roll(double value) {
467  set_has_roll();
468  roll_ = value;
469  // @@protoc_insertion_point(field_set:goby.moos.protobuf.DesiredCourse.roll)
470 }
471 
472 // optional double z_rate = 7 [default = 0];
473 inline bool DesiredCourse::has_z_rate() const {
474  return (_has_bits_[0] & 0x00000040u) != 0;
475 }
476 inline void DesiredCourse::set_has_z_rate() {
477  _has_bits_[0] |= 0x00000040u;
478 }
479 inline void DesiredCourse::clear_has_z_rate() {
480  _has_bits_[0] &= ~0x00000040u;
481 }
482 inline void DesiredCourse::clear_z_rate() {
483  z_rate_ = 0;
484  clear_has_z_rate();
485 }
486 inline double DesiredCourse::z_rate() const {
487  // @@protoc_insertion_point(field_get:goby.moos.protobuf.DesiredCourse.z_rate)
488  return z_rate_;
489 }
490 inline void DesiredCourse::set_z_rate(double value) {
491  set_has_z_rate();
492  z_rate_ = value;
493  // @@protoc_insertion_point(field_set:goby.moos.protobuf.DesiredCourse.z_rate)
494 }
495 
496 // optional double altitude = 8 [default = 10];
497 inline bool DesiredCourse::has_altitude() const {
498  return (_has_bits_[0] & 0x00000080u) != 0;
499 }
500 inline void DesiredCourse::set_has_altitude() {
501  _has_bits_[0] |= 0x00000080u;
502 }
503 inline void DesiredCourse::clear_has_altitude() {
504  _has_bits_[0] &= ~0x00000080u;
505 }
506 inline void DesiredCourse::clear_altitude() {
507  altitude_ = 10;
508  clear_has_altitude();
509 }
510 inline double DesiredCourse::altitude() const {
511  // @@protoc_insertion_point(field_get:goby.moos.protobuf.DesiredCourse.altitude)
512  return altitude_;
513 }
514 inline void DesiredCourse::set_altitude(double value) {
515  set_has_altitude();
516  altitude_ = value;
517  // @@protoc_insertion_point(field_set:goby.moos.protobuf.DesiredCourse.altitude)
518 }
519 
520 
521 // @@protoc_insertion_point(namespace_scope)
522 
523 } // namespace protobuf
524 } // namespace moos
525 } // namespace goby
526 
527 #ifndef SWIG
528 namespace google {
529 namespace protobuf {
530 
531 
532 } // namespace google
533 } // namespace protobuf
534 #endif // SWIG
535 
536 // @@protoc_insertion_point(global_scope)
537 
538 #endif // PROTOBUF_goby_2fmoos_2fprotobuf_2fdesired_5fcourse_2eproto__INCLUDED
The global namespace for the Goby project.