Goby v2
iver_driver.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/moos/frontseat/iver/iver_driver.proto
3 
4 #ifndef PROTOBUF_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_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/generated_enum_reflection.h>
27 #include <google/protobuf/unknown_field_set.h>
28 #include "goby/moos/protobuf/frontseat.pb.h"
29 #include <boost/units/quantity.hpp>
30 #include <boost/units/absolute.hpp>
31 #include <boost/units/dimensionless_type.hpp>
32 #include <boost/units/make_scaled_unit.hpp>
33 // @@protoc_insertion_point(includes)
34 
35 namespace goby {
36 namespace moos {
37 namespace protobuf {
38 
39 // Internal implementation detail -- do not call these.
40 void protobuf_AddDesc_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto();
41 void protobuf_AssignDesc_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto();
42 void protobuf_ShutdownFile_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto();
43 
44 class IverExtraCommands;
45 
46 enum IverExtraCommands_IverCommand {
47  IverExtraCommands_IverCommand_UNKNOWN_COMMAND = 0,
48  IverExtraCommands_IverCommand_START_MISSION = 1,
49  IverExtraCommands_IverCommand_STOP_MISSION = 2
50 };
51 bool IverExtraCommands_IverCommand_IsValid(int value);
52 const IverExtraCommands_IverCommand IverExtraCommands_IverCommand_IverCommand_MIN = IverExtraCommands_IverCommand_UNKNOWN_COMMAND;
53 const IverExtraCommands_IverCommand IverExtraCommands_IverCommand_IverCommand_MAX = IverExtraCommands_IverCommand_STOP_MISSION;
54 const int IverExtraCommands_IverCommand_IverCommand_ARRAYSIZE = IverExtraCommands_IverCommand_IverCommand_MAX + 1;
55 
56 const ::google::protobuf::EnumDescriptor* IverExtraCommands_IverCommand_descriptor();
57 inline const ::std::string& IverExtraCommands_IverCommand_Name(IverExtraCommands_IverCommand value) {
58  return ::google::protobuf::internal::NameOfEnum(
59  IverExtraCommands_IverCommand_descriptor(), value);
60 }
61 inline bool IverExtraCommands_IverCommand_Parse(
62  const ::std::string& name, IverExtraCommands_IverCommand* value) {
63  return ::google::protobuf::internal::ParseNamedEnum<IverExtraCommands_IverCommand>(
64  IverExtraCommands_IverCommand_descriptor(), name, value);
65 }
66 // ===================================================================
67 
68 class IverExtraCommands : public ::google::protobuf::Message {
69  public:
71  virtual ~IverExtraCommands();
72 
74 
75  inline IverExtraCommands& operator=(const IverExtraCommands& from) {
76  CopyFrom(from);
77  return *this;
78  }
79 
80  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
81  return _unknown_fields_;
82  }
83 
84  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
85  return &_unknown_fields_;
86  }
87 
88  static const ::google::protobuf::Descriptor* descriptor();
89  static const IverExtraCommands& default_instance();
90 
91  void Swap(IverExtraCommands* other);
92 
93  // implements Message ----------------------------------------------
94 
95  IverExtraCommands* New() const;
96  void CopyFrom(const ::google::protobuf::Message& from);
97  void MergeFrom(const ::google::protobuf::Message& from);
98  void CopyFrom(const IverExtraCommands& from);
99  void MergeFrom(const IverExtraCommands& from);
100  void Clear();
101  bool IsInitialized() const;
102 
103  int ByteSize() const;
104  bool MergePartialFromCodedStream(
105  ::google::protobuf::io::CodedInputStream* input);
106  void SerializeWithCachedSizes(
107  ::google::protobuf::io::CodedOutputStream* output) const;
108  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
109  int GetCachedSize() const { return _cached_size_; }
110  private:
111  void SharedCtor();
112  void SharedDtor();
113  void SetCachedSize(int size) const;
114  public:
115  ::google::protobuf::Metadata GetMetadata() const;
116 
117  // nested types ----------------------------------------------------
118 
119  typedef IverExtraCommands_IverCommand IverCommand;
120  static const IverCommand UNKNOWN_COMMAND = IverExtraCommands_IverCommand_UNKNOWN_COMMAND;
121  static const IverCommand START_MISSION = IverExtraCommands_IverCommand_START_MISSION;
122  static const IverCommand STOP_MISSION = IverExtraCommands_IverCommand_STOP_MISSION;
123  static inline bool IverCommand_IsValid(int value) {
124  return IverExtraCommands_IverCommand_IsValid(value);
125  }
126  static const IverCommand IverCommand_MIN =
127  IverExtraCommands_IverCommand_IverCommand_MIN;
128  static const IverCommand IverCommand_MAX =
129  IverExtraCommands_IverCommand_IverCommand_MAX;
130  static const int IverCommand_ARRAYSIZE =
131  IverExtraCommands_IverCommand_IverCommand_ARRAYSIZE;
132  static inline const ::google::protobuf::EnumDescriptor*
133  IverCommand_descriptor() {
134  return IverExtraCommands_IverCommand_descriptor();
135  }
136  static inline const ::std::string& IverCommand_Name(IverCommand value) {
137  return IverExtraCommands_IverCommand_Name(value);
138  }
139  static inline bool IverCommand_Parse(const ::std::string& name,
140  IverCommand* value) {
141  return IverExtraCommands_IverCommand_Parse(name, value);
142  }
143 
144  // accessors -------------------------------------------------------
145 
146  // optional .goby.moos.protobuf.IverExtraCommands.IverCommand command = 1 [default = UNKNOWN_COMMAND];
147  inline bool has_command() const;
148  inline void clear_command();
149  static const int kCommandFieldNumber = 1;
150  inline ::goby::moos::protobuf::IverExtraCommands_IverCommand command() const;
151  inline void set_command(::goby::moos::protobuf::IverExtraCommands_IverCommand value);
152 
153  // optional string mission = 2;
154  inline bool has_mission() const;
155  inline void clear_mission();
156  static const int kMissionFieldNumber = 2;
157  inline const ::std::string& mission() const;
158  inline void set_mission(const ::std::string& value);
159  inline void set_mission(const char* value);
160  inline void set_mission(const char* value, size_t size);
161  inline ::std::string* mutable_mission();
162  inline ::std::string* release_mission();
163  inline void set_allocated_mission(::std::string* mission);
164 
165  // @@protoc_insertion_point(class_scope:goby.moos.protobuf.IverExtraCommands)
166  private:
167  inline void set_has_command();
168  inline void clear_has_command();
169  inline void set_has_mission();
170  inline void clear_has_mission();
171 
172  ::google::protobuf::UnknownFieldSet _unknown_fields_;
173 
174  ::google::protobuf::uint32 _has_bits_[1];
175  mutable int _cached_size_;
176  ::std::string* mission_;
177  int command_;
178  friend void protobuf_AddDesc_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto();
179  friend void protobuf_AssignDesc_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto();
180  friend void protobuf_ShutdownFile_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto();
181 
182  void InitAsDefaultInstance();
183  static IverExtraCommands* default_instance_;
184 };
185 // ===================================================================
186 
187 static const int kIverCommandFieldNumber = 1001;
188 extern ::google::protobuf::internal::ExtensionIdentifier< ::goby::moos::protobuf::CommandRequest,
189  ::google::protobuf::internal::MessageTypeTraits< ::goby::moos::protobuf::IverExtraCommands >, 11, false >
190  iver_command;
191 
192 // ===================================================================
193 
194 // IverExtraCommands
195 
196 // optional .goby.moos.protobuf.IverExtraCommands.IverCommand command = 1 [default = UNKNOWN_COMMAND];
197 inline bool IverExtraCommands::has_command() const {
198  return (_has_bits_[0] & 0x00000001u) != 0;
199 }
200 inline void IverExtraCommands::set_has_command() {
201  _has_bits_[0] |= 0x00000001u;
202 }
203 inline void IverExtraCommands::clear_has_command() {
204  _has_bits_[0] &= ~0x00000001u;
205 }
206 inline void IverExtraCommands::clear_command() {
207  command_ = 0;
208  clear_has_command();
209 }
210 inline ::goby::moos::protobuf::IverExtraCommands_IverCommand IverExtraCommands::command() const {
211  // @@protoc_insertion_point(field_get:goby.moos.protobuf.IverExtraCommands.command)
212  return static_cast< ::goby::moos::protobuf::IverExtraCommands_IverCommand >(command_);
213 }
214 inline void IverExtraCommands::set_command(::goby::moos::protobuf::IverExtraCommands_IverCommand value) {
215  assert(::goby::moos::protobuf::IverExtraCommands_IverCommand_IsValid(value));
216  set_has_command();
217  command_ = value;
218  // @@protoc_insertion_point(field_set:goby.moos.protobuf.IverExtraCommands.command)
219 }
220 
221 // optional string mission = 2;
222 inline bool IverExtraCommands::has_mission() const {
223  return (_has_bits_[0] & 0x00000002u) != 0;
224 }
225 inline void IverExtraCommands::set_has_mission() {
226  _has_bits_[0] |= 0x00000002u;
227 }
228 inline void IverExtraCommands::clear_has_mission() {
229  _has_bits_[0] &= ~0x00000002u;
230 }
231 inline void IverExtraCommands::clear_mission() {
232  if (mission_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
233  mission_->clear();
234  }
235  clear_has_mission();
236 }
237 inline const ::std::string& IverExtraCommands::mission() const {
238  // @@protoc_insertion_point(field_get:goby.moos.protobuf.IverExtraCommands.mission)
239  return *mission_;
240 }
241 inline void IverExtraCommands::set_mission(const ::std::string& value) {
242  set_has_mission();
243  if (mission_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
244  mission_ = new ::std::string;
245  }
246  mission_->assign(value);
247  // @@protoc_insertion_point(field_set:goby.moos.protobuf.IverExtraCommands.mission)
248 }
249 inline void IverExtraCommands::set_mission(const char* value) {
250  set_has_mission();
251  if (mission_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
252  mission_ = new ::std::string;
253  }
254  mission_->assign(value);
255  // @@protoc_insertion_point(field_set_char:goby.moos.protobuf.IverExtraCommands.mission)
256 }
257 inline void IverExtraCommands::set_mission(const char* value, size_t size) {
258  set_has_mission();
259  if (mission_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
260  mission_ = new ::std::string;
261  }
262  mission_->assign(reinterpret_cast<const char*>(value), size);
263  // @@protoc_insertion_point(field_set_pointer:goby.moos.protobuf.IverExtraCommands.mission)
264 }
265 inline ::std::string* IverExtraCommands::mutable_mission() {
266  set_has_mission();
267  if (mission_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
268  mission_ = new ::std::string;
269  }
270  // @@protoc_insertion_point(field_mutable:goby.moos.protobuf.IverExtraCommands.mission)
271  return mission_;
272 }
273 inline ::std::string* IverExtraCommands::release_mission() {
274  clear_has_mission();
275  if (mission_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
276  return NULL;
277  } else {
278  ::std::string* temp = mission_;
279  mission_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
280  return temp;
281  }
282 }
283 inline void IverExtraCommands::set_allocated_mission(::std::string* mission) {
284  if (mission_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
285  delete mission_;
286  }
287  if (mission) {
288  set_has_mission();
289  mission_ = mission;
290  } else {
291  clear_has_mission();
292  mission_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
293  }
294  // @@protoc_insertion_point(field_set_allocated:goby.moos.protobuf.IverExtraCommands.mission)
295 }
296 
297 
298 // @@protoc_insertion_point(namespace_scope)
299 
300 } // namespace protobuf
301 } // namespace moos
302 } // namespace goby
303 
304 #ifndef SWIG
305 namespace google {
306 namespace protobuf {
307 
308 template <> struct is_proto_enum< ::goby::moos::protobuf::IverExtraCommands_IverCommand> : ::google::protobuf::internal::true_type {};
309 template <>
310 inline const EnumDescriptor* GetEnumDescriptor< ::goby::moos::protobuf::IverExtraCommands_IverCommand>() {
311  return ::goby::moos::protobuf::IverExtraCommands_IverCommand_descriptor();
312 }
313 
314 } // namespace google
315 } // namespace protobuf
316 #endif // SWIG
317 
318 // @@protoc_insertion_point(global_scope)
319 
320 #endif // PROTOBUF_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto__INCLUDED
The global namespace for the Goby project.