4 #ifndef PROTOBUF_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto__INCLUDED 5 #define PROTOBUF_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_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/unknown_field_set.h> 27 #include <boost/units/quantity.hpp> 28 #include <boost/units/absolute.hpp> 29 #include <boost/units/dimensionless_type.hpp> 30 #include <boost/units/make_scaled_unit.hpp> 34 void protobuf_AddDesc_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto();
35 void protobuf_AssignDesc_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto();
36 void protobuf_ShutdownFile_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto();
54 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
55 return _unknown_fields_;
58 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
59 return &_unknown_fields_;
62 static const ::google::protobuf::Descriptor* descriptor();
70 void CopyFrom(const ::google::protobuf::Message& from);
71 void MergeFrom(const ::google::protobuf::Message& from);
75 bool IsInitialized()
const;
78 bool MergePartialFromCodedStream(
79 ::google::protobuf::io::CodedInputStream* input);
80 void SerializeWithCachedSizes(
81 ::google::protobuf::io::CodedOutputStream* output)
const;
82 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
83 int GetCachedSize()
const {
return _cached_size_; }
87 void SetCachedSize(
int size)
const;
89 ::google::protobuf::Metadata GetMetadata()
const;
96 inline bool has_name()
const;
97 inline void clear_name();
98 static const int kNameFieldNumber = 1;
99 inline const ::std::string& name()
const;
100 inline void set_name(const ::std::string& value);
101 inline void set_name(
const char* value);
102 inline void set_name(
const char* value,
size_t size);
103 inline ::std::string* mutable_name();
104 inline ::std::string* release_name();
105 inline void set_allocated_name(::std::string* name);
108 inline bool has_x()
const;
109 inline void clear_x();
110 static const int kXFieldNumber = 202;
111 inline double x()
const;
112 inline void set_x(
double value);
115 inline bool has_y()
const;
116 inline void clear_y();
117 static const int kYFieldNumber = 3;
118 inline double y()
const;
119 inline void set_y(
double value);
122 inline bool has_speed()
const;
123 inline void clear_speed();
124 static const int kSpeedFieldNumber = 4;
125 inline double speed()
const;
126 inline void set_speed(
double value);
129 inline bool has_heading()
const;
130 inline void clear_heading();
131 static const int kHeadingFieldNumber = 201;
132 inline double heading()
const;
133 inline void set_heading(
double value);
136 inline bool has_depth()
const;
137 inline void clear_depth();
138 static const int kDepthFieldNumber = 6;
139 inline double depth()
const;
140 inline void set_depth(
double value);
143 inline bool has_altitude()
const;
144 inline void clear_altitude();
145 static const int kAltitudeFieldNumber = 7;
146 inline double altitude()
const;
147 inline void set_altitude(
double value);
150 inline bool has_lat()
const;
151 inline void clear_lat();
152 static const int kLatFieldNumber = 8;
153 inline double lat()
const;
154 inline void set_lat(
double value);
157 inline bool has_lon()
const;
158 inline void clear_lon();
159 static const int kLonFieldNumber = 9;
160 inline double lon()
const;
161 inline void set_lon(
double value);
164 inline bool has_time()
const;
165 inline void clear_time();
166 static const int kTimeFieldNumber = 200;
167 inline double time()
const;
168 inline void set_time(
double value);
171 inline int repeat_size()
const;
172 inline void clear_repeat();
173 static const int kRepeatFieldNumber = 10;
174 inline ::google::protobuf::int32 repeat(
int index)
const;
175 inline void set_repeat(
int index, ::google::protobuf::int32 value);
176 inline void add_repeat(::google::protobuf::int32 value);
177 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
179 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
184 inline void set_has_name();
185 inline void clear_has_name();
186 inline void set_has_x();
187 inline void clear_has_x();
188 inline void set_has_y();
189 inline void clear_has_y();
190 inline void set_has_speed();
191 inline void clear_has_speed();
192 inline void set_has_heading();
193 inline void clear_has_heading();
194 inline void set_has_depth();
195 inline void clear_has_depth();
196 inline void set_has_altitude();
197 inline void clear_has_altitude();
198 inline void set_has_lat();
199 inline void clear_has_lat();
200 inline void set_has_lon();
201 inline void clear_has_lon();
202 inline void set_has_time();
203 inline void clear_has_time();
205 ::google::protobuf::UnknownFieldSet _unknown_fields_;
207 ::google::protobuf::uint32 _has_bits_[1];
208 mutable int _cached_size_;
209 ::std::string* name_;
219 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeat_;
220 friend void protobuf_AddDesc_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto();
221 friend void protobuf_AssignDesc_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto();
222 friend void protobuf_ShutdownFile_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto();
224 void InitAsDefaultInstance();
235 inline bool BasicNodeReport::has_name()
const {
236 return (_has_bits_[0] & 0x00000001u) != 0;
238 inline void BasicNodeReport::set_has_name() {
239 _has_bits_[0] |= 0x00000001u;
241 inline void BasicNodeReport::clear_has_name() {
242 _has_bits_[0] &= ~0x00000001u;
244 inline void BasicNodeReport::clear_name() {
245 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
250 inline const ::std::string& BasicNodeReport::name()
const {
254 inline void BasicNodeReport::set_name(const ::std::string& value) {
256 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
257 name_ = new ::std::string;
259 name_->assign(value);
262 inline void BasicNodeReport::set_name(
const char* value) {
264 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
265 name_ = new ::std::string;
267 name_->assign(value);
270 inline void BasicNodeReport::set_name(
const char* value,
size_t size) {
272 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
273 name_ = new ::std::string;
275 name_->assign(reinterpret_cast<const char*>(value), size);
278 inline ::std::string* BasicNodeReport::mutable_name() {
280 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
281 name_ = new ::std::string;
286 inline ::std::string* BasicNodeReport::release_name() {
288 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
291 ::std::string* temp = name_;
292 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
296 inline void BasicNodeReport::set_allocated_name(::std::string* name) {
297 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
305 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
311 inline bool BasicNodeReport::has_x()
const {
312 return (_has_bits_[0] & 0x00000002u) != 0;
314 inline void BasicNodeReport::set_has_x() {
315 _has_bits_[0] |= 0x00000002u;
317 inline void BasicNodeReport::clear_has_x() {
318 _has_bits_[0] &= ~0x00000002u;
320 inline void BasicNodeReport::clear_x() {
324 inline double BasicNodeReport::x()
const {
328 inline void BasicNodeReport::set_x(
double value) {
335 inline bool BasicNodeReport::has_y()
const {
336 return (_has_bits_[0] & 0x00000004u) != 0;
338 inline void BasicNodeReport::set_has_y() {
339 _has_bits_[0] |= 0x00000004u;
341 inline void BasicNodeReport::clear_has_y() {
342 _has_bits_[0] &= ~0x00000004u;
344 inline void BasicNodeReport::clear_y() {
348 inline double BasicNodeReport::y()
const {
352 inline void BasicNodeReport::set_y(
double value) {
359 inline bool BasicNodeReport::has_speed()
const {
360 return (_has_bits_[0] & 0x00000008u) != 0;
362 inline void BasicNodeReport::set_has_speed() {
363 _has_bits_[0] |= 0x00000008u;
365 inline void BasicNodeReport::clear_has_speed() {
366 _has_bits_[0] &= ~0x00000008u;
368 inline void BasicNodeReport::clear_speed() {
372 inline double BasicNodeReport::speed()
const {
376 inline void BasicNodeReport::set_speed(
double value) {
383 inline bool BasicNodeReport::has_heading()
const {
384 return (_has_bits_[0] & 0x00000010u) != 0;
386 inline void BasicNodeReport::set_has_heading() {
387 _has_bits_[0] |= 0x00000010u;
389 inline void BasicNodeReport::clear_has_heading() {
390 _has_bits_[0] &= ~0x00000010u;
392 inline void BasicNodeReport::clear_heading() {
396 inline double BasicNodeReport::heading()
const {
400 inline void BasicNodeReport::set_heading(
double value) {
407 inline bool BasicNodeReport::has_depth()
const {
408 return (_has_bits_[0] & 0x00000020u) != 0;
410 inline void BasicNodeReport::set_has_depth() {
411 _has_bits_[0] |= 0x00000020u;
413 inline void BasicNodeReport::clear_has_depth() {
414 _has_bits_[0] &= ~0x00000020u;
416 inline void BasicNodeReport::clear_depth() {
420 inline double BasicNodeReport::depth()
const {
424 inline void BasicNodeReport::set_depth(
double value) {
431 inline bool BasicNodeReport::has_altitude()
const {
432 return (_has_bits_[0] & 0x00000040u) != 0;
434 inline void BasicNodeReport::set_has_altitude() {
435 _has_bits_[0] |= 0x00000040u;
437 inline void BasicNodeReport::clear_has_altitude() {
438 _has_bits_[0] &= ~0x00000040u;
440 inline void BasicNodeReport::clear_altitude() {
442 clear_has_altitude();
444 inline double BasicNodeReport::altitude()
const {
448 inline void BasicNodeReport::set_altitude(
double value) {
455 inline bool BasicNodeReport::has_lat()
const {
456 return (_has_bits_[0] & 0x00000080u) != 0;
458 inline void BasicNodeReport::set_has_lat() {
459 _has_bits_[0] |= 0x00000080u;
461 inline void BasicNodeReport::clear_has_lat() {
462 _has_bits_[0] &= ~0x00000080u;
464 inline void BasicNodeReport::clear_lat() {
468 inline double BasicNodeReport::lat()
const {
472 inline void BasicNodeReport::set_lat(
double value) {
479 inline bool BasicNodeReport::has_lon()
const {
480 return (_has_bits_[0] & 0x00000100u) != 0;
482 inline void BasicNodeReport::set_has_lon() {
483 _has_bits_[0] |= 0x00000100u;
485 inline void BasicNodeReport::clear_has_lon() {
486 _has_bits_[0] &= ~0x00000100u;
488 inline void BasicNodeReport::clear_lon() {
492 inline double BasicNodeReport::lon()
const {
496 inline void BasicNodeReport::set_lon(
double value) {
503 inline bool BasicNodeReport::has_time()
const {
504 return (_has_bits_[0] & 0x00000200u) != 0;
506 inline void BasicNodeReport::set_has_time() {
507 _has_bits_[0] |= 0x00000200u;
509 inline void BasicNodeReport::clear_has_time() {
510 _has_bits_[0] &= ~0x00000200u;
512 inline void BasicNodeReport::clear_time() {
516 inline double BasicNodeReport::time()
const {
520 inline void BasicNodeReport::set_time(
double value) {
527 inline int BasicNodeReport::repeat_size()
const {
528 return repeat_.size();
530 inline void BasicNodeReport::clear_repeat() {
533 inline ::google::protobuf::int32 BasicNodeReport::repeat(
int index)
const {
535 return repeat_.Get(index);
537 inline void BasicNodeReport::set_repeat(
int index, ::google::protobuf::int32 value) {
538 repeat_.Set(index, value);
541 inline void BasicNodeReport::add_repeat(::google::protobuf::int32 value) {
545 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
546 BasicNodeReport::repeat()
const {
550 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
551 BasicNodeReport::mutable_repeat() {
570 #endif // PROTOBUF_goby_2ftest_2fmoos_2ftranslator1_2fbasic_5fnode_5freport_2eproto__INCLUDED