Goby v2
hdf5.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/common/protobuf/hdf5.proto
3 
4 #ifndef PROTOBUF_goby_2fcommon_2fprotobuf_2fhdf5_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fcommon_2fprotobuf_2fhdf5_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 namespace goby {
34 namespace common {
35 namespace protobuf {
36 
37 // Internal implementation detail -- do not call these.
38 void protobuf_AddDesc_goby_2fcommon_2fprotobuf_2fhdf5_2eproto();
39 void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2fhdf5_2eproto();
40 void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2fhdf5_2eproto();
41 
42 class HDF5Config;
43 
44 // ===================================================================
45 
46 class HDF5Config : public ::google::protobuf::Message {
47  public:
48  HDF5Config();
49  virtual ~HDF5Config();
50 
51  HDF5Config(const HDF5Config& from);
52 
53  inline HDF5Config& operator=(const HDF5Config& from) {
54  CopyFrom(from);
55  return *this;
56  }
57 
58  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
59  return _unknown_fields_;
60  }
61 
62  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
63  return &_unknown_fields_;
64  }
65 
66  static const ::google::protobuf::Descriptor* descriptor();
67  static const HDF5Config& default_instance();
68 
69  void Swap(HDF5Config* other);
70 
71  // implements Message ----------------------------------------------
72 
73  HDF5Config* New() const;
74  void CopyFrom(const ::google::protobuf::Message& from);
75  void MergeFrom(const ::google::protobuf::Message& from);
76  void CopyFrom(const HDF5Config& from);
77  void MergeFrom(const HDF5Config& from);
78  void Clear();
79  bool IsInitialized() const;
80 
81  int ByteSize() const;
82  bool MergePartialFromCodedStream(
83  ::google::protobuf::io::CodedInputStream* input);
84  void SerializeWithCachedSizes(
85  ::google::protobuf::io::CodedOutputStream* output) const;
86  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
87  int GetCachedSize() const { return _cached_size_; }
88  private:
89  void SharedCtor();
90  void SharedDtor();
91  void SetCachedSize(int size) const;
92  public:
93  ::google::protobuf::Metadata GetMetadata() const;
94 
95  // nested types ----------------------------------------------------
96 
97  // accessors -------------------------------------------------------
98 
99  // required string output_file = 10;
100  inline bool has_output_file() const;
101  inline void clear_output_file();
102  static const int kOutputFileFieldNumber = 10;
103  inline const ::std::string& output_file() const;
104  inline void set_output_file(const ::std::string& value);
105  inline void set_output_file(const char* value);
106  inline void set_output_file(const char* value, size_t size);
107  inline ::std::string* mutable_output_file();
108  inline ::std::string* release_output_file();
109  inline void set_allocated_output_file(::std::string* output_file);
110 
111  // optional bool include_string_fields = 20 [default = false];
112  inline bool has_include_string_fields() const;
113  inline void clear_include_string_fields();
114  static const int kIncludeStringFieldsFieldNumber = 20;
115  inline bool include_string_fields() const;
116  inline void set_include_string_fields(bool value);
117 
118  // repeated string input_file = 30;
119  inline int input_file_size() const;
120  inline void clear_input_file();
121  static const int kInputFileFieldNumber = 30;
122  inline const ::std::string& input_file(int index) const;
123  inline ::std::string* mutable_input_file(int index);
124  inline void set_input_file(int index, const ::std::string& value);
125  inline void set_input_file(int index, const char* value);
126  inline void set_input_file(int index, const char* value, size_t size);
127  inline ::std::string* add_input_file();
128  inline void add_input_file(const ::std::string& value);
129  inline void add_input_file(const char* value);
130  inline void add_input_file(const char* value, size_t size);
131  inline const ::google::protobuf::RepeatedPtrField< ::std::string>& input_file() const;
132  inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_input_file();
133 
134  GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(HDF5Config)
135  // @@protoc_insertion_point(class_scope:goby.common.protobuf.HDF5Config)
136  private:
137  inline void set_has_output_file();
138  inline void clear_has_output_file();
139  inline void set_has_include_string_fields();
140  inline void clear_has_include_string_fields();
141 
142  ::google::protobuf::internal::ExtensionSet _extensions_;
143 
144  ::google::protobuf::UnknownFieldSet _unknown_fields_;
145 
146  ::google::protobuf::uint32 _has_bits_[1];
147  mutable int _cached_size_;
148  ::std::string* output_file_;
149  ::google::protobuf::RepeatedPtrField< ::std::string> input_file_;
150  bool include_string_fields_;
151  friend void protobuf_AddDesc_goby_2fcommon_2fprotobuf_2fhdf5_2eproto();
152  friend void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2fhdf5_2eproto();
153  friend void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2fhdf5_2eproto();
154 
155  void InitAsDefaultInstance();
156  static HDF5Config* default_instance_;
157 };
158 // ===================================================================
159 
160 
161 // ===================================================================
162 
163 // HDF5Config
164 
165 // required string output_file = 10;
166 inline bool HDF5Config::has_output_file() const {
167  return (_has_bits_[0] & 0x00000001u) != 0;
168 }
169 inline void HDF5Config::set_has_output_file() {
170  _has_bits_[0] |= 0x00000001u;
171 }
172 inline void HDF5Config::clear_has_output_file() {
173  _has_bits_[0] &= ~0x00000001u;
174 }
175 inline void HDF5Config::clear_output_file() {
176  if (output_file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
177  output_file_->clear();
178  }
179  clear_has_output_file();
180 }
181 inline const ::std::string& HDF5Config::output_file() const {
182  // @@protoc_insertion_point(field_get:goby.common.protobuf.HDF5Config.output_file)
183  return *output_file_;
184 }
185 inline void HDF5Config::set_output_file(const ::std::string& value) {
186  set_has_output_file();
187  if (output_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
188  output_file_ = new ::std::string;
189  }
190  output_file_->assign(value);
191  // @@protoc_insertion_point(field_set:goby.common.protobuf.HDF5Config.output_file)
192 }
193 inline void HDF5Config::set_output_file(const char* value) {
194  set_has_output_file();
195  if (output_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
196  output_file_ = new ::std::string;
197  }
198  output_file_->assign(value);
199  // @@protoc_insertion_point(field_set_char:goby.common.protobuf.HDF5Config.output_file)
200 }
201 inline void HDF5Config::set_output_file(const char* value, size_t size) {
202  set_has_output_file();
203  if (output_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
204  output_file_ = new ::std::string;
205  }
206  output_file_->assign(reinterpret_cast<const char*>(value), size);
207  // @@protoc_insertion_point(field_set_pointer:goby.common.protobuf.HDF5Config.output_file)
208 }
209 inline ::std::string* HDF5Config::mutable_output_file() {
210  set_has_output_file();
211  if (output_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
212  output_file_ = new ::std::string;
213  }
214  // @@protoc_insertion_point(field_mutable:goby.common.protobuf.HDF5Config.output_file)
215  return output_file_;
216 }
217 inline ::std::string* HDF5Config::release_output_file() {
218  clear_has_output_file();
219  if (output_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
220  return NULL;
221  } else {
222  ::std::string* temp = output_file_;
223  output_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
224  return temp;
225  }
226 }
227 inline void HDF5Config::set_allocated_output_file(::std::string* output_file) {
228  if (output_file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
229  delete output_file_;
230  }
231  if (output_file) {
232  set_has_output_file();
233  output_file_ = output_file;
234  } else {
235  clear_has_output_file();
236  output_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
237  }
238  // @@protoc_insertion_point(field_set_allocated:goby.common.protobuf.HDF5Config.output_file)
239 }
240 
241 // optional bool include_string_fields = 20 [default = false];
242 inline bool HDF5Config::has_include_string_fields() const {
243  return (_has_bits_[0] & 0x00000002u) != 0;
244 }
245 inline void HDF5Config::set_has_include_string_fields() {
246  _has_bits_[0] |= 0x00000002u;
247 }
248 inline void HDF5Config::clear_has_include_string_fields() {
249  _has_bits_[0] &= ~0x00000002u;
250 }
251 inline void HDF5Config::clear_include_string_fields() {
252  include_string_fields_ = false;
253  clear_has_include_string_fields();
254 }
255 inline bool HDF5Config::include_string_fields() const {
256  // @@protoc_insertion_point(field_get:goby.common.protobuf.HDF5Config.include_string_fields)
257  return include_string_fields_;
258 }
259 inline void HDF5Config::set_include_string_fields(bool value) {
260  set_has_include_string_fields();
261  include_string_fields_ = value;
262  // @@protoc_insertion_point(field_set:goby.common.protobuf.HDF5Config.include_string_fields)
263 }
264 
265 // repeated string input_file = 30;
266 inline int HDF5Config::input_file_size() const {
267  return input_file_.size();
268 }
269 inline void HDF5Config::clear_input_file() {
270  input_file_.Clear();
271 }
272 inline const ::std::string& HDF5Config::input_file(int index) const {
273  // @@protoc_insertion_point(field_get:goby.common.protobuf.HDF5Config.input_file)
274  return input_file_.Get(index);
275 }
276 inline ::std::string* HDF5Config::mutable_input_file(int index) {
277  // @@protoc_insertion_point(field_mutable:goby.common.protobuf.HDF5Config.input_file)
278  return input_file_.Mutable(index);
279 }
280 inline void HDF5Config::set_input_file(int index, const ::std::string& value) {
281  // @@protoc_insertion_point(field_set:goby.common.protobuf.HDF5Config.input_file)
282  input_file_.Mutable(index)->assign(value);
283 }
284 inline void HDF5Config::set_input_file(int index, const char* value) {
285  input_file_.Mutable(index)->assign(value);
286  // @@protoc_insertion_point(field_set_char:goby.common.protobuf.HDF5Config.input_file)
287 }
288 inline void HDF5Config::set_input_file(int index, const char* value, size_t size) {
289  input_file_.Mutable(index)->assign(
290  reinterpret_cast<const char*>(value), size);
291  // @@protoc_insertion_point(field_set_pointer:goby.common.protobuf.HDF5Config.input_file)
292 }
293 inline ::std::string* HDF5Config::add_input_file() {
294  return input_file_.Add();
295 }
296 inline void HDF5Config::add_input_file(const ::std::string& value) {
297  input_file_.Add()->assign(value);
298  // @@protoc_insertion_point(field_add:goby.common.protobuf.HDF5Config.input_file)
299 }
300 inline void HDF5Config::add_input_file(const char* value) {
301  input_file_.Add()->assign(value);
302  // @@protoc_insertion_point(field_add_char:goby.common.protobuf.HDF5Config.input_file)
303 }
304 inline void HDF5Config::add_input_file(const char* value, size_t size) {
305  input_file_.Add()->assign(reinterpret_cast<const char*>(value), size);
306  // @@protoc_insertion_point(field_add_pointer:goby.common.protobuf.HDF5Config.input_file)
307 }
308 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
309 HDF5Config::input_file() const {
310  // @@protoc_insertion_point(field_list:goby.common.protobuf.HDF5Config.input_file)
311  return input_file_;
312 }
313 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
314 HDF5Config::mutable_input_file() {
315  // @@protoc_insertion_point(field_mutable_list:goby.common.protobuf.HDF5Config.input_file)
316  return &input_file_;
317 }
318 
319 
320 // @@protoc_insertion_point(namespace_scope)
321 
322 } // namespace protobuf
323 } // namespace common
324 } // namespace goby
325 
326 #ifndef SWIG
327 namespace google {
328 namespace protobuf {
329 
330 
331 } // namespace google
332 } // namespace protobuf
333 #endif // SWIG
334 
335 // @@protoc_insertion_point(global_scope)
336 
337 #endif // PROTOBUF_goby_2fcommon_2fprotobuf_2fhdf5_2eproto__INCLUDED
The global namespace for the Goby project.