Ignition Msgs

API Reference

5.6.0
air_pressure_sensor.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/air_pressure_sensor.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fair_5fpressure_5fsensor_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fair_5fpressure_5fsensor_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
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 3000000 < 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/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h>
32 #ifndef _MSC_VER
33 #pragma GCC system_header
34 #else
35 #pragma warning(push)
36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
37 #endif
38 #ifdef __linux__
39 #include <sys/sysmacros.h>
40 #endif
41 #include <memory>
42 #include <ignition/msgs/Export.hh>
43 // @@protoc_insertion_point(includes)
44 
45 namespace ignition {
46 namespace msgs {
47 
48 // Internal implementation detail -- do not call these.
52 
53 class AirPressureSensor;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE AirPressureSensor : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.AirPressureSensor) */ {
58  public:
60  virtual ~AirPressureSensor();
61 
63 
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const AirPressureSensor& default_instance();
71 
72  void Swap(AirPressureSensor* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline AirPressureSensor* New() const { return New(NULL); }
77 
78  AirPressureSensor* New(::google::protobuf::Arena* arena) const;
79  void CopyFrom(const ::google::protobuf::Message& from);
80  void MergeFrom(const ::google::protobuf::Message& from);
81  void CopyFrom(const AirPressureSensor& from);
82  void MergeFrom(const AirPressureSensor& from);
83  void Clear();
84  bool IsInitialized() const;
85 
86  int ByteSize() const;
87  bool MergePartialFromCodedStream(
88  ::google::protobuf::io::CodedInputStream* input);
89  void SerializeWithCachedSizes(
90  ::google::protobuf::io::CodedOutputStream* output) const;
91  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
92  bool deterministic, ::google::protobuf::uint8* output) const;
93  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
94  return InternalSerializeWithCachedSizesToArray(false, output);
95  }
96  int GetCachedSize() const { return _cached_size_; }
97  private:
98  void SharedCtor();
99  void SharedDtor();
100  void SetCachedSize(int size) const;
101  void InternalSwap(AirPressureSensor* other);
102  private:
103  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
104  return _internal_metadata_.arena();
105  }
106  inline void* MaybeArenaPtr() const {
107  return _internal_metadata_.raw_arena_ptr();
108  }
109  public:
110 
111  ::google::protobuf::Metadata GetMetadata() const;
112 
113  // nested types ----------------------------------------------------
114 
115  // accessors -------------------------------------------------------
116 
117  // optional .ignition.msgs.Header header = 1;
118  bool has_header() const;
119  void clear_header();
120  static const int kHeaderFieldNumber = 1;
121  const ::ignition::msgs::Header& header() const;
122  ::ignition::msgs::Header* mutable_header();
123  ::ignition::msgs::Header* release_header();
124  void set_allocated_header(::ignition::msgs::Header* header);
125 
126  // optional double reference_altitude = 2;
127  void clear_reference_altitude();
128  static const int kReferenceAltitudeFieldNumber = 2;
129  double reference_altitude() const;
130  void set_reference_altitude(double value);
131 
132  // optional .ignition.msgs.SensorNoise pressure_noise = 3;
133  bool has_pressure_noise() const;
134  void clear_pressure_noise();
135  static const int kPressureNoiseFieldNumber = 3;
136  const ::ignition::msgs::SensorNoise& pressure_noise() const;
137  ::ignition::msgs::SensorNoise* mutable_pressure_noise();
138  ::ignition::msgs::SensorNoise* release_pressure_noise();
139  void set_allocated_pressure_noise(::ignition::msgs::SensorNoise* pressure_noise);
140 
141  // @@protoc_insertion_point(class_scope:ignition.msgs.AirPressureSensor)
142  private:
143 
144  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
145  bool _is_default_instance_;
146  ::ignition::msgs::Header* header_;
147  double reference_altitude_;
148  ::ignition::msgs::SensorNoise* pressure_noise_;
149  mutable int _cached_size_;
150  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fair_5fpressure_5fsensor_2eproto();
153 
154  void InitAsDefaultInstance();
155  static AirPressureSensor* default_instance_;
156 };
157 // ===================================================================
158 
159 
160 // ===================================================================
161 
162 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
163 // AirPressureSensor
164 
165 // optional .ignition.msgs.Header header = 1;
166 inline bool AirPressureSensor::has_header() const {
167  return !_is_default_instance_ && header_ != NULL;
168 }
170  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
171  header_ = NULL;
172 }
173 inline const ::ignition::msgs::Header& AirPressureSensor::header() const {
174  // @@protoc_insertion_point(field_get:ignition.msgs.AirPressureSensor.header)
175  return header_ != NULL ? *header_ : *default_instance_->header_;
176 }
177 inline ::ignition::msgs::Header* AirPressureSensor::mutable_header() {
178 
179  if (header_ == NULL) {
180  header_ = new ::ignition::msgs::Header;
181  }
182  // @@protoc_insertion_point(field_mutable:ignition.msgs.AirPressureSensor.header)
183  return header_;
184 }
185 inline ::ignition::msgs::Header* AirPressureSensor::release_header() {
186  // @@protoc_insertion_point(field_release:ignition.msgs.AirPressureSensor.header)
187 
188  ::ignition::msgs::Header* temp = header_;
189  header_ = NULL;
190  return temp;
191 }
193  delete header_;
194  header_ = header;
195  if (header) {
196 
197  } else {
198 
199  }
200  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.AirPressureSensor.header)
201 }
202 
203 // optional double reference_altitude = 2;
205  reference_altitude_ = 0;
206 }
208  // @@protoc_insertion_point(field_get:ignition.msgs.AirPressureSensor.reference_altitude)
209  return reference_altitude_;
210 }
211 inline void AirPressureSensor::set_reference_altitude(double value) {
212 
213  reference_altitude_ = value;
214  // @@protoc_insertion_point(field_set:ignition.msgs.AirPressureSensor.reference_altitude)
215 }
216 
217 // optional .ignition.msgs.SensorNoise pressure_noise = 3;
219  return !_is_default_instance_ && pressure_noise_ != NULL;
220 }
222  if (GetArenaNoVirtual() == NULL && pressure_noise_ != NULL) delete pressure_noise_;
223  pressure_noise_ = NULL;
224 }
225 inline const ::ignition::msgs::SensorNoise& AirPressureSensor::pressure_noise() const {
226  // @@protoc_insertion_point(field_get:ignition.msgs.AirPressureSensor.pressure_noise)
227  return pressure_noise_ != NULL ? *pressure_noise_ : *default_instance_->pressure_noise_;
228 }
229 inline ::ignition::msgs::SensorNoise* AirPressureSensor::mutable_pressure_noise() {
230 
231  if (pressure_noise_ == NULL) {
232  pressure_noise_ = new ::ignition::msgs::SensorNoise;
233  }
234  // @@protoc_insertion_point(field_mutable:ignition.msgs.AirPressureSensor.pressure_noise)
235  return pressure_noise_;
236 }
237 inline ::ignition::msgs::SensorNoise* AirPressureSensor::release_pressure_noise() {
238  // @@protoc_insertion_point(field_release:ignition.msgs.AirPressureSensor.pressure_noise)
239 
240  ::ignition::msgs::SensorNoise* temp = pressure_noise_;
241  pressure_noise_ = NULL;
242  return temp;
243 }
245  delete pressure_noise_;
246  pressure_noise_ = pressure_noise;
247  if (pressure_noise) {
248 
249  } else {
250 
251  }
252  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.AirPressureSensor.pressure_noise)
253 }
254 
255 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
256 
261 // @@protoc_insertion_point(namespace_scope)
262 
263 } // namespace msgs
264 } // namespace ignition
265 
266 #ifdef _MSC_VER
267 #pragma warning(pop)
268 #endif
269 // @@protoc_insertion_point(global_scope)
270 
271 #endif // PROTOBUF_ignition_2fmsgs_2fair_5fpressure_5fsensor_2eproto__INCLUDED
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: air_pressure_sensor.pb.h:93
AirPressureSensor * New() const
Definition: air_pressure_sensor.pb.h:76
void protobuf_ShutdownFile_ignition_2fmsgs_2fair_5fpressure_5fsensor_2eproto()
::ignition::msgs::SensorNoise * mutable_pressure_noise()
Definition: air_pressure_sensor.pb.h:229
double reference_altitude() const
Definition: air_pressure_sensor.pb.h:207
bool has_pressure_noise() const
Definition: air_pressure_sensor.pb.h:218
const ::ignition::msgs::SensorNoise & pressure_noise() const
Definition: air_pressure_sensor.pb.h:225
void set_allocated_pressure_noise(::ignition::msgs::SensorNoise *pressure_noise)
Definition: air_pressure_sensor.pb.h:244
::ignition::msgs::Header * release_header()
Definition: air_pressure_sensor.pb.h:185
Definition: header.pb.h:161
::ignition::msgs::Header * mutable_header()
Definition: air_pressure_sensor.pb.h:177
Definition: sensor_noise.pb.h:79
void protobuf_AssignDesc_ignition_2fmsgs_2fair_5fpressure_5fsensor_2eproto()
Definition: air_pressure_sensor.pb.h:57
int GetCachedSize() const
Definition: air_pressure_sensor.pb.h:96
void clear_pressure_noise()
Definition: air_pressure_sensor.pb.h:221
::ignition::msgs::SensorNoise * release_pressure_noise()
Definition: air_pressure_sensor.pb.h:237
std::shared_ptr< AirPressureSensor > AirPressureSensorSharedPtr
Definition: air_pressure_sensor.pb.h:259
STL class.
std::shared_ptr< const AirPressureSensor > ConstAirPressureSensorSharedPtr
Definition: air_pressure_sensor.pb.h:260
std::unique_ptr< AirPressureSensor > AirPressureSensorUniquePtr
Definition: air_pressure_sensor.pb.h:257
std::unique_ptr< const AirPressureSensor > ConstAirPressureSensorUniquePtr
Definition: air_pressure_sensor.pb.h:258
const ::ignition::msgs::Header & header() const
Definition: air_pressure_sensor.pb.h:173
AirPressureSensor & operator=(const AirPressureSensor &from)
Definition: air_pressure_sensor.pb.h:64
bool has_header() const
Definition: air_pressure_sensor.pb.h:166
void clear_reference_altitude()
Definition: air_pressure_sensor.pb.h:204
void set_reference_altitude(double value)
Definition: air_pressure_sensor.pb.h:211
void clear_header()
Definition: air_pressure_sensor.pb.h:169
void set_allocated_header(::ignition::msgs::Header *header)
Definition: air_pressure_sensor.pb.h:192
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fair_5fpressure_5fsensor_2eproto()