4 #ifndef PROTOBUF_INCLUDED_jaiabot_2fmessages_2fpressure_5ftemperature_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2fpressure_5ftemperature_2eproto
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "dccl/option_extensions.pb.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>
40 #include <boost/units/systems/temperature/celsius.hpp>
42 #include <boost/units/systems/si.hpp>
44 #include <boost/units/base_units/metric/bar.hpp>
46 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2fpressure_5ftemperature_2eproto
51 static const ::google::protobuf::internal::ParseTableField
entries[];
52 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
53 static const ::google::protobuf::internal::ParseTable
schema[2];
56 static const ::google::protobuf::uint32
offsets[];
62 class PressureAdjustedData;
63 class PressureAdjustedDataDefaultTypeInternal;
65 class PressureTemperatureData;
66 class PressureTemperatureDataDefaultTypeInternal;
90 return ::google::protobuf::internal::NameOfEnum(
95 return ::google::protobuf::internal::ParseNamedEnum<PressureSensorType>(
114 *
this = ::std::move(from);
118 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
119 if (
this != &from) InternalSwap(&from);
127 return _internal_metadata_.unknown_fields();
130 return _internal_metadata_.mutable_unknown_fields();
133 static const ::google::protobuf::Descriptor*
descriptor();
152 return CreateMaybeMessage<PressureTemperatureData>(NULL);
156 return CreateMaybeMessage<PressureTemperatureData>(arena);
158 void CopyFrom(const ::google::protobuf::Message& from)
final;
159 void MergeFrom(const ::google::protobuf::Message& from)
final;
167 ::
google::protobuf::io::CodedInputStream* input) final;
169 ::
google::protobuf::io::CodedOutputStream* output) const final;
171 bool deterministic, ::
google::protobuf::uint8* target) const final;
177 void SetCachedSize(
int size)
const final;
180 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
183 inline void* MaybeArenaPtr()
const {
188 ::google::protobuf::Metadata
GetMetadata() const final;
217 template<typename Quantity >
219 {
set_pressure_raw(boost::units::quantity<pressure_raw_unit,double >(value_w_units).value() ); };
221 template<
typename Quantity >
226 {
return pressure_raw_with_units<boost::units::quantity< pressure_raw_unit,double > >(); };
230 typedef boost::units::absolute<boost::units::unit<temperature_dimension,boost::units::celsius::system> >
temperature_unit;
232 template<
typename Quantity >
234 {
set_temperature(boost::units::quantity<temperature_unit,double >(value_w_units).value() ); };
236 template<
typename Quantity >
241 {
return temperature_with_units<boost::units::quantity< temperature_unit,double > >(); };
245 void set_has_pressure_raw();
246 void clear_has_pressure_raw();
247 void set_has_temperature();
248 void clear_has_temperature();
249 void set_has_sensor_type();
250 void clear_has_sensor_type();
253 size_t RequiredFieldsByteSizeFallback()
const;
255 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
256 ::google::protobuf::internal::HasBits<1> _has_bits_;
257 mutable ::google::protobuf::internal::CachedSize _cached_size_;
258 double pressure_raw_;
261 friend struct ::protobuf_jaiabot_2fmessages_2fpressure_5ftemperature_2eproto::TableStruct;
279 *
this = ::std::move(from);
283 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
284 if (
this != &from) InternalSwap(&from);
292 return _internal_metadata_.unknown_fields();
295 return _internal_metadata_.mutable_unknown_fields();
298 static const ::google::protobuf::Descriptor*
descriptor();
317 return CreateMaybeMessage<PressureAdjustedData>(NULL);
321 return CreateMaybeMessage<PressureAdjustedData>(arena);
323 void CopyFrom(const ::google::protobuf::Message& from)
final;
324 void MergeFrom(const ::google::protobuf::Message& from)
final;
332 ::
google::protobuf::io::CodedInputStream* input) final;
334 ::
google::protobuf::io::CodedOutputStream* output) const final;
336 bool deterministic, ::
google::protobuf::uint8* target) const final;
342 void SetCachedSize(
int size)
const final;
345 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
348 inline void* MaybeArenaPtr()
const {
353 ::google::protobuf::Metadata
GetMetadata() const final;
389 template<typename Quantity >
391 {
set_pressure_raw(boost::units::quantity<pressure_raw_unit,double >(value_w_units).value() ); };
393 template<
typename Quantity >
398 {
return pressure_raw_with_units<boost::units::quantity< pressure_raw_unit,double > >(); };
400 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;
402 template<
typename Quantity >
404 {
set_pressure_adjusted(boost::units::quantity<pressure_adjusted_unit,double >(value_w_units).value() ); };
406 template<
typename Quantity >
411 {
return pressure_adjusted_with_units<boost::units::quantity< pressure_adjusted_unit,double > >(); };
413 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;
415 template<
typename Quantity >
419 template<
typename Quantity >
424 {
return pressure_raw_before_dive_with_units<boost::units::quantity< pressure_raw_before_dive_unit,double > >(); };
430 template<
typename Quantity >
432 {
set_calculated_depth(boost::units::quantity<calculated_depth_unit,double >(value_w_units).value() ); };
434 template<
typename Quantity >
439 {
return calculated_depth_with_units<boost::units::quantity< calculated_depth_unit,double > >(); };
443 void set_has_pressure_raw();
444 void clear_has_pressure_raw();
445 void set_has_pressure_adjusted();
446 void clear_has_pressure_adjusted();
447 void set_has_pressure_raw_before_dive();
448 void clear_has_pressure_raw_before_dive();
449 void set_has_calculated_depth();
450 void clear_has_calculated_depth();
452 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
453 ::google::protobuf::internal::HasBits<1> _has_bits_;
454 mutable ::google::protobuf::internal::CachedSize _cached_size_;
455 double pressure_raw_;
456 double pressure_adjusted_;
457 double pressure_raw_before_dive_;
458 double calculated_depth_;
459 friend struct ::protobuf_jaiabot_2fmessages_2fpressure_5ftemperature_2eproto::TableStruct;
467 #pragma GCC diagnostic push
468 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
474 return (_has_bits_[0] & 0x00000001u) != 0;
476 inline void PressureTemperatureData::set_has_pressure_raw() {
477 _has_bits_[0] |= 0x00000001u;
479 inline void PressureTemperatureData::clear_has_pressure_raw() {
480 _has_bits_[0] &= ~0x00000001u;
484 clear_has_pressure_raw();
488 return pressure_raw_;
491 set_has_pressure_raw();
492 pressure_raw_ = value;
498 return (_has_bits_[0] & 0x00000002u) != 0;
500 inline void PressureTemperatureData::set_has_temperature() {
501 _has_bits_[0] |= 0x00000002u;
503 inline void PressureTemperatureData::clear_has_temperature() {
504 _has_bits_[0] &= ~0x00000002u;
508 clear_has_temperature();
515 set_has_temperature();
516 temperature_ = value;
522 return (_has_bits_[0] & 0x00000004u) != 0;
524 inline void PressureTemperatureData::set_has_sensor_type() {
525 _has_bits_[0] |= 0x00000004u;
527 inline void PressureTemperatureData::clear_has_sensor_type() {
528 _has_bits_[0] &= ~0x00000004u;
532 clear_has_sensor_type();
540 set_has_sensor_type();
541 sensor_type_ = value;
551 return (_has_bits_[0] & 0x00000001u) != 0;
553 inline void PressureAdjustedData::set_has_pressure_raw() {
554 _has_bits_[0] |= 0x00000001u;
556 inline void PressureAdjustedData::clear_has_pressure_raw() {
557 _has_bits_[0] &= ~0x00000001u;
561 clear_has_pressure_raw();
565 return pressure_raw_;
568 set_has_pressure_raw();
569 pressure_raw_ = value;
575 return (_has_bits_[0] & 0x00000002u) != 0;
577 inline void PressureAdjustedData::set_has_pressure_adjusted() {
578 _has_bits_[0] |= 0x00000002u;
580 inline void PressureAdjustedData::clear_has_pressure_adjusted() {
581 _has_bits_[0] &= ~0x00000002u;
584 pressure_adjusted_ = 0;
585 clear_has_pressure_adjusted();
589 return pressure_adjusted_;
592 set_has_pressure_adjusted();
593 pressure_adjusted_ = value;
599 return (_has_bits_[0] & 0x00000004u) != 0;
601 inline void PressureAdjustedData::set_has_pressure_raw_before_dive() {
602 _has_bits_[0] |= 0x00000004u;
604 inline void PressureAdjustedData::clear_has_pressure_raw_before_dive() {
605 _has_bits_[0] &= ~0x00000004u;
608 pressure_raw_before_dive_ = 0;
609 clear_has_pressure_raw_before_dive();
613 return pressure_raw_before_dive_;
616 set_has_pressure_raw_before_dive();
617 pressure_raw_before_dive_ = value;
623 return (_has_bits_[0] & 0x00000008u) != 0;
625 inline void PressureAdjustedData::set_has_calculated_depth() {
626 _has_bits_[0] |= 0x00000008u;
628 inline void PressureAdjustedData::clear_has_calculated_depth() {
629 _has_bits_[0] &= ~0x00000008u;
632 calculated_depth_ = 0;
633 clear_has_calculated_depth();
637 return calculated_depth_;
640 set_has_calculated_depth();
641 calculated_depth_ = value;
646 #pragma GCC diagnostic pop
661 inline const EnumDescriptor* GetEnumDescriptor< ::jaiabot::protobuf::PressureSensorType>() {
670 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fpressure_5ftemperature_2eproto