JaiaBot  1.12.1~beta1
JaiaBot micro-AUV software
geographic_coordinate.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: jaiabot/messages/geographic_coordinate.proto
3 
4 #ifndef PROTOBUF_INCLUDED_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
33 #include "dccl/option_extensions.pb.h"
34 #include <boost/units/quantity.hpp>
35 #include <boost/units/absolute.hpp>
36 #include <boost/units/dimensionless_type.hpp>
37 #include <boost/units/make_scaled_unit.hpp>
38 
39 #include <boost/units/systems/angle/degrees.hpp>
40 
41 #include <boost/units/systems/si.hpp>
42 // @@protoc_insertion_point(includes)
43 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
44 
46 // Internal implementation detail -- do not use these members.
47 struct TableStruct {
48  static const ::google::protobuf::internal::ParseTableField entries[];
49  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
50  static const ::google::protobuf::internal::ParseTable schema[1];
51  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
52  static const ::google::protobuf::internal::SerializationTable serialization_table[];
53  static const ::google::protobuf::uint32 offsets[];
54 };
55 void AddDescriptors();
56 } // namespace protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
57 namespace jaiabot {
58 namespace protobuf {
59 class GeographicCoordinate;
60 class GeographicCoordinateDefaultTypeInternal;
61 extern GeographicCoordinateDefaultTypeInternal _GeographicCoordinate_default_instance_;
62 } // namespace protobuf
63 } // namespace jaiabot
64 namespace google {
65 namespace protobuf {
66 template<> ::jaiabot::protobuf::GeographicCoordinate* Arena::CreateMaybeMessage<::jaiabot::protobuf::GeographicCoordinate>(Arena*);
67 } // namespace protobuf
68 } // namespace google
69 namespace jaiabot {
70 namespace protobuf {
71 
72 // ===================================================================
73 
74 class GeographicCoordinate : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:jaiabot.protobuf.GeographicCoordinate) */ {
75  public:
77  virtual ~GeographicCoordinate();
78 
80 
82  CopyFrom(from);
83  return *this;
84  }
85  #if LANG_CXX11
88  *this = ::std::move(from);
89  }
90 
91  inline GeographicCoordinate& operator=(GeographicCoordinate&& from) noexcept {
92  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
93  if (this != &from) InternalSwap(&from);
94  } else {
95  CopyFrom(from);
96  }
97  return *this;
98  }
99  #endif
100  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
101  return _internal_metadata_.unknown_fields();
102  }
103  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
104  return _internal_metadata_.mutable_unknown_fields();
105  }
106 
107  static const ::google::protobuf::Descriptor* descriptor();
108  static const GeographicCoordinate& default_instance();
109 
110  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
112  return reinterpret_cast<const GeographicCoordinate*>(
114  }
115  static constexpr int kIndexInFileMessages =
116  0;
117 
118  void Swap(GeographicCoordinate* other);
120  a.Swap(&b);
121  }
122 
123  // implements Message ----------------------------------------------
124 
125  inline GeographicCoordinate* New() const final {
126  return CreateMaybeMessage<GeographicCoordinate>(NULL);
127  }
128 
129  GeographicCoordinate* New(::google::protobuf::Arena* arena) const final {
130  return CreateMaybeMessage<GeographicCoordinate>(arena);
131  }
132  void CopyFrom(const ::google::protobuf::Message& from) final;
133  void MergeFrom(const ::google::protobuf::Message& from) final;
134  void CopyFrom(const GeographicCoordinate& from);
135  void MergeFrom(const GeographicCoordinate& from);
136  void Clear() final;
137  bool IsInitialized() const final;
138 
139  size_t ByteSizeLong() const final;
141  ::google::protobuf::io::CodedInputStream* input) final;
143  ::google::protobuf::io::CodedOutputStream* output) const final;
145  bool deterministic, ::google::protobuf::uint8* target) const final;
146  int GetCachedSize() const final { return _cached_size_.Get(); }
147 
148  private:
149  void SharedCtor();
150  void SharedDtor();
151  void SetCachedSize(int size) const final;
152  void InternalSwap(GeographicCoordinate* other);
153  private:
154  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
155  return NULL;
156  }
157  inline void* MaybeArenaPtr() const {
158  return NULL;
159  }
160  public:
161 
162  ::google::protobuf::Metadata GetMetadata() const final;
163 
164  // nested types ----------------------------------------------------
165 
166  // accessors -------------------------------------------------------
167 
168  // required double lat = 1 [(.dccl.field) = {
169  bool has_lat() const;
170  void clear_lat();
171  static const int kLatFieldNumber = 1;
172  double lat() const;
173  void set_lat(double value);
174 
175  // required double lon = 2 [(.dccl.field) = {
176  bool has_lon() const;
177  void clear_lon();
178  static const int kLonFieldNumber = 2;
179  double lon() const;
180  void set_lon(double value);
181 
182  typedef boost::units::plane_angle_dimension lat_dimension;
183 
184  typedef boost::units::unit<lat_dimension,boost::units::degree::system> lat_unit;
185 
186  template<typename Quantity >
187  void set_lat_with_units(Quantity value_w_units)
188  { set_lat(boost::units::quantity<lat_unit,double >(value_w_units).value() ); };
189 
190  template<typename Quantity >
191  Quantity lat_with_units() const
192  { return Quantity(lat() * lat_unit()); };
193 
194  boost::units::quantity< lat_unit,double > lat_with_units() const
195  { return lat_with_units<boost::units::quantity< lat_unit,double > >(); };
196 
197  typedef boost::units::plane_angle_dimension lon_dimension;
198 
199  typedef boost::units::unit<lon_dimension,boost::units::degree::system> lon_unit;
200 
201  template<typename Quantity >
202  void set_lon_with_units(Quantity value_w_units)
203  { set_lon(boost::units::quantity<lon_unit,double >(value_w_units).value() ); };
204 
205  template<typename Quantity >
206  Quantity lon_with_units() const
207  { return Quantity(lon() * lon_unit()); };
208 
209  boost::units::quantity< lon_unit,double > lon_with_units() const
210  { return lon_with_units<boost::units::quantity< lon_unit,double > >(); };
211 
212  // @@protoc_insertion_point(class_scope:jaiabot.protobuf.GeographicCoordinate)
213  private:
214  void set_has_lat();
215  void clear_has_lat();
216  void set_has_lon();
217  void clear_has_lon();
218 
219  // helper for ByteSizeLong()
220  size_t RequiredFieldsByteSizeFallback() const;
221 
222  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
223  ::google::protobuf::internal::HasBits<1> _has_bits_;
224  mutable ::google::protobuf::internal::CachedSize _cached_size_;
225  double lat_;
226  double lon_;
227  friend struct ::protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::TableStruct;
228 };
229 // ===================================================================
230 
231 
232 // ===================================================================
233 
234 #ifdef __GNUC__
235  #pragma GCC diagnostic push
236  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
237 #endif // __GNUC__
238 // GeographicCoordinate
239 
240 // required double lat = 1 [(.dccl.field) = {
241 inline bool GeographicCoordinate::has_lat() const {
242  return (_has_bits_[0] & 0x00000001u) != 0;
243 }
244 inline void GeographicCoordinate::set_has_lat() {
245  _has_bits_[0] |= 0x00000001u;
246 }
247 inline void GeographicCoordinate::clear_has_lat() {
248  _has_bits_[0] &= ~0x00000001u;
249 }
251  lat_ = 0;
252  clear_has_lat();
253 }
254 inline double GeographicCoordinate::lat() const {
255  // @@protoc_insertion_point(field_get:jaiabot.protobuf.GeographicCoordinate.lat)
256  return lat_;
257 }
258 inline void GeographicCoordinate::set_lat(double value) {
259  set_has_lat();
260  lat_ = value;
261  // @@protoc_insertion_point(field_set:jaiabot.protobuf.GeographicCoordinate.lat)
262 }
263 
264 // required double lon = 2 [(.dccl.field) = {
265 inline bool GeographicCoordinate::has_lon() const {
266  return (_has_bits_[0] & 0x00000002u) != 0;
267 }
268 inline void GeographicCoordinate::set_has_lon() {
269  _has_bits_[0] |= 0x00000002u;
270 }
271 inline void GeographicCoordinate::clear_has_lon() {
272  _has_bits_[0] &= ~0x00000002u;
273 }
275  lon_ = 0;
276  clear_has_lon();
277 }
278 inline double GeographicCoordinate::lon() const {
279  // @@protoc_insertion_point(field_get:jaiabot.protobuf.GeographicCoordinate.lon)
280  return lon_;
281 }
282 inline void GeographicCoordinate::set_lon(double value) {
283  set_has_lon();
284  lon_ = value;
285  // @@protoc_insertion_point(field_set:jaiabot.protobuf.GeographicCoordinate.lon)
286 }
287 
288 #ifdef __GNUC__
289  #pragma GCC diagnostic pop
290 #endif // __GNUC__
291 
292 // @@protoc_insertion_point(namespace_scope)
293 
294 } // namespace protobuf
295 } // namespace jaiabot
296 
297 // @@protoc_insertion_point(global_scope)
298 
299 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
jaiabot::protobuf::GeographicCoordinate::ByteSizeLong
size_t ByteSizeLong() const final
jaiabot::protobuf::GeographicCoordinate::clear_lon
void clear_lon()
Definition: geographic_coordinate.pb.h:274
jaiabot::protobuf::GeographicCoordinate::InternalSerializeWithCachedSizesToArray
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic, ::google::protobuf::uint8 *target) const final
protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::TableStruct::aux
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
Definition: geographic_coordinate.pb.h:49
protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::TableStruct::schema
static const ::google::protobuf::internal::ParseTable schema[1]
Definition: geographic_coordinate.pb.h:50
jaiabot::protobuf::GeographicCoordinate::lat_dimension
boost::units::plane_angle_dimension lat_dimension
Definition: geographic_coordinate.pb.h:182
jaiabot::protobuf::GeographicCoordinate::internal_default_instance
static const GeographicCoordinate * internal_default_instance()
Definition: geographic_coordinate.pb.h:111
protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::TableStruct
Definition: geographic_coordinate.pb.h:47
jaiabot::protobuf::GeographicCoordinate::Swap
void Swap(GeographicCoordinate *other)
jaiabot::protobuf::GeographicCoordinate::set_lat_with_units
void set_lat_with_units(Quantity value_w_units)
Definition: geographic_coordinate.pb.h:187
jaiabot::protobuf::GeographicCoordinate::New
GeographicCoordinate * New(::google::protobuf::Arena *arena) const final
Definition: geographic_coordinate.pb.h:129
jaiabot::protobuf::GeographicCoordinate::set_lon_with_units
void set_lon_with_units(Quantity value_w_units)
Definition: geographic_coordinate.pb.h:202
jaiabot::protobuf::GeographicCoordinate::has_lon
bool has_lon() const
Definition: geographic_coordinate.pb.h:265
protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::TableStruct::entries
static const ::google::protobuf::internal::ParseTableField entries[]
Definition: geographic_coordinate.pb.h:48
jaiabot::protobuf::GeographicCoordinate::lon_dimension
boost::units::plane_angle_dimension lon_dimension
Definition: geographic_coordinate.pb.h:195
boost
Definition: xbee_driver.h:50
jaiabot::protobuf::GeographicCoordinate::operator=
GeographicCoordinate & operator=(const GeographicCoordinate &from)
Definition: geographic_coordinate.pb.h:81
jaiabot::protobuf::GeographicCoordinate::descriptor
static const ::google::protobuf::Descriptor * descriptor()
jaiabot::protobuf::GeographicCoordinate::kIndexInFileMessages
static constexpr int kIndexInFileMessages
Definition: geographic_coordinate.pb.h:115
jaiabot::protobuf::GeographicCoordinate::CopyFrom
void CopyFrom(const ::google::protobuf::Message &from) final
jaiabot::protobuf::GeographicCoordinate::lat
double lat() const
Definition: geographic_coordinate.pb.h:254
jaiabot::protobuf::GeographicCoordinate::mutable_unknown_fields
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: geographic_coordinate.pb.h:103
jaiabot::protobuf::GeographicCoordinate::~GeographicCoordinate
virtual ~GeographicCoordinate()
protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::TableStruct::offsets
static const ::google::protobuf::uint32 offsets[]
Definition: geographic_coordinate.pb.h:53
jaiabot::protobuf::GeographicCoordinate::lat_with_units
Quantity lat_with_units() const
Definition: geographic_coordinate.pb.h:191
jaiabot::protobuf::GeographicCoordinate::GetMetadata
::google::protobuf::Metadata GetMetadata() const final
jaiabot::protobuf::GeographicCoordinate::lat_with_units
boost::units::quantity< lat_unit, double > lat_with_units() const
Definition: geographic_coordinate.pb.h:194
jaiabot::protobuf::GeographicCoordinate::lon_unit
boost::units::unit< lon_dimension, boost::units::degree::system > lon_unit
Definition: geographic_coordinate.pb.h:199
jaiabot::protobuf::_GeographicCoordinate_default_instance_
GeographicCoordinateDefaultTypeInternal _GeographicCoordinate_default_instance_
protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::TableStruct::field_metadata
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
Definition: geographic_coordinate.pb.h:51
jaiabot::protobuf::GeographicCoordinate::set_lon
void set_lon(double value)
Definition: geographic_coordinate.pb.h:282
jaiabot::protobuf::GeographicCoordinate::lon_with_units
boost::units::quantity< lon_unit, double > lon_with_units() const
Definition: geographic_coordinate.pb.h:209
jaiabot::protobuf::GeographicCoordinate::Clear
void Clear() final
jaiabot::protobuf::GeographicCoordinate::MergePartialFromCodedStream
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final
jaiabot::protobuf::GeographicCoordinate::lat_unit
boost::units::unit< lat_dimension, boost::units::degree::system > lat_unit
Definition: geographic_coordinate.pb.h:184
protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::TableStruct::serialization_table
static const ::google::protobuf::internal::SerializationTable serialization_table[]
Definition: geographic_coordinate.pb.h:52
jaiabot::protobuf::GeographicCoordinate::lon_with_units
Quantity lon_with_units() const
Definition: geographic_coordinate.pb.h:206
jaiabot::protobuf::GeographicCoordinate
Definition: geographic_coordinate.pb.h:74
jaiabot::protobuf::GeographicCoordinate::kLatFieldNumber
static const int kLatFieldNumber
Definition: geographic_coordinate.pb.h:171
jaiabot::protobuf::GeographicCoordinate::set_lat
void set_lat(double value)
Definition: geographic_coordinate.pb.h:258
jaiabot::protobuf::GeographicCoordinate::unknown_fields
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: geographic_coordinate.pb.h:100
jaiabot
Definition: comms.h:30
jaiabot::protobuf::GeographicCoordinate::default_instance
static const GeographicCoordinate & default_instance()
jaiabot::protobuf::GeographicCoordinate::New
GeographicCoordinate * New() const final
Definition: geographic_coordinate.pb.h:125
protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
Definition: geographic_coordinate.pb.h:45
jaiabot::protobuf::GeographicCoordinate::GeographicCoordinate
GeographicCoordinate()
jaiabot::protobuf::GeographicCoordinate::swap
friend void swap(GeographicCoordinate &a, GeographicCoordinate &b)
Definition: geographic_coordinate.pb.h:119
jaiabot::protobuf::GeographicCoordinate::IsInitialized
bool IsInitialized() const final
jaiabot::protobuf::GeographicCoordinate::SerializeWithCachedSizes
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final
jaiabot::protobuf::GeographicCoordinate::lon
double lon() const
Definition: geographic_coordinate.pb.h:278
jaiabot::protobuf::GeographicCoordinate::has_lat
bool has_lat() const
Definition: geographic_coordinate.pb.h:241
jaiabot::protobuf::GeographicCoordinate::clear_lat
void clear_lat()
Definition: geographic_coordinate.pb.h:250
jaiabot::protobuf::GeographicCoordinate::MergeFrom
void MergeFrom(const ::google::protobuf::Message &from) final
jaiabot::protobuf::GeographicCoordinate::InitAsDefaultInstance
static void InitAsDefaultInstance()
protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::AddDescriptors
void AddDescriptors()
google
Definition: echo.pb.h:67
jaiabot::protobuf::GeographicCoordinate::kLonFieldNumber
static const int kLonFieldNumber
Definition: geographic_coordinate.pb.h:178
jaiabot::protobuf::GeographicCoordinate::GetCachedSize
int GetCachedSize() const final
Definition: geographic_coordinate.pb.h:146