Ignition Msgs

API Reference

8.0.0~pre1
cessna.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/cessna.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fcessna_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fcessna_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>
31 #ifndef _MSC_VER
32 #pragma GCC system_header
33 #else
34 #pragma warning(push)
35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
36 #endif
37 #ifdef __linux__
38 #include <sys/sysmacros.h>
39 #endif
40 #include <memory>
41 #include <ignition/msgs/Export.hh>
42 // @@protoc_insertion_point(includes)
43 
44 namespace ignition {
45 namespace msgs {
46 
47 // Internal implementation detail -- do not call these.
48 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fcessna_2eproto();
51 
52 class Cessna;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE Cessna : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Cessna) */ {
57  public:
58  Cessna();
59  virtual ~Cessna();
60 
61  Cessna(const Cessna& from);
62 
63  inline Cessna& operator=(const Cessna& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const Cessna& default_instance();
70 
71  void Swap(Cessna* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline Cessna* New() const { return New(NULL); }
76 
77  Cessna* New(::google::protobuf::Arena* arena) const;
78  void CopyFrom(const ::google::protobuf::Message& from);
79  void MergeFrom(const ::google::protobuf::Message& from);
80  void CopyFrom(const Cessna& from);
81  void MergeFrom(const Cessna& from);
82  void Clear();
83  bool IsInitialized() const;
84 
85  int ByteSize() const;
86  bool MergePartialFromCodedStream(
87  ::google::protobuf::io::CodedInputStream* input);
88  void SerializeWithCachedSizes(
89  ::google::protobuf::io::CodedOutputStream* output) const;
90  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
91  bool deterministic, ::google::protobuf::uint8* output) const;
92  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
93  return InternalSerializeWithCachedSizesToArray(false, output);
94  }
95  int GetCachedSize() const { return _cached_size_; }
96  private:
97  void SharedCtor();
98  void SharedDtor();
99  void SetCachedSize(int size) const;
100  void InternalSwap(Cessna* other);
101  private:
102  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
103  return _internal_metadata_.arena();
104  }
105  inline void* MaybeArenaPtr() const {
106  return _internal_metadata_.raw_arena_ptr();
107  }
108  public:
109 
110  ::google::protobuf::Metadata GetMetadata() const;
111 
112  // nested types ----------------------------------------------------
113 
114  // accessors -------------------------------------------------------
115 
116  // optional .ignition.msgs.Header header = 1;
117  bool has_header() const;
118  void clear_header();
119  static const int kHeaderFieldNumber = 1;
120  const ::ignition::msgs::Header& header() const;
121  ::ignition::msgs::Header* mutable_header();
122  ::ignition::msgs::Header* release_header();
123  void set_allocated_header(::ignition::msgs::Header* header);
124 
125  // optional float propeller_speed = 2;
126  void clear_propeller_speed();
127  static const int kPropellerSpeedFieldNumber = 2;
128  float propeller_speed() const;
129  void set_propeller_speed(float value);
130 
131  // optional float left_aileron = 3;
132  void clear_left_aileron();
133  static const int kLeftAileronFieldNumber = 3;
134  float left_aileron() const;
135  void set_left_aileron(float value);
136 
137  // optional float left_flap = 4;
138  void clear_left_flap();
139  static const int kLeftFlapFieldNumber = 4;
140  float left_flap() const;
141  void set_left_flap(float value);
142 
143  // optional float right_aileron = 5;
144  void clear_right_aileron();
145  static const int kRightAileronFieldNumber = 5;
146  float right_aileron() const;
147  void set_right_aileron(float value);
148 
149  // optional float right_flap = 6;
150  void clear_right_flap();
151  static const int kRightFlapFieldNumber = 6;
152  float right_flap() const;
153  void set_right_flap(float value);
154 
155  // optional float elevators = 7;
156  void clear_elevators();
157  static const int kElevatorsFieldNumber = 7;
158  float elevators() const;
159  void set_elevators(float value);
160 
161  // optional float rudder = 8;
162  void clear_rudder();
163  static const int kRudderFieldNumber = 8;
164  float rudder() const;
165  void set_rudder(float value);
166 
167  // optional float cmd_propeller_speed = 9;
168  void clear_cmd_propeller_speed();
169  static const int kCmdPropellerSpeedFieldNumber = 9;
170  float cmd_propeller_speed() const;
171  void set_cmd_propeller_speed(float value);
172 
173  // optional float cmd_left_aileron = 10;
174  void clear_cmd_left_aileron();
175  static const int kCmdLeftAileronFieldNumber = 10;
176  float cmd_left_aileron() const;
177  void set_cmd_left_aileron(float value);
178 
179  // optional float cmd_left_flap = 11;
180  void clear_cmd_left_flap();
181  static const int kCmdLeftFlapFieldNumber = 11;
182  float cmd_left_flap() const;
183  void set_cmd_left_flap(float value);
184 
185  // optional float cmd_right_aileron = 12;
186  void clear_cmd_right_aileron();
187  static const int kCmdRightAileronFieldNumber = 12;
188  float cmd_right_aileron() const;
189  void set_cmd_right_aileron(float value);
190 
191  // optional float cmd_right_flap = 13;
192  void clear_cmd_right_flap();
193  static const int kCmdRightFlapFieldNumber = 13;
194  float cmd_right_flap() const;
195  void set_cmd_right_flap(float value);
196 
197  // optional float cmd_elevators = 14;
198  void clear_cmd_elevators();
199  static const int kCmdElevatorsFieldNumber = 14;
200  float cmd_elevators() const;
201  void set_cmd_elevators(float value);
202 
203  // optional float cmd_rudder = 15;
204  void clear_cmd_rudder();
205  static const int kCmdRudderFieldNumber = 15;
206  float cmd_rudder() const;
207  void set_cmd_rudder(float value);
208 
209  // @@protoc_insertion_point(class_scope:ignition.msgs.Cessna)
210  private:
211 
212  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
213  bool _is_default_instance_;
214  ::ignition::msgs::Header* header_;
215  float propeller_speed_;
216  float left_aileron_;
217  float left_flap_;
218  float right_aileron_;
219  float right_flap_;
220  float elevators_;
221  float rudder_;
222  float cmd_propeller_speed_;
223  float cmd_left_aileron_;
224  float cmd_left_flap_;
225  float cmd_right_aileron_;
226  float cmd_right_flap_;
227  float cmd_elevators_;
228  float cmd_rudder_;
229  mutable int _cached_size_;
230  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fcessna_2eproto();
233 
234  void InitAsDefaultInstance();
235  static Cessna* default_instance_;
236 };
237 // ===================================================================
238 
239 
240 // ===================================================================
241 
242 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
243 // Cessna
244 
245 // optional .ignition.msgs.Header header = 1;
246 inline bool Cessna::has_header() const {
247  return !_is_default_instance_ && header_ != NULL;
248 }
249 inline void Cessna::clear_header() {
250  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
251  header_ = NULL;
252 }
253 inline const ::ignition::msgs::Header& Cessna::header() const {
254  // @@protoc_insertion_point(field_get:ignition.msgs.Cessna.header)
255  return header_ != NULL ? *header_ : *default_instance_->header_;
256 }
257 inline ::ignition::msgs::Header* Cessna::mutable_header() {
258 
259  if (header_ == NULL) {
260  header_ = new ::ignition::msgs::Header;
261  }
262  // @@protoc_insertion_point(field_mutable:ignition.msgs.Cessna.header)
263  return header_;
264 }
265 inline ::ignition::msgs::Header* Cessna::release_header() {
266  // @@protoc_insertion_point(field_release:ignition.msgs.Cessna.header)
267 
268  ::ignition::msgs::Header* temp = header_;
269  header_ = NULL;
270  return temp;
271 }
273  delete header_;
274  header_ = header;
275  if (header) {
276 
277  } else {
278 
279  }
280  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Cessna.header)
281 }
282 
283 // optional float propeller_speed = 2;
285  propeller_speed_ = 0;
286 }
287 inline float Cessna::propeller_speed() const {
288  // @@protoc_insertion_point(field_get:ignition.msgs.Cessna.propeller_speed)
289  return propeller_speed_;
290 }
291 inline void Cessna::set_propeller_speed(float value) {
292 
293  propeller_speed_ = value;
294  // @@protoc_insertion_point(field_set:ignition.msgs.Cessna.propeller_speed)
295 }
296 
297 // optional float left_aileron = 3;
299  left_aileron_ = 0;
300 }
301 inline float Cessna::left_aileron() const {
302  // @@protoc_insertion_point(field_get:ignition.msgs.Cessna.left_aileron)
303  return left_aileron_;
304 }
305 inline void Cessna::set_left_aileron(float value) {
306 
307  left_aileron_ = value;
308  // @@protoc_insertion_point(field_set:ignition.msgs.Cessna.left_aileron)
309 }
310 
311 // optional float left_flap = 4;
312 inline void Cessna::clear_left_flap() {
313  left_flap_ = 0;
314 }
315 inline float Cessna::left_flap() const {
316  // @@protoc_insertion_point(field_get:ignition.msgs.Cessna.left_flap)
317  return left_flap_;
318 }
319 inline void Cessna::set_left_flap(float value) {
320 
321  left_flap_ = value;
322  // @@protoc_insertion_point(field_set:ignition.msgs.Cessna.left_flap)
323 }
324 
325 // optional float right_aileron = 5;
327  right_aileron_ = 0;
328 }
329 inline float Cessna::right_aileron() const {
330  // @@protoc_insertion_point(field_get:ignition.msgs.Cessna.right_aileron)
331  return right_aileron_;
332 }
333 inline void Cessna::set_right_aileron(float value) {
334 
335  right_aileron_ = value;
336  // @@protoc_insertion_point(field_set:ignition.msgs.Cessna.right_aileron)
337 }
338 
339 // optional float right_flap = 6;
341  right_flap_ = 0;
342 }
343 inline float Cessna::right_flap() const {
344  // @@protoc_insertion_point(field_get:ignition.msgs.Cessna.right_flap)
345  return right_flap_;
346 }
347 inline void Cessna::set_right_flap(float value) {
348 
349  right_flap_ = value;
350  // @@protoc_insertion_point(field_set:ignition.msgs.Cessna.right_flap)
351 }
352 
353 // optional float elevators = 7;
354 inline void Cessna::clear_elevators() {
355  elevators_ = 0;
356 }
357 inline float Cessna::elevators() const {
358  // @@protoc_insertion_point(field_get:ignition.msgs.Cessna.elevators)
359  return elevators_;
360 }
361 inline void Cessna::set_elevators(float value) {
362 
363  elevators_ = value;
364  // @@protoc_insertion_point(field_set:ignition.msgs.Cessna.elevators)
365 }
366 
367 // optional float rudder = 8;
368 inline void Cessna::clear_rudder() {
369  rudder_ = 0;
370 }
371 inline float Cessna::rudder() const {
372  // @@protoc_insertion_point(field_get:ignition.msgs.Cessna.rudder)
373  return rudder_;
374 }
375 inline void Cessna::set_rudder(float value) {
376 
377  rudder_ = value;
378  // @@protoc_insertion_point(field_set:ignition.msgs.Cessna.rudder)
379 }
380 
381 // optional float cmd_propeller_speed = 9;
383  cmd_propeller_speed_ = 0;
384 }
385 inline float Cessna::cmd_propeller_speed() const {
386  // @@protoc_insertion_point(field_get:ignition.msgs.Cessna.cmd_propeller_speed)
387  return cmd_propeller_speed_;
388 }
389 inline void Cessna::set_cmd_propeller_speed(float value) {
390 
391  cmd_propeller_speed_ = value;
392  // @@protoc_insertion_point(field_set:ignition.msgs.Cessna.cmd_propeller_speed)
393 }
394 
395 // optional float cmd_left_aileron = 10;
397  cmd_left_aileron_ = 0;
398 }
399 inline float Cessna::cmd_left_aileron() const {
400  // @@protoc_insertion_point(field_get:ignition.msgs.Cessna.cmd_left_aileron)
401  return cmd_left_aileron_;
402 }
403 inline void Cessna::set_cmd_left_aileron(float value) {
404 
405  cmd_left_aileron_ = value;
406  // @@protoc_insertion_point(field_set:ignition.msgs.Cessna.cmd_left_aileron)
407 }
408 
409 // optional float cmd_left_flap = 11;
411  cmd_left_flap_ = 0;
412 }
413 inline float Cessna::cmd_left_flap() const {
414  // @@protoc_insertion_point(field_get:ignition.msgs.Cessna.cmd_left_flap)
415  return cmd_left_flap_;
416 }
417 inline void Cessna::set_cmd_left_flap(float value) {
418 
419  cmd_left_flap_ = value;
420  // @@protoc_insertion_point(field_set:ignition.msgs.Cessna.cmd_left_flap)
421 }
422 
423 // optional float cmd_right_aileron = 12;
425  cmd_right_aileron_ = 0;
426 }
427 inline float Cessna::cmd_right_aileron() const {
428  // @@protoc_insertion_point(field_get:ignition.msgs.Cessna.cmd_right_aileron)
429  return cmd_right_aileron_;
430 }
431 inline void Cessna::set_cmd_right_aileron(float value) {
432 
433  cmd_right_aileron_ = value;
434  // @@protoc_insertion_point(field_set:ignition.msgs.Cessna.cmd_right_aileron)
435 }
436 
437 // optional float cmd_right_flap = 13;
439  cmd_right_flap_ = 0;
440 }
441 inline float Cessna::cmd_right_flap() const {
442  // @@protoc_insertion_point(field_get:ignition.msgs.Cessna.cmd_right_flap)
443  return cmd_right_flap_;
444 }
445 inline void Cessna::set_cmd_right_flap(float value) {
446 
447  cmd_right_flap_ = value;
448  // @@protoc_insertion_point(field_set:ignition.msgs.Cessna.cmd_right_flap)
449 }
450 
451 // optional float cmd_elevators = 14;
453  cmd_elevators_ = 0;
454 }
455 inline float Cessna::cmd_elevators() const {
456  // @@protoc_insertion_point(field_get:ignition.msgs.Cessna.cmd_elevators)
457  return cmd_elevators_;
458 }
459 inline void Cessna::set_cmd_elevators(float value) {
460 
461  cmd_elevators_ = value;
462  // @@protoc_insertion_point(field_set:ignition.msgs.Cessna.cmd_elevators)
463 }
464 
465 // optional float cmd_rudder = 15;
467  cmd_rudder_ = 0;
468 }
469 inline float Cessna::cmd_rudder() const {
470  // @@protoc_insertion_point(field_get:ignition.msgs.Cessna.cmd_rudder)
471  return cmd_rudder_;
472 }
473 inline void Cessna::set_cmd_rudder(float value) {
474 
475  cmd_rudder_ = value;
476  // @@protoc_insertion_point(field_set:ignition.msgs.Cessna.cmd_rudder)
477 }
478 
479 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
480 
485 // @@protoc_insertion_point(namespace_scope)
486 
487 } // namespace msgs
488 } // namespace ignition
489 
490 #ifdef _MSC_VER
491 #pragma warning(pop)
492 #endif
493 // @@protoc_insertion_point(global_scope)
494 
495 #endif // PROTOBUF_ignition_2fmsgs_2fcessna_2eproto__INCLUDED
::ignition::msgs::Header * mutable_header()
Definition: cessna.pb.h:257
float right_flap() const
Definition: cessna.pb.h:343
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: cessna.pb.h:92
float rudder() const
Definition: cessna.pb.h:371
Cessna * New() const
Definition: cessna.pb.h:75
void set_allocated_header(::ignition::msgs::Header *header)
Definition: cessna.pb.h:272
std::shared_ptr< Cessna > CessnaSharedPtr
Definition: cessna.pb.h:483
void set_cmd_elevators(float value)
Definition: cessna.pb.h:459
Definition: cessna.pb.h:56
float cmd_right_aileron() const
Definition: cessna.pb.h:427
void clear_cmd_propeller_speed()
Definition: cessna.pb.h:382
const ::ignition::msgs::Header & header() const
Definition: cessna.pb.h:253
void set_cmd_right_flap(float value)
Definition: cessna.pb.h:445
void set_cmd_right_aileron(float value)
Definition: cessna.pb.h:431
std::shared_ptr< const Cessna > ConstCessnaSharedPtr
Definition: cessna.pb.h:484
void set_right_aileron(float value)
Definition: cessna.pb.h:333
void clear_cmd_left_aileron()
Definition: cessna.pb.h:396
Cessna & operator=(const Cessna &from)
Definition: cessna.pb.h:63
std::unique_ptr< const Cessna > ConstCessnaUniquePtr
Definition: cessna.pb.h:482
float cmd_elevators() const
Definition: cessna.pb.h:455
float left_aileron() const
Definition: cessna.pb.h:301
void clear_left_aileron()
Definition: cessna.pb.h:298
std::unique_ptr< Cessna > CessnaUniquePtr
Definition: cessna.pb.h:481
void clear_cmd_right_aileron()
Definition: cessna.pb.h:424
float cmd_propeller_speed() const
Definition: cessna.pb.h:385
float cmd_left_flap() const
Definition: cessna.pb.h:413
void clear_cmd_right_flap()
Definition: cessna.pb.h:438
void set_right_flap(float value)
Definition: cessna.pb.h:347
void clear_right_aileron()
Definition: cessna.pb.h:326
void set_left_aileron(float value)
Definition: cessna.pb.h:305
Definition: header.pb.h:161
void clear_propeller_speed()
Definition: cessna.pb.h:284
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fcessna_2eproto()
float cmd_left_aileron() const
Definition: cessna.pb.h:399
void clear_cmd_left_flap()
Definition: cessna.pb.h:410
void set_cmd_propeller_speed(float value)
Definition: cessna.pb.h:389
float propeller_speed() const
Definition: cessna.pb.h:287
float left_flap() const
Definition: cessna.pb.h:315
void set_cmd_left_aileron(float value)
Definition: cessna.pb.h:403
bool has_header() const
Definition: cessna.pb.h:246
void clear_rudder()
Definition: cessna.pb.h:368
float right_aileron() const
Definition: cessna.pb.h:329
STL class.
float elevators() const
Definition: cessna.pb.h:357
void set_cmd_left_flap(float value)
Definition: cessna.pb.h:417
void set_cmd_rudder(float value)
Definition: cessna.pb.h:473
int GetCachedSize() const
Definition: cessna.pb.h:95
void clear_elevators()
Definition: cessna.pb.h:354
::ignition::msgs::Header * release_header()
Definition: cessna.pb.h:265
void set_left_flap(float value)
Definition: cessna.pb.h:319
void clear_right_flap()
Definition: cessna.pb.h:340
float cmd_rudder() const
Definition: cessna.pb.h:469
void set_elevators(float value)
Definition: cessna.pb.h:361
void clear_header()
Definition: cessna.pb.h:249
void set_propeller_speed(float value)
Definition: cessna.pb.h:291
void clear_cmd_rudder()
Definition: cessna.pb.h:466
void clear_left_flap()
Definition: cessna.pb.h:312
void protobuf_AssignDesc_ignition_2fmsgs_2fcessna_2eproto()
float cmd_right_flap() const
Definition: cessna.pb.h:441
void protobuf_ShutdownFile_ignition_2fmsgs_2fcessna_2eproto()
void clear_cmd_elevators()
Definition: cessna.pb.h:452
void set_rudder(float value)
Definition: cessna.pb.h:375