Goby v2
test_a.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/test/util/dynamic_protobuf/test_a.proto
3 
4 #ifndef PROTOBUF_goby_2ftest_2futil_2fdynamic_5fprotobuf_2ftest_5fa_2eproto__INCLUDED
5 #define PROTOBUF_goby_2ftest_2futil_2fdynamic_5fprotobuf_2ftest_5fa_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 2006000
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 2006001 < 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/generated_message_util.h>
23 #include <google/protobuf/message.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include <google/protobuf/unknown_field_set.h>
27 #include <boost/units/quantity.hpp>
28 #include <boost/units/absolute.hpp>
29 #include <boost/units/dimensionless_type.hpp>
30 #include <boost/units/make_scaled_unit.hpp>
31 // @@protoc_insertion_point(includes)
32 
33 // Internal implementation detail -- do not call these.
34 void protobuf_AddDesc_goby_2ftest_2futil_2fdynamic_5fprotobuf_2ftest_5fa_2eproto();
35 void protobuf_AssignDesc_goby_2ftest_2futil_2fdynamic_5fprotobuf_2ftest_5fa_2eproto();
36 void protobuf_ShutdownFile_goby_2ftest_2futil_2fdynamic_5fprotobuf_2ftest_5fa_2eproto();
37 
38 class A;
39 
40 // ===================================================================
41 
42 class A : public ::google::protobuf::Message {
43  public:
44  A();
45  virtual ~A();
46 
47  A(const A& from);
48 
49  inline A& operator=(const A& from) {
50  CopyFrom(from);
51  return *this;
52  }
53 
54  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
55  return _unknown_fields_;
56  }
57 
58  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
59  return &_unknown_fields_;
60  }
61 
62  static const ::google::protobuf::Descriptor* descriptor();
63  static const A& default_instance();
64 
65  void Swap(A* other);
66 
67  // implements Message ----------------------------------------------
68 
69  A* New() const;
70  void CopyFrom(const ::google::protobuf::Message& from);
71  void MergeFrom(const ::google::protobuf::Message& from);
72  void CopyFrom(const A& from);
73  void MergeFrom(const A& from);
74  void Clear();
75  bool IsInitialized() const;
76 
77  int ByteSize() const;
78  bool MergePartialFromCodedStream(
79  ::google::protobuf::io::CodedInputStream* input);
80  void SerializeWithCachedSizes(
81  ::google::protobuf::io::CodedOutputStream* output) const;
82  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
83  int GetCachedSize() const { return _cached_size_; }
84  private:
85  void SharedCtor();
86  void SharedDtor();
87  void SetCachedSize(int size) const;
88  public:
89  ::google::protobuf::Metadata GetMetadata() const;
90 
91  // nested types ----------------------------------------------------
92 
93  // accessors -------------------------------------------------------
94 
95  // required double a1 = 1;
96  inline bool has_a1() const;
97  inline void clear_a1();
98  static const int kA1FieldNumber = 1;
99  inline double a1() const;
100  inline void set_a1(double value);
101 
102  // @@protoc_insertion_point(class_scope:A)
103  private:
104  inline void set_has_a1();
105  inline void clear_has_a1();
106 
107  ::google::protobuf::UnknownFieldSet _unknown_fields_;
108 
109  ::google::protobuf::uint32 _has_bits_[1];
110  mutable int _cached_size_;
111  double a1_;
112  friend void protobuf_AddDesc_goby_2ftest_2futil_2fdynamic_5fprotobuf_2ftest_5fa_2eproto();
113  friend void protobuf_AssignDesc_goby_2ftest_2futil_2fdynamic_5fprotobuf_2ftest_5fa_2eproto();
114  friend void protobuf_ShutdownFile_goby_2ftest_2futil_2fdynamic_5fprotobuf_2ftest_5fa_2eproto();
115 
116  void InitAsDefaultInstance();
117  static A* default_instance_;
118 };
119 // ===================================================================
120 
121 
122 // ===================================================================
123 
124 // A
125 
126 // required double a1 = 1;
127 inline bool A::has_a1() const {
128  return (_has_bits_[0] & 0x00000001u) != 0;
129 }
130 inline void A::set_has_a1() {
131  _has_bits_[0] |= 0x00000001u;
132 }
133 inline void A::clear_has_a1() {
134  _has_bits_[0] &= ~0x00000001u;
135 }
136 inline void A::clear_a1() {
137  a1_ = 0;
138  clear_has_a1();
139 }
140 inline double A::a1() const {
141  // @@protoc_insertion_point(field_get:A.a1)
142  return a1_;
143 }
144 inline void A::set_a1(double value) {
145  set_has_a1();
146  a1_ = value;
147  // @@protoc_insertion_point(field_set:A.a1)
148 }
149 
150 
151 // @@protoc_insertion_point(namespace_scope)
152 
153 #ifndef SWIG
154 namespace google {
155 namespace protobuf {
156 
157 
158 } // namespace google
159 } // namespace protobuf
160 #endif // SWIG
161 
162 // @@protoc_insertion_point(global_scope)
163 
164 #endif // PROTOBUF_goby_2ftest_2futil_2fdynamic_5fprotobuf_2ftest_5fa_2eproto__INCLUDED
Definition: test_a.pb.h:42