Goby v2
linebasedcomms.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/util/protobuf/linebasedcomms.proto
3 
4 #ifndef PROTOBUF_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto__INCLUDED
5 #define PROTOBUF_goby_2futil_2fprotobuf_2flinebasedcomms_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 <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 // @@protoc_insertion_point(includes)
33 
34 namespace goby {
35 namespace util {
36 namespace protobuf {
37 
38 // Internal implementation detail -- do not call these.
39 void protobuf_AddDesc_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto();
40 void protobuf_AssignDesc_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto();
41 void protobuf_ShutdownFile_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto();
42 
43 class Datagram;
44 
45 // ===================================================================
46 
47 class Datagram : public ::google::protobuf::Message {
48  public:
49  Datagram();
50  virtual ~Datagram();
51 
52  Datagram(const Datagram& from);
53 
54  inline Datagram& operator=(const Datagram& from) {
55  CopyFrom(from);
56  return *this;
57  }
58 
59  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
60  return _unknown_fields_;
61  }
62 
63  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
64  return &_unknown_fields_;
65  }
66 
67  static const ::google::protobuf::Descriptor* descriptor();
68  static const Datagram& default_instance();
69 
70  void Swap(Datagram* other);
71 
72  // implements Message ----------------------------------------------
73 
74  Datagram* New() const;
75  void CopyFrom(const ::google::protobuf::Message& from);
76  void MergeFrom(const ::google::protobuf::Message& from);
77  void CopyFrom(const Datagram& from);
78  void MergeFrom(const Datagram& from);
79  void Clear();
80  bool IsInitialized() const;
81 
82  int ByteSize() const;
83  bool MergePartialFromCodedStream(
84  ::google::protobuf::io::CodedInputStream* input);
85  void SerializeWithCachedSizes(
86  ::google::protobuf::io::CodedOutputStream* output) const;
87  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
88  int GetCachedSize() const { return _cached_size_; }
89  private:
90  void SharedCtor();
91  void SharedDtor();
92  void SetCachedSize(int size) const;
93  public:
94  ::google::protobuf::Metadata GetMetadata() const;
95 
96  // nested types ----------------------------------------------------
97 
98  // accessors -------------------------------------------------------
99 
100  // required string data = 1;
101  inline bool has_data() const;
102  inline void clear_data();
103  static const int kDataFieldNumber = 1;
104  inline const ::std::string& data() const;
105  inline void set_data(const ::std::string& value);
106  inline void set_data(const char* value);
107  inline void set_data(const char* value, size_t size);
108  inline ::std::string* mutable_data();
109  inline ::std::string* release_data();
110  inline void set_allocated_data(::std::string* data);
111 
112  // optional string src = 2;
113  inline bool has_src() const;
114  inline void clear_src();
115  static const int kSrcFieldNumber = 2;
116  inline const ::std::string& src() const;
117  inline void set_src(const ::std::string& value);
118  inline void set_src(const char* value);
119  inline void set_src(const char* value, size_t size);
120  inline ::std::string* mutable_src();
121  inline ::std::string* release_src();
122  inline void set_allocated_src(::std::string* src);
123 
124  // optional string dest = 3;
125  inline bool has_dest() const;
126  inline void clear_dest();
127  static const int kDestFieldNumber = 3;
128  inline const ::std::string& dest() const;
129  inline void set_dest(const ::std::string& value);
130  inline void set_dest(const char* value);
131  inline void set_dest(const char* value, size_t size);
132  inline ::std::string* mutable_dest();
133  inline ::std::string* release_dest();
134  inline void set_allocated_dest(::std::string* dest);
135 
136  // optional double time = 4;
137  inline bool has_time() const;
138  inline void clear_time();
139  static const int kTimeFieldNumber = 4;
140  inline double time() const;
141  inline void set_time(double value);
142 
143  // @@protoc_insertion_point(class_scope:goby.util.protobuf.Datagram)
144  private:
145  inline void set_has_data();
146  inline void clear_has_data();
147  inline void set_has_src();
148  inline void clear_has_src();
149  inline void set_has_dest();
150  inline void clear_has_dest();
151  inline void set_has_time();
152  inline void clear_has_time();
153 
154  ::google::protobuf::UnknownFieldSet _unknown_fields_;
155 
156  ::google::protobuf::uint32 _has_bits_[1];
157  mutable int _cached_size_;
158  ::std::string* data_;
159  ::std::string* src_;
160  ::std::string* dest_;
161  double time_;
162  friend void protobuf_AddDesc_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto();
163  friend void protobuf_AssignDesc_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto();
164  friend void protobuf_ShutdownFile_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto();
165 
166  void InitAsDefaultInstance();
167  static Datagram* default_instance_;
168 };
169 // ===================================================================
170 
171 
172 // ===================================================================
173 
174 // Datagram
175 
176 // required string data = 1;
177 inline bool Datagram::has_data() const {
178  return (_has_bits_[0] & 0x00000001u) != 0;
179 }
180 inline void Datagram::set_has_data() {
181  _has_bits_[0] |= 0x00000001u;
182 }
183 inline void Datagram::clear_has_data() {
184  _has_bits_[0] &= ~0x00000001u;
185 }
186 inline void Datagram::clear_data() {
187  if (data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
188  data_->clear();
189  }
190  clear_has_data();
191 }
192 inline const ::std::string& Datagram::data() const {
193  // @@protoc_insertion_point(field_get:goby.util.protobuf.Datagram.data)
194  return *data_;
195 }
196 inline void Datagram::set_data(const ::std::string& value) {
197  set_has_data();
198  if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
199  data_ = new ::std::string;
200  }
201  data_->assign(value);
202  // @@protoc_insertion_point(field_set:goby.util.protobuf.Datagram.data)
203 }
204 inline void Datagram::set_data(const char* value) {
205  set_has_data();
206  if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
207  data_ = new ::std::string;
208  }
209  data_->assign(value);
210  // @@protoc_insertion_point(field_set_char:goby.util.protobuf.Datagram.data)
211 }
212 inline void Datagram::set_data(const char* value, size_t size) {
213  set_has_data();
214  if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
215  data_ = new ::std::string;
216  }
217  data_->assign(reinterpret_cast<const char*>(value), size);
218  // @@protoc_insertion_point(field_set_pointer:goby.util.protobuf.Datagram.data)
219 }
220 inline ::std::string* Datagram::mutable_data() {
221  set_has_data();
222  if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
223  data_ = new ::std::string;
224  }
225  // @@protoc_insertion_point(field_mutable:goby.util.protobuf.Datagram.data)
226  return data_;
227 }
228 inline ::std::string* Datagram::release_data() {
229  clear_has_data();
230  if (data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
231  return NULL;
232  } else {
233  ::std::string* temp = data_;
234  data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
235  return temp;
236  }
237 }
238 inline void Datagram::set_allocated_data(::std::string* data) {
239  if (data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
240  delete data_;
241  }
242  if (data) {
243  set_has_data();
244  data_ = data;
245  } else {
246  clear_has_data();
247  data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
248  }
249  // @@protoc_insertion_point(field_set_allocated:goby.util.protobuf.Datagram.data)
250 }
251 
252 // optional string src = 2;
253 inline bool Datagram::has_src() const {
254  return (_has_bits_[0] & 0x00000002u) != 0;
255 }
256 inline void Datagram::set_has_src() {
257  _has_bits_[0] |= 0x00000002u;
258 }
259 inline void Datagram::clear_has_src() {
260  _has_bits_[0] &= ~0x00000002u;
261 }
262 inline void Datagram::clear_src() {
263  if (src_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
264  src_->clear();
265  }
266  clear_has_src();
267 }
268 inline const ::std::string& Datagram::src() const {
269  // @@protoc_insertion_point(field_get:goby.util.protobuf.Datagram.src)
270  return *src_;
271 }
272 inline void Datagram::set_src(const ::std::string& value) {
273  set_has_src();
274  if (src_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
275  src_ = new ::std::string;
276  }
277  src_->assign(value);
278  // @@protoc_insertion_point(field_set:goby.util.protobuf.Datagram.src)
279 }
280 inline void Datagram::set_src(const char* value) {
281  set_has_src();
282  if (src_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
283  src_ = new ::std::string;
284  }
285  src_->assign(value);
286  // @@protoc_insertion_point(field_set_char:goby.util.protobuf.Datagram.src)
287 }
288 inline void Datagram::set_src(const char* value, size_t size) {
289  set_has_src();
290  if (src_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
291  src_ = new ::std::string;
292  }
293  src_->assign(reinterpret_cast<const char*>(value), size);
294  // @@protoc_insertion_point(field_set_pointer:goby.util.protobuf.Datagram.src)
295 }
296 inline ::std::string* Datagram::mutable_src() {
297  set_has_src();
298  if (src_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
299  src_ = new ::std::string;
300  }
301  // @@protoc_insertion_point(field_mutable:goby.util.protobuf.Datagram.src)
302  return src_;
303 }
304 inline ::std::string* Datagram::release_src() {
305  clear_has_src();
306  if (src_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
307  return NULL;
308  } else {
309  ::std::string* temp = src_;
310  src_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
311  return temp;
312  }
313 }
314 inline void Datagram::set_allocated_src(::std::string* src) {
315  if (src_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
316  delete src_;
317  }
318  if (src) {
319  set_has_src();
320  src_ = src;
321  } else {
322  clear_has_src();
323  src_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
324  }
325  // @@protoc_insertion_point(field_set_allocated:goby.util.protobuf.Datagram.src)
326 }
327 
328 // optional string dest = 3;
329 inline bool Datagram::has_dest() const {
330  return (_has_bits_[0] & 0x00000004u) != 0;
331 }
332 inline void Datagram::set_has_dest() {
333  _has_bits_[0] |= 0x00000004u;
334 }
335 inline void Datagram::clear_has_dest() {
336  _has_bits_[0] &= ~0x00000004u;
337 }
338 inline void Datagram::clear_dest() {
339  if (dest_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
340  dest_->clear();
341  }
342  clear_has_dest();
343 }
344 inline const ::std::string& Datagram::dest() const {
345  // @@protoc_insertion_point(field_get:goby.util.protobuf.Datagram.dest)
346  return *dest_;
347 }
348 inline void Datagram::set_dest(const ::std::string& value) {
349  set_has_dest();
350  if (dest_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
351  dest_ = new ::std::string;
352  }
353  dest_->assign(value);
354  // @@protoc_insertion_point(field_set:goby.util.protobuf.Datagram.dest)
355 }
356 inline void Datagram::set_dest(const char* value) {
357  set_has_dest();
358  if (dest_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
359  dest_ = new ::std::string;
360  }
361  dest_->assign(value);
362  // @@protoc_insertion_point(field_set_char:goby.util.protobuf.Datagram.dest)
363 }
364 inline void Datagram::set_dest(const char* value, size_t size) {
365  set_has_dest();
366  if (dest_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
367  dest_ = new ::std::string;
368  }
369  dest_->assign(reinterpret_cast<const char*>(value), size);
370  // @@protoc_insertion_point(field_set_pointer:goby.util.protobuf.Datagram.dest)
371 }
372 inline ::std::string* Datagram::mutable_dest() {
373  set_has_dest();
374  if (dest_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
375  dest_ = new ::std::string;
376  }
377  // @@protoc_insertion_point(field_mutable:goby.util.protobuf.Datagram.dest)
378  return dest_;
379 }
380 inline ::std::string* Datagram::release_dest() {
381  clear_has_dest();
382  if (dest_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
383  return NULL;
384  } else {
385  ::std::string* temp = dest_;
386  dest_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
387  return temp;
388  }
389 }
390 inline void Datagram::set_allocated_dest(::std::string* dest) {
391  if (dest_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
392  delete dest_;
393  }
394  if (dest) {
395  set_has_dest();
396  dest_ = dest;
397  } else {
398  clear_has_dest();
399  dest_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
400  }
401  // @@protoc_insertion_point(field_set_allocated:goby.util.protobuf.Datagram.dest)
402 }
403 
404 // optional double time = 4;
405 inline bool Datagram::has_time() const {
406  return (_has_bits_[0] & 0x00000008u) != 0;
407 }
408 inline void Datagram::set_has_time() {
409  _has_bits_[0] |= 0x00000008u;
410 }
411 inline void Datagram::clear_has_time() {
412  _has_bits_[0] &= ~0x00000008u;
413 }
414 inline void Datagram::clear_time() {
415  time_ = 0;
416  clear_has_time();
417 }
418 inline double Datagram::time() const {
419  // @@protoc_insertion_point(field_get:goby.util.protobuf.Datagram.time)
420  return time_;
421 }
422 inline void Datagram::set_time(double value) {
423  set_has_time();
424  time_ = value;
425  // @@protoc_insertion_point(field_set:goby.util.protobuf.Datagram.time)
426 }
427 
428 
429 // @@protoc_insertion_point(namespace_scope)
430 
431 } // namespace protobuf
432 } // namespace util
433 } // namespace goby
434 
435 #ifndef SWIG
436 namespace google {
437 namespace protobuf {
438 
439 
440 } // namespace google
441 } // namespace protobuf
442 #endif // SWIG
443 
444 // @@protoc_insertion_point(global_scope)
445 
446 #endif // PROTOBUF_goby_2futil_2fprotobuf_2flinebasedcomms_2eproto__INCLUDED
The global namespace for the Goby project.