JaiaBot 2.3.0
JaiaBot micro-AUV software
 
Loading...
Searching...
No Matches
pressure_temperature.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: jaiabot/messages/sensor/pressure_temperature.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fpressure_5ftemperature_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fpressure_5ftemperature_2eproto
6
7#include <limits>
8#include <string>
9
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3021000
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 3021012 < 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/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
24#include <google/protobuf/arena.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.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/generated_enum_reflection.h>
33#include <google/protobuf/unknown_field_set.h>
35#include <boost/units/quantity.hpp>
36#include <boost/units/absolute.hpp>
37#include <boost/units/dimensionless_type.hpp>
38#include <boost/units/make_scaled_unit.hpp>
39
40#include <boost/units/systems/temperature/celsius.hpp>
41
42#include <boost/units/systems/si.hpp>
43
44#include <boost/units/base_units/metric/bar.hpp>
45// @@protoc_insertion_point(includes)
46#include <google/protobuf/port_def.inc>
47#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fsensor_2fpressure_5ftemperature_2eproto
48PROTOBUF_NAMESPACE_OPEN
49namespace internal {
50class AnyMetadata;
51} // namespace internal
52PROTOBUF_NAMESPACE_CLOSE
53
54// Internal implementation detail -- do not use these members.
56 static const uint32_t offsets[];
57};
58extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fsensor_2fpressure_5ftemperature_2eproto;
59namespace jaiabot {
60namespace protobuf {
61class PressureAdjustedData;
62struct PressureAdjustedDataDefaultTypeInternal;
63extern PressureAdjustedDataDefaultTypeInternal _PressureAdjustedData_default_instance_;
64class PressureTemperatureData;
65struct PressureTemperatureDataDefaultTypeInternal;
66extern PressureTemperatureDataDefaultTypeInternal _PressureTemperatureData_default_instance_;
67} // namespace protobuf
68} // namespace jaiabot
69PROTOBUF_NAMESPACE_OPEN
70template<> ::jaiabot::protobuf::PressureAdjustedData* Arena::CreateMaybeMessage<::jaiabot::protobuf::PressureAdjustedData>(Arena*);
71template<> ::jaiabot::protobuf::PressureTemperatureData* Arena::CreateMaybeMessage<::jaiabot::protobuf::PressureTemperatureData>(Arena*);
72PROTOBUF_NAMESPACE_CLOSE
73namespace jaiabot {
74namespace protobuf {
75
76enum PressureSensorType : int {
77 BAR02 = 1,
78 BAR30 = 2
79};
80bool PressureSensorType_IsValid(int value);
84
85const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PressureSensorType_descriptor();
86template<typename T>
87inline const std::string& PressureSensorType_Name(T enum_t_value) {
88 static_assert(::std::is_same<T, PressureSensorType>::value ||
89 ::std::is_integral<T>::value,
90 "Incorrect type passed to function PressureSensorType_Name.");
91 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
92 PressureSensorType_descriptor(), enum_t_value);
93}
94inline bool PressureSensorType_Parse(
95 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PressureSensorType* value) {
96 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<PressureSensorType>(
97 PressureSensorType_descriptor(), name, value);
98}
99// ===================================================================
100
101class PressureTemperatureData final :
102 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.protobuf.PressureTemperatureData) */ {
103 public:
105 ~PressureTemperatureData() override;
106 explicit PROTOBUF_CONSTEXPR PressureTemperatureData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
107
111 *this = ::std::move(from);
112 }
113
115 CopyFrom(from);
116 return *this;
117 }
119 if (this == &from) return *this;
120 if (GetOwningArena() == from.GetOwningArena()
121 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
122 && GetOwningArena() != nullptr
123 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
124 ) {
125 InternalSwap(&from);
126 } else {
127 CopyFrom(from);
128 }
129 return *this;
130 }
131
132 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
133 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
134 }
135 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
136 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
137 }
138
139 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
140 return GetDescriptor();
141 }
142 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
143 return default_instance().GetMetadata().descriptor;
144 }
145 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
146 return default_instance().GetMetadata().reflection;
147 }
150 }
152 return reinterpret_cast<const PressureTemperatureData*>(
154 }
155 static constexpr int kIndexInFileMessages =
156 0;
157
159 a.Swap(&b);
160 }
161 inline void Swap(PressureTemperatureData* other) {
162 if (other == this) return;
163 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
164 if (GetOwningArena() != nullptr &&
165 GetOwningArena() == other->GetOwningArena()) {
166 #else // PROTOBUF_FORCE_COPY_IN_SWAP
167 if (GetOwningArena() == other->GetOwningArena()) {
168 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
169 InternalSwap(other);
170 } else {
171 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
172 }
173 }
175 if (other == this) return;
176 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
177 InternalSwap(other);
178 }
179
180 // implements Message ----------------------------------------------
181
182 PressureTemperatureData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
183 return CreateMaybeMessage<PressureTemperatureData>(arena);
184 }
185 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
186 void CopyFrom(const PressureTemperatureData& from);
187 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
188 void MergeFrom( const PressureTemperatureData& from) {
189 PressureTemperatureData::MergeImpl(*this, from);
190 }
191 private:
192 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
193 public:
194 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
195 bool IsInitialized() const final;
196
197 size_t ByteSizeLong() const final;
198 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
199 uint8_t* _InternalSerialize(
200 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
201 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
202
203 private:
204 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
205 void SharedDtor();
206 void SetCachedSize(int size) const final;
207 void InternalSwap(PressureTemperatureData* other);
208
209 private:
210 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
211 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
212 return "jaiabot.protobuf.PressureTemperatureData";
213 }
214 protected:
215 explicit PressureTemperatureData(::PROTOBUF_NAMESPACE_ID::Arena* arena,
216 bool is_message_owned = false);
217 public:
218
219 static const ClassData _class_data_;
220 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
221
222 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
223
224 // nested types ----------------------------------------------------
225
226 // accessors -------------------------------------------------------
227
228 enum : int {
232 };
233 // required double pressure_raw = 1 [(.dccl.field) = {
234 bool has_pressure_raw() const;
235 private:
236 bool _internal_has_pressure_raw() const;
237 public:
238 void clear_pressure_raw();
239 double pressure_raw() const;
240 void set_pressure_raw(double value);
241 private:
242 double _internal_pressure_raw() const;
243 void _internal_set_pressure_raw(double value);
244 public:
245
246 // optional double temperature = 2 [(.dccl.field) = {
247 bool has_temperature() const;
248 private:
249 bool _internal_has_temperature() const;
250 public:
251 void clear_temperature();
252 double temperature() const;
253 void set_temperature(double value);
254 private:
255 double _internal_temperature() const;
256 void _internal_set_temperature(double value);
257 public:
258
259 // required .jaiabot.protobuf.PressureSensorType sensor_type = 3;
260 bool has_sensor_type() const;
261 private:
262 bool _internal_has_sensor_type() const;
263 public:
264 void clear_sensor_type();
267 private:
268 ::jaiabot::protobuf::PressureSensorType _internal_sensor_type() const;
269 void _internal_set_sensor_type(::jaiabot::protobuf::PressureSensorType value);
270 public:
271
272 typedef boost::units::make_scaled_unit<boost::units::metric::bar_base_unit::unit_type , boost::units::scale<10, boost::units::static_rational<-1> > >::type pressure_raw_unit;
273
274 template<typename Quantity >
275 void set_pressure_raw_with_units(Quantity value_w_units)
276 { set_pressure_raw(boost::units::quantity<pressure_raw_unit,double >(value_w_units).value() ); };
277
278 template<typename Quantity >
279 Quantity pressure_raw_with_units() const
280 { return Quantity(pressure_raw() * pressure_raw_unit()); };
281
282 boost::units::quantity< pressure_raw_unit,double > pressure_raw_with_units() const
283 { return pressure_raw_with_units<boost::units::quantity< pressure_raw_unit,double > >(); };
284
285 typedef boost::units::temperature_dimension temperature_dimension;
286
287 typedef boost::units::absolute<boost::units::unit<temperature_dimension,boost::units::celsius::system> > temperature_unit;
288
289 template<typename Quantity >
290 void set_temperature_with_units(Quantity value_w_units)
291 { set_temperature(boost::units::quantity<temperature_unit,double >(value_w_units).value() ); };
292
293 template<typename Quantity >
294 Quantity temperature_with_units() const
295 { return Quantity(temperature() * temperature_unit()); };
296
297 boost::units::quantity< temperature_unit,double > temperature_with_units() const
298 { return temperature_with_units<boost::units::quantity< temperature_unit,double > >(); };
299
300 // @@protoc_insertion_point(class_scope:jaiabot.protobuf.PressureTemperatureData)
301 private:
302 class _Internal;
303
304 // helper for ByteSizeLong()
305 size_t RequiredFieldsByteSizeFallback() const;
306
307 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
308 typedef void InternalArenaConstructable_;
309 typedef void DestructorSkippable_;
310 struct Impl_ {
311 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
312 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
313 double pressure_raw_;
314 double temperature_;
315 int sensor_type_;
316 };
317 union { Impl_ _impl_; };
318 friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2fpressure_5ftemperature_2eproto;
319};
320// -------------------------------------------------------------------
321
322class PressureAdjustedData final :
323 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.protobuf.PressureAdjustedData) */ {
324 public:
325 inline PressureAdjustedData() : PressureAdjustedData(nullptr) {}
326 ~PressureAdjustedData() override;
327 explicit PROTOBUF_CONSTEXPR PressureAdjustedData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
328
329 PressureAdjustedData(const PressureAdjustedData& from);
330 PressureAdjustedData(PressureAdjustedData&& from) noexcept
331 : PressureAdjustedData() {
332 *this = ::std::move(from);
333 }
334
335 inline PressureAdjustedData& operator=(const PressureAdjustedData& from) {
336 CopyFrom(from);
337 return *this;
338 }
339 inline PressureAdjustedData& operator=(PressureAdjustedData&& from) noexcept {
340 if (this == &from) return *this;
341 if (GetOwningArena() == from.GetOwningArena()
342 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
343 && GetOwningArena() != nullptr
344 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
345 ) {
346 InternalSwap(&from);
347 } else {
348 CopyFrom(from);
349 }
350 return *this;
351 }
352
353 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
354 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
355 }
356 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
357 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
358 }
359
360 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
361 return GetDescriptor();
362 }
363 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
364 return default_instance().GetMetadata().descriptor;
365 }
366 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
367 return default_instance().GetMetadata().reflection;
368 }
369 static const PressureAdjustedData& default_instance() {
370 return *internal_default_instance();
371 }
372 static inline const PressureAdjustedData* internal_default_instance() {
373 return reinterpret_cast<const PressureAdjustedData*>(
375 }
376 static constexpr int kIndexInFileMessages =
377 1;
378
379 friend void swap(PressureAdjustedData& a, PressureAdjustedData& b) {
380 a.Swap(&b);
381 }
382 inline void Swap(PressureAdjustedData* other) {
383 if (other == this) return;
384 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
385 if (GetOwningArena() != nullptr &&
386 GetOwningArena() == other->GetOwningArena()) {
387 #else // PROTOBUF_FORCE_COPY_IN_SWAP
388 if (GetOwningArena() == other->GetOwningArena()) {
389 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
390 InternalSwap(other);
391 } else {
392 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
393 }
394 }
395 void UnsafeArenaSwap(PressureAdjustedData* other) {
396 if (other == this) return;
397 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
398 InternalSwap(other);
399 }
400
401 // implements Message ----------------------------------------------
402
403 PressureAdjustedData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
404 return CreateMaybeMessage<PressureAdjustedData>(arena);
405 }
406 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
407 void CopyFrom(const PressureAdjustedData& from);
408 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
409 void MergeFrom( const PressureAdjustedData& from) {
410 PressureAdjustedData::MergeImpl(*this, from);
411 }
412 private:
413 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
414 public:
415 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
416 bool IsInitialized() const final;
417
418 size_t ByteSizeLong() const final;
419 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
420 uint8_t* _InternalSerialize(
421 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
422 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
423
424 private:
425 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
426 void SharedDtor();
427 void SetCachedSize(int size) const final;
428 void InternalSwap(PressureAdjustedData* other);
429
430 private:
431 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
432 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
433 return "jaiabot.protobuf.PressureAdjustedData";
434 }
435 protected:
436 explicit PressureAdjustedData(::PROTOBUF_NAMESPACE_ID::Arena* arena,
437 bool is_message_owned = false);
438 public:
439
440 static const ClassData _class_data_;
441 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
442
443 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
444
445 // nested types ----------------------------------------------------
446
447 // accessors -------------------------------------------------------
448
449 enum : int {
450 kPressureRawFieldNumber = 1,
451 kPressureAdjustedFieldNumber = 2,
452 kPressureRawBeforeDiveFieldNumber = 3,
453 kSensorDepthFieldNumber = 4,
454 kDepthFieldNumber = 5,
455 };
456 // required double pressure_raw = 1 [(.dccl.field) = {
457 bool has_pressure_raw() const;
458 private:
459 bool _internal_has_pressure_raw() const;
460 public:
461 void clear_pressure_raw();
462 double pressure_raw() const;
463 void set_pressure_raw(double value);
464 private:
465 double _internal_pressure_raw() const;
466 void _internal_set_pressure_raw(double value);
467 public:
468
469 // optional double pressure_adjusted = 2 [(.dccl.field) = {
470 bool has_pressure_adjusted() const;
471 private:
472 bool _internal_has_pressure_adjusted() const;
473 public:
474 void clear_pressure_adjusted();
475 double pressure_adjusted() const;
476 void set_pressure_adjusted(double value);
477 private:
478 double _internal_pressure_adjusted() const;
479 void _internal_set_pressure_adjusted(double value);
480 public:
481
482 // optional double pressure_raw_before_dive = 3 [(.dccl.field) = {
483 bool has_pressure_raw_before_dive() const;
484 private:
485 bool _internal_has_pressure_raw_before_dive() const;
486 public:
487 void clear_pressure_raw_before_dive();
488 double pressure_raw_before_dive() const;
489 void set_pressure_raw_before_dive(double value);
490 private:
491 double _internal_pressure_raw_before_dive() const;
492 void _internal_set_pressure_raw_before_dive(double value);
493 public:
494
495 // optional double sensor_depth = 4 [(.dccl.field) = {
496 bool has_sensor_depth() const;
497 private:
498 bool _internal_has_sensor_depth() const;
499 public:
500 void clear_sensor_depth();
501 double sensor_depth() const;
502 void set_sensor_depth(double value);
503 private:
504 double _internal_sensor_depth() const;
505 void _internal_set_sensor_depth(double value);
506 public:
507
508 // optional double depth = 5 [(.dccl.field) = {
509 bool has_depth() const;
510 private:
511 bool _internal_has_depth() const;
512 public:
513 void clear_depth();
514 double depth() const;
515 void set_depth(double value);
516 private:
517 double _internal_depth() const;
518 void _internal_set_depth(double value);
519 public:
520
521 typedef boost::units::make_scaled_unit<boost::units::metric::bar_base_unit::unit_type , boost::units::scale<10, boost::units::static_rational<-1> > >::type pressure_raw_unit;
522
523 template<typename Quantity >
524 void set_pressure_raw_with_units(Quantity value_w_units)
525 { set_pressure_raw(boost::units::quantity<pressure_raw_unit,double >(value_w_units).value() ); };
526
527 template<typename Quantity >
528 Quantity pressure_raw_with_units() const
529 { return Quantity(pressure_raw() * pressure_raw_unit()); };
530
531 boost::units::quantity< pressure_raw_unit,double > pressure_raw_with_units() const
532 { return pressure_raw_with_units<boost::units::quantity< pressure_raw_unit,double > >(); };
533
534 typedef boost::units::make_scaled_unit<boost::units::metric::bar_base_unit::unit_type , boost::units::scale<10, boost::units::static_rational<-1> > >::type pressure_adjusted_unit;
535
536 template<typename Quantity >
537 void set_pressure_adjusted_with_units(Quantity value_w_units)
538 { set_pressure_adjusted(boost::units::quantity<pressure_adjusted_unit,double >(value_w_units).value() ); };
539
540 template<typename Quantity >
541 Quantity pressure_adjusted_with_units() const
542 { return Quantity(pressure_adjusted() * pressure_adjusted_unit()); };
543
544 boost::units::quantity< pressure_adjusted_unit,double > pressure_adjusted_with_units() const
545 { return pressure_adjusted_with_units<boost::units::quantity< pressure_adjusted_unit,double > >(); };
546
547 typedef boost::units::make_scaled_unit<boost::units::metric::bar_base_unit::unit_type , boost::units::scale<10, boost::units::static_rational<-1> > >::type pressure_raw_before_dive_unit;
548
549 template<typename Quantity >
550 void set_pressure_raw_before_dive_with_units(Quantity value_w_units)
551 { set_pressure_raw_before_dive(boost::units::quantity<pressure_raw_before_dive_unit,double >(value_w_units).value() ); };
552
553 template<typename Quantity >
554 Quantity pressure_raw_before_dive_with_units() const
555 { return Quantity(pressure_raw_before_dive() * pressure_raw_before_dive_unit()); };
556
557 boost::units::quantity< pressure_raw_before_dive_unit,double > pressure_raw_before_dive_with_units() const
558 { return pressure_raw_before_dive_with_units<boost::units::quantity< pressure_raw_before_dive_unit,double > >(); };
559
560 typedef boost::units::length_dimension sensor_depth_dimension;
561
562 typedef boost::units::unit<sensor_depth_dimension,boost::units::si::system> sensor_depth_unit;
563
564 template<typename Quantity >
565 void set_sensor_depth_with_units(Quantity value_w_units)
566 { set_sensor_depth(boost::units::quantity<sensor_depth_unit,double >(value_w_units).value() ); };
567
568 template<typename Quantity >
569 Quantity sensor_depth_with_units() const
570 { return Quantity(sensor_depth() * sensor_depth_unit()); };
571
572 boost::units::quantity< sensor_depth_unit,double > sensor_depth_with_units() const
573 { return sensor_depth_with_units<boost::units::quantity< sensor_depth_unit,double > >(); };
574
575 typedef boost::units::length_dimension depth_dimension;
576
577 typedef boost::units::unit<depth_dimension,boost::units::si::system> depth_unit;
578
579 template<typename Quantity >
580 void set_depth_with_units(Quantity value_w_units)
581 { set_depth(boost::units::quantity<depth_unit,double >(value_w_units).value() ); };
582
583 template<typename Quantity >
584 Quantity depth_with_units() const
585 { return Quantity(depth() * depth_unit()); };
586
587 boost::units::quantity< depth_unit,double > depth_with_units() const
588 { return depth_with_units<boost::units::quantity< depth_unit,double > >(); };
589
590 // @@protoc_insertion_point(class_scope:jaiabot.protobuf.PressureAdjustedData)
591 private:
592 class _Internal;
593
594 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
595 typedef void InternalArenaConstructable_;
596 typedef void DestructorSkippable_;
597 struct Impl_ {
598 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
599 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
600 double pressure_raw_;
601 double pressure_adjusted_;
602 double pressure_raw_before_dive_;
603 double sensor_depth_;
604 double depth_;
605 };
606 union { Impl_ _impl_; };
607 friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2fpressure_5ftemperature_2eproto;
608};
609// ===================================================================
610
611
612// ===================================================================
613
614#ifdef __GNUC__
615 #pragma GCC diagnostic push
616 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
617#endif // __GNUC__
618// PressureTemperatureData
619
620// required double pressure_raw = 1 [(.dccl.field) = {
621inline bool PressureTemperatureData::_internal_has_pressure_raw() const {
622 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
623 return value;
624}
625inline bool PressureTemperatureData::has_pressure_raw() const {
626 return _internal_has_pressure_raw();
627}
628inline void PressureTemperatureData::clear_pressure_raw() {
629 _impl_.pressure_raw_ = 0;
630 _impl_._has_bits_[0] &= ~0x00000001u;
631}
632inline double PressureTemperatureData::_internal_pressure_raw() const {
633 return _impl_.pressure_raw_;
634}
635inline double PressureTemperatureData::pressure_raw() const {
636 // @@protoc_insertion_point(field_get:jaiabot.protobuf.PressureTemperatureData.pressure_raw)
637 return _internal_pressure_raw();
638}
639inline void PressureTemperatureData::_internal_set_pressure_raw(double value) {
640 _impl_._has_bits_[0] |= 0x00000001u;
641 _impl_.pressure_raw_ = value;
642}
643inline void PressureTemperatureData::set_pressure_raw(double value) {
644 _internal_set_pressure_raw(value);
645 // @@protoc_insertion_point(field_set:jaiabot.protobuf.PressureTemperatureData.pressure_raw)
646}
647
648// optional double temperature = 2 [(.dccl.field) = {
649inline bool PressureTemperatureData::_internal_has_temperature() const {
650 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
651 return value;
652}
653inline bool PressureTemperatureData::has_temperature() const {
654 return _internal_has_temperature();
655}
656inline void PressureTemperatureData::clear_temperature() {
657 _impl_.temperature_ = 0;
658 _impl_._has_bits_[0] &= ~0x00000002u;
659}
660inline double PressureTemperatureData::_internal_temperature() const {
661 return _impl_.temperature_;
662}
663inline double PressureTemperatureData::temperature() const {
664 // @@protoc_insertion_point(field_get:jaiabot.protobuf.PressureTemperatureData.temperature)
665 return _internal_temperature();
666}
667inline void PressureTemperatureData::_internal_set_temperature(double value) {
668 _impl_._has_bits_[0] |= 0x00000002u;
669 _impl_.temperature_ = value;
670}
671inline void PressureTemperatureData::set_temperature(double value) {
672 _internal_set_temperature(value);
673 // @@protoc_insertion_point(field_set:jaiabot.protobuf.PressureTemperatureData.temperature)
674}
675
676// required .jaiabot.protobuf.PressureSensorType sensor_type = 3;
677inline bool PressureTemperatureData::_internal_has_sensor_type() const {
678 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
679 return value;
680}
681inline bool PressureTemperatureData::has_sensor_type() const {
682 return _internal_has_sensor_type();
683}
684inline void PressureTemperatureData::clear_sensor_type() {
685 _impl_.sensor_type_ = 1;
686 _impl_._has_bits_[0] &= ~0x00000004u;
687}
688inline ::jaiabot::protobuf::PressureSensorType PressureTemperatureData::_internal_sensor_type() const {
689 return static_cast< ::jaiabot::protobuf::PressureSensorType >(_impl_.sensor_type_);
690}
691inline ::jaiabot::protobuf::PressureSensorType PressureTemperatureData::sensor_type() const {
692 // @@protoc_insertion_point(field_get:jaiabot.protobuf.PressureTemperatureData.sensor_type)
693 return _internal_sensor_type();
694}
695inline void PressureTemperatureData::_internal_set_sensor_type(::jaiabot::protobuf::PressureSensorType value) {
697 _impl_._has_bits_[0] |= 0x00000004u;
698 _impl_.sensor_type_ = value;
699}
700inline void PressureTemperatureData::set_sensor_type(::jaiabot::protobuf::PressureSensorType value) {
701 _internal_set_sensor_type(value);
702 // @@protoc_insertion_point(field_set:jaiabot.protobuf.PressureTemperatureData.sensor_type)
703}
704
705// -------------------------------------------------------------------
706
707// PressureAdjustedData
708
709// required double pressure_raw = 1 [(.dccl.field) = {
710inline bool PressureAdjustedData::_internal_has_pressure_raw() const {
711 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
712 return value;
713}
714inline bool PressureAdjustedData::has_pressure_raw() const {
715 return _internal_has_pressure_raw();
716}
717inline void PressureAdjustedData::clear_pressure_raw() {
718 _impl_.pressure_raw_ = 0;
719 _impl_._has_bits_[0] &= ~0x00000001u;
720}
721inline double PressureAdjustedData::_internal_pressure_raw() const {
722 return _impl_.pressure_raw_;
723}
724inline double PressureAdjustedData::pressure_raw() const {
725 // @@protoc_insertion_point(field_get:jaiabot.protobuf.PressureAdjustedData.pressure_raw)
726 return _internal_pressure_raw();
727}
728inline void PressureAdjustedData::_internal_set_pressure_raw(double value) {
729 _impl_._has_bits_[0] |= 0x00000001u;
730 _impl_.pressure_raw_ = value;
731}
732inline void PressureAdjustedData::set_pressure_raw(double value) {
733 _internal_set_pressure_raw(value);
734 // @@protoc_insertion_point(field_set:jaiabot.protobuf.PressureAdjustedData.pressure_raw)
735}
736
737// optional double pressure_adjusted = 2 [(.dccl.field) = {
738inline bool PressureAdjustedData::_internal_has_pressure_adjusted() const {
739 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
740 return value;
741}
742inline bool PressureAdjustedData::has_pressure_adjusted() const {
743 return _internal_has_pressure_adjusted();
744}
745inline void PressureAdjustedData::clear_pressure_adjusted() {
746 _impl_.pressure_adjusted_ = 0;
747 _impl_._has_bits_[0] &= ~0x00000002u;
748}
749inline double PressureAdjustedData::_internal_pressure_adjusted() const {
750 return _impl_.pressure_adjusted_;
751}
752inline double PressureAdjustedData::pressure_adjusted() const {
753 // @@protoc_insertion_point(field_get:jaiabot.protobuf.PressureAdjustedData.pressure_adjusted)
754 return _internal_pressure_adjusted();
755}
756inline void PressureAdjustedData::_internal_set_pressure_adjusted(double value) {
757 _impl_._has_bits_[0] |= 0x00000002u;
758 _impl_.pressure_adjusted_ = value;
759}
760inline void PressureAdjustedData::set_pressure_adjusted(double value) {
761 _internal_set_pressure_adjusted(value);
762 // @@protoc_insertion_point(field_set:jaiabot.protobuf.PressureAdjustedData.pressure_adjusted)
763}
764
765// optional double pressure_raw_before_dive = 3 [(.dccl.field) = {
766inline bool PressureAdjustedData::_internal_has_pressure_raw_before_dive() const {
767 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
768 return value;
769}
770inline bool PressureAdjustedData::has_pressure_raw_before_dive() const {
771 return _internal_has_pressure_raw_before_dive();
772}
773inline void PressureAdjustedData::clear_pressure_raw_before_dive() {
774 _impl_.pressure_raw_before_dive_ = 0;
775 _impl_._has_bits_[0] &= ~0x00000004u;
776}
777inline double PressureAdjustedData::_internal_pressure_raw_before_dive() const {
778 return _impl_.pressure_raw_before_dive_;
779}
780inline double PressureAdjustedData::pressure_raw_before_dive() const {
781 // @@protoc_insertion_point(field_get:jaiabot.protobuf.PressureAdjustedData.pressure_raw_before_dive)
782 return _internal_pressure_raw_before_dive();
783}
784inline void PressureAdjustedData::_internal_set_pressure_raw_before_dive(double value) {
785 _impl_._has_bits_[0] |= 0x00000004u;
786 _impl_.pressure_raw_before_dive_ = value;
787}
788inline void PressureAdjustedData::set_pressure_raw_before_dive(double value) {
789 _internal_set_pressure_raw_before_dive(value);
790 // @@protoc_insertion_point(field_set:jaiabot.protobuf.PressureAdjustedData.pressure_raw_before_dive)
791}
792
793// optional double sensor_depth = 4 [(.dccl.field) = {
794inline bool PressureAdjustedData::_internal_has_sensor_depth() const {
795 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
796 return value;
797}
798inline bool PressureAdjustedData::has_sensor_depth() const {
799 return _internal_has_sensor_depth();
800}
801inline void PressureAdjustedData::clear_sensor_depth() {
802 _impl_.sensor_depth_ = 0;
803 _impl_._has_bits_[0] &= ~0x00000008u;
804}
805inline double PressureAdjustedData::_internal_sensor_depth() const {
806 return _impl_.sensor_depth_;
807}
808inline double PressureAdjustedData::sensor_depth() const {
809 // @@protoc_insertion_point(field_get:jaiabot.protobuf.PressureAdjustedData.sensor_depth)
810 return _internal_sensor_depth();
811}
812inline void PressureAdjustedData::_internal_set_sensor_depth(double value) {
813 _impl_._has_bits_[0] |= 0x00000008u;
814 _impl_.sensor_depth_ = value;
815}
816inline void PressureAdjustedData::set_sensor_depth(double value) {
817 _internal_set_sensor_depth(value);
818 // @@protoc_insertion_point(field_set:jaiabot.protobuf.PressureAdjustedData.sensor_depth)
819}
820
821// optional double depth = 5 [(.dccl.field) = {
822inline bool PressureAdjustedData::_internal_has_depth() const {
823 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
824 return value;
825}
826inline bool PressureAdjustedData::has_depth() const {
827 return _internal_has_depth();
828}
829inline void PressureAdjustedData::clear_depth() {
830 _impl_.depth_ = 0;
831 _impl_._has_bits_[0] &= ~0x00000010u;
832}
833inline double PressureAdjustedData::_internal_depth() const {
834 return _impl_.depth_;
835}
836inline double PressureAdjustedData::depth() const {
837 // @@protoc_insertion_point(field_get:jaiabot.protobuf.PressureAdjustedData.depth)
838 return _internal_depth();
839}
840inline void PressureAdjustedData::_internal_set_depth(double value) {
841 _impl_._has_bits_[0] |= 0x00000010u;
842 _impl_.depth_ = value;
843}
844inline void PressureAdjustedData::set_depth(double value) {
845 _internal_set_depth(value);
846 // @@protoc_insertion_point(field_set:jaiabot.protobuf.PressureAdjustedData.depth)
847}
848
849#ifdef __GNUC__
850 #pragma GCC diagnostic pop
851#endif // __GNUC__
852// -------------------------------------------------------------------
853
854
855// @@protoc_insertion_point(namespace_scope)
856
857} // namespace protobuf
858} // namespace jaiabot
859
860PROTOBUF_NAMESPACE_OPEN
861
862template <> struct is_proto_enum< ::jaiabot::protobuf::PressureSensorType> : ::std::true_type {};
863template <>
865 return ::jaiabot::protobuf::PressureSensorType_descriptor();
866}
867
868PROTOBUF_NAMESPACE_CLOSE
869
870// @@protoc_insertion_point(global_scope)
871
872#include <google/protobuf/port_undef.inc>
873#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fpressure_5ftemperature_2eproto
void CopyFrom(const PressureTemperatureData &from)
void Swap(PressureTemperatureData *other)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
PressureTemperatureData & operator=(const PressureTemperatureData &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
::jaiabot::protobuf::PressureSensorType sensor_type() const
friend void swap(PressureTemperatureData &a, PressureTemperatureData &b)
boost::units::temperature_dimension temperature_dimension
void MergeFrom(const PressureTemperatureData &from)
void UnsafeArenaSwap(PressureTemperatureData *other)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
boost::units::make_scaled_unit< boost::units::metric::bar_base_unit::unit_type, boost::units::scale< 10, boost::units::static_rational<-1 > > >::type pressure_raw_unit
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void set_sensor_type(::jaiabot::protobuf::PressureSensorType value)
void set_pressure_raw_with_units(Quantity value_w_units)
void set_temperature_with_units(Quantity value_w_units)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
PressureTemperatureData * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
boost::units::absolute< boost::units::unit< temperature_dimension, boost::units::celsius::system > > temperature_unit
static const PressureTemperatureData & default_instance()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const PressureTemperatureData * internal_default_instance()
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
constexpr goby::middleware::Group pressure_adjusted
Definition groups.h:44
constexpr PressureSensorType PressureSensorType_MAX
bool PressureSensorType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PressureSensorType *value)
constexpr PressureSensorType PressureSensorType_MIN
bool PressureSensorType_IsValid(int value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * PressureSensorType_descriptor()
const std::string & PressureSensorType_Name(T enum_t_value)
PressureTemperatureDataDefaultTypeInternal _PressureTemperatureData_default_instance_
PressureAdjustedDataDefaultTypeInternal _PressureAdjustedData_default_instance_
constexpr int PressureSensorType_ARRAYSIZE
const EnumDescriptor * GetEnumDescriptor< ::jaiabot::protobuf::PressureSensorType >()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fsensor_2fpressure_5ftemperature_2eproto