DCCL v3
arithmetic_extensions.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: dccl/arithmetic/protobuf/arithmetic_extensions.proto
3 
4 #ifndef PROTOBUF_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto__INCLUDED
5 #define PROTOBUF_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_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 "dccl/option_extensions.pb.h"
28 #include <boost/units/quantity.hpp>
29 #include <boost/units/absolute.hpp>
30 #include <boost/units/dimensionless_type.hpp>
31 #include <boost/units/make_scaled_unit.hpp>
32 // @@protoc_insertion_point(includes)
33 
34 // Internal implementation detail -- do not call these.
35 void protobuf_AddDesc_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto();
36 void protobuf_AssignDesc_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto();
37 void protobuf_ShutdownFile_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto();
38 
39 class ArithmeticOptions;
40 
41 // ===================================================================
42 
43 class ArithmeticOptions : public ::google::protobuf::Message {
44  public:
46  virtual ~ArithmeticOptions();
47 
49 
50  inline ArithmeticOptions& operator=(const ArithmeticOptions& from) {
51  CopyFrom(from);
52  return *this;
53  }
54 
55  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
56  return _unknown_fields_;
57  }
58 
59  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
60  return &_unknown_fields_;
61  }
62 
63  static const ::google::protobuf::Descriptor* descriptor();
64  static const ArithmeticOptions& default_instance();
65 
66  void Swap(ArithmeticOptions* other);
67 
68  // implements Message ----------------------------------------------
69 
70  ArithmeticOptions* New() const;
71  void CopyFrom(const ::google::protobuf::Message& from);
72  void MergeFrom(const ::google::protobuf::Message& from);
73  void CopyFrom(const ArithmeticOptions& from);
74  void MergeFrom(const ArithmeticOptions& from);
75  void Clear();
76  bool IsInitialized() const;
77 
78  int ByteSize() const;
79  bool MergePartialFromCodedStream(
80  ::google::protobuf::io::CodedInputStream* input);
81  void SerializeWithCachedSizes(
82  ::google::protobuf::io::CodedOutputStream* output) const;
83  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
84  int GetCachedSize() const { return _cached_size_; }
85  private:
86  void SharedCtor();
87  void SharedDtor();
88  void SetCachedSize(int size) const;
89  public:
90  ::google::protobuf::Metadata GetMetadata() const;
91 
92  // nested types ----------------------------------------------------
93 
94  // accessors -------------------------------------------------------
95 
96  // required string model = 1;
97  inline bool has_model() const;
98  inline void clear_model();
99  static const int kModelFieldNumber = 1;
100  inline const ::std::string& model() const;
101  inline void set_model(const ::std::string& value);
102  inline void set_model(const char* value);
103  inline void set_model(const char* value, size_t size);
104  inline ::std::string* mutable_model();
105  inline ::std::string* release_model();
106  inline void set_allocated_model(::std::string* model);
107 
108  // optional bool debug_assert = 2 [default = false];
109  inline bool has_debug_assert() const;
110  inline void clear_debug_assert();
111  static const int kDebugAssertFieldNumber = 2;
112  inline bool debug_assert() const;
113  inline void set_debug_assert(bool value);
114 
115  // @@protoc_insertion_point(class_scope:ArithmeticOptions)
116  private:
117  inline void set_has_model();
118  inline void clear_has_model();
119  inline void set_has_debug_assert();
120  inline void clear_has_debug_assert();
121 
122  ::google::protobuf::UnknownFieldSet _unknown_fields_;
123 
124  ::google::protobuf::uint32 _has_bits_[1];
125  mutable int _cached_size_;
126  ::std::string* model_;
127  bool debug_assert_;
128  friend void protobuf_AddDesc_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto();
129  friend void protobuf_AssignDesc_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto();
130  friend void protobuf_ShutdownFile_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto();
131 
132  void InitAsDefaultInstance();
133  static ArithmeticOptions* default_instance_;
134 };
135 // ===================================================================
136 
137 static const int kArithmeticFieldNumber = 1001;
138 extern ::google::protobuf::internal::ExtensionIdentifier< ::dccl::DCCLFieldOptions,
139  ::google::protobuf::internal::MessageTypeTraits< ::ArithmeticOptions >, 11, false >
140  arithmetic;
141 
142 // ===================================================================
143 
144 // ArithmeticOptions
145 
146 // required string model = 1;
147 inline bool ArithmeticOptions::has_model() const {
148  return (_has_bits_[0] & 0x00000001u) != 0;
149 }
150 inline void ArithmeticOptions::set_has_model() {
151  _has_bits_[0] |= 0x00000001u;
152 }
153 inline void ArithmeticOptions::clear_has_model() {
154  _has_bits_[0] &= ~0x00000001u;
155 }
156 inline void ArithmeticOptions::clear_model() {
157  if (model_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
158  model_->clear();
159  }
160  clear_has_model();
161 }
162 inline const ::std::string& ArithmeticOptions::model() const {
163  // @@protoc_insertion_point(field_get:ArithmeticOptions.model)
164  return *model_;
165 }
166 inline void ArithmeticOptions::set_model(const ::std::string& value) {
167  set_has_model();
168  if (model_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
169  model_ = new ::std::string;
170  }
171  model_->assign(value);
172  // @@protoc_insertion_point(field_set:ArithmeticOptions.model)
173 }
174 inline void ArithmeticOptions::set_model(const char* value) {
175  set_has_model();
176  if (model_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
177  model_ = new ::std::string;
178  }
179  model_->assign(value);
180  // @@protoc_insertion_point(field_set_char:ArithmeticOptions.model)
181 }
182 inline void ArithmeticOptions::set_model(const char* value, size_t size) {
183  set_has_model();
184  if (model_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
185  model_ = new ::std::string;
186  }
187  model_->assign(reinterpret_cast<const char*>(value), size);
188  // @@protoc_insertion_point(field_set_pointer:ArithmeticOptions.model)
189 }
190 inline ::std::string* ArithmeticOptions::mutable_model() {
191  set_has_model();
192  if (model_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
193  model_ = new ::std::string;
194  }
195  // @@protoc_insertion_point(field_mutable:ArithmeticOptions.model)
196  return model_;
197 }
198 inline ::std::string* ArithmeticOptions::release_model() {
199  clear_has_model();
200  if (model_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
201  return NULL;
202  } else {
203  ::std::string* temp = model_;
204  model_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
205  return temp;
206  }
207 }
208 inline void ArithmeticOptions::set_allocated_model(::std::string* model) {
209  if (model_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
210  delete model_;
211  }
212  if (model) {
213  set_has_model();
214  model_ = model;
215  } else {
216  clear_has_model();
217  model_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
218  }
219  // @@protoc_insertion_point(field_set_allocated:ArithmeticOptions.model)
220 }
221 
222 // optional bool debug_assert = 2 [default = false];
223 inline bool ArithmeticOptions::has_debug_assert() const {
224  return (_has_bits_[0] & 0x00000002u) != 0;
225 }
226 inline void ArithmeticOptions::set_has_debug_assert() {
227  _has_bits_[0] |= 0x00000002u;
228 }
229 inline void ArithmeticOptions::clear_has_debug_assert() {
230  _has_bits_[0] &= ~0x00000002u;
231 }
232 inline void ArithmeticOptions::clear_debug_assert() {
233  debug_assert_ = false;
234  clear_has_debug_assert();
235 }
236 inline bool ArithmeticOptions::debug_assert() const {
237  // @@protoc_insertion_point(field_get:ArithmeticOptions.debug_assert)
238  return debug_assert_;
239 }
240 inline void ArithmeticOptions::set_debug_assert(bool value) {
241  set_has_debug_assert();
242  debug_assert_ = value;
243  // @@protoc_insertion_point(field_set:ArithmeticOptions.debug_assert)
244 }
245 
246 
247 // @@protoc_insertion_point(namespace_scope)
248 
249 #ifndef SWIG
250 namespace google {
251 namespace protobuf {
252 
253 
254 } // namespace google
255 } // namespace protobuf
256 #endif // SWIG
257 
258 // @@protoc_insertion_point(global_scope)
259 
260 #endif // PROTOBUF_dccl_2farithmetic_2fprotobuf_2farithmetic_5fextensions_2eproto__INCLUDED