Robot Raconteur Companion C++ Library
Loading...
Searching...
No Matches
yaml_loader_enums_impl.h
1#pragma once
2#include <string>
3#include "yaml-cpp/yaml.h"
5#include <RobotRaconteurCompanion/InfoParser/InfoParserMacros.h>
6namespace RobotRaconteur
7{
8namespace Companion
9{
10namespace InfoParser
11{
12namespace yaml
13{
14template <typename T>
15struct string_to_enum_traits
16{
17};
18ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_ActionStatusCode(const std::string& input,
19 const YAML::Node& node);
20template <>
21struct string_to_enum_traits<com::robotraconteur::action::ActionStatusCode::ActionStatusCode>
22{
23 static com::robotraconteur::action::ActionStatusCode::ActionStatusCode string_to_enum(const std::string& s,
24 const YAML::Node& node)
25 {
26 return (com::robotraconteur::action::ActionStatusCode::ActionStatusCode)string_to_enum_ActionStatusCode(s,
27 node);
28 }
29};
30ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_ActuatorMode(const std::string& input,
31 const YAML::Node& node);
32template <>
33struct string_to_enum_traits<com::robotraconteur::actuator::ActuatorMode::ActuatorMode>
34{
35 static com::robotraconteur::actuator::ActuatorMode::ActuatorMode string_to_enum(const std::string& s,
36 const YAML::Node& node)
37 {
38 return (com::robotraconteur::actuator::ActuatorMode::ActuatorMode)string_to_enum_ActuatorMode(s, node);
39 }
40};
41ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_ActuatorStateFlags(const std::string& input,
42 const YAML::Node& node);
43template <>
44struct string_to_enum_traits<com::robotraconteur::actuator::ActuatorStateFlags::ActuatorStateFlags>
45{
46 static com::robotraconteur::actuator::ActuatorStateFlags::ActuatorStateFlags string_to_enum(const std::string& s,
47 const YAML::Node& node)
48 {
49 return (com::robotraconteur::actuator::ActuatorStateFlags::ActuatorStateFlags)string_to_enum_ActuatorStateFlags(
50 s, node);
51 }
52};
53ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_ActuatorTypeCode(const std::string& input,
54 const YAML::Node& node);
55template <>
56struct string_to_enum_traits<com::robotraconteur::actuator::ActuatorTypeCode::ActuatorTypeCode>
57{
58 static com::robotraconteur::actuator::ActuatorTypeCode::ActuatorTypeCode string_to_enum(const std::string& s,
59 const YAML::Node& node)
60 {
61 return (com::robotraconteur::actuator::ActuatorTypeCode::ActuatorTypeCode)string_to_enum_ActuatorTypeCode(s,
62 node);
63 }
64};
65ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_ArrayTypeCode(const std::string& input,
66 const YAML::Node& node);
67template <>
68struct string_to_enum_traits<com::robotraconteur::datatype::ArrayTypeCode::ArrayTypeCode>
69{
70 static com::robotraconteur::datatype::ArrayTypeCode::ArrayTypeCode string_to_enum(const std::string& s,
71 const YAML::Node& node)
72 {
73 return (com::robotraconteur::datatype::ArrayTypeCode::ArrayTypeCode)string_to_enum_ArrayTypeCode(s, node);
74 }
75};
76ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_CameraStateFlags(const std::string& input,
77 const YAML::Node& node);
78template <>
79struct string_to_enum_traits<com::robotraconteur::imaging::CameraStateFlags::CameraStateFlags>
80{
81 static com::robotraconteur::imaging::CameraStateFlags::CameraStateFlags string_to_enum(const std::string& s,
82 const YAML::Node& node)
83 {
84 return (com::robotraconteur::imaging::CameraStateFlags::CameraStateFlags)string_to_enum_CameraStateFlags(s,
85 node);
86 }
87};
88ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_Capabilities(const std::string& input,
89 const YAML::Node& node);
90template <>
91struct string_to_enum_traits<com::robotraconteur::imaging::Capabilities::Capabilities>
92{
93 static com::robotraconteur::imaging::Capabilities::Capabilities string_to_enum(const std::string& s,
94 const YAML::Node& node)
95 {
96 return (com::robotraconteur::imaging::Capabilities::Capabilities)string_to_enum_Capabilities(s, node);
97 }
98};
99ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_ClockTypeCode(const std::string& input,
100 const YAML::Node& node);
101template <>
102struct string_to_enum_traits<com::robotraconteur::datetime::ClockTypeCode::ClockTypeCode>
103{
104 static com::robotraconteur::datetime::ClockTypeCode::ClockTypeCode string_to_enum(const std::string& s,
105 const YAML::Node& node)
106 {
107 return (com::robotraconteur::datetime::ClockTypeCode::ClockTypeCode)string_to_enum_ClockTypeCode(s, node);
108 }
109};
110ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_ContainerTypeCode(const std::string& input,
111 const YAML::Node& node);
112template <>
113struct string_to_enum_traits<com::robotraconteur::datatype::ContainerTypeCode::ContainerTypeCode>
114{
115 static com::robotraconteur::datatype::ContainerTypeCode::ContainerTypeCode string_to_enum(const std::string& s,
116 const YAML::Node& node)
117 {
118 return (com::robotraconteur::datatype::ContainerTypeCode::ContainerTypeCode)string_to_enum_ContainerTypeCode(
119 s, node);
120 }
121};
122ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_DataTypeCode(const std::string& input,
123 const YAML::Node& node);
124template <>
125struct string_to_enum_traits<com::robotraconteur::datatype::DataTypeCode::DataTypeCode>
126{
127 static com::robotraconteur::datatype::DataTypeCode::DataTypeCode string_to_enum(const std::string& s,
128 const YAML::Node& node)
129 {
130 return (com::robotraconteur::datatype::DataTypeCode::DataTypeCode)string_to_enum_DataTypeCode(s, node);
131 }
132};
133ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_EventLogLevel(const std::string& input,
134 const YAML::Node& node);
135template <>
136struct string_to_enum_traits<com::robotraconteur::eventlog::EventLogLevel::EventLogLevel>
137{
138 static com::robotraconteur::eventlog::EventLogLevel::EventLogLevel string_to_enum(const std::string& s,
139 const YAML::Node& node)
140 {
141 return (com::robotraconteur::eventlog::EventLogLevel::EventLogLevel)string_to_enum_EventLogLevel(s, node);
142 }
143};
144ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_GamepadButtons(const std::string& input,
145 const YAML::Node& node);
146template <>
147struct string_to_enum_traits<com::robotraconteur::hid::joystick::GamepadButtons::GamepadButtons>
148{
149 static com::robotraconteur::hid::joystick::GamepadButtons::GamepadButtons string_to_enum(const std::string& s,
150 const YAML::Node& node)
151 {
152 return (com::robotraconteur::hid::joystick::GamepadButtons::GamepadButtons)string_to_enum_GamepadButtons(s,
153 node);
154 }
155};
156ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_GpsCovarianceTypeCode(const std::string& input,
157 const YAML::Node& node);
158template <>
159struct string_to_enum_traits<com::robotraconteur::gps::GpsCovarianceTypeCode::GpsCovarianceTypeCode>
160{
161 static com::robotraconteur::gps::GpsCovarianceTypeCode::GpsCovarianceTypeCode string_to_enum(const std::string& s,
162 const YAML::Node& node)
163 {
164 return (com::robotraconteur::gps::GpsCovarianceTypeCode::GpsCovarianceTypeCode)
165 string_to_enum_GpsCovarianceTypeCode(s, node);
166 }
167};
168ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_GpsMeasureSourceFlags(const std::string& input,
169 const YAML::Node& node);
170template <>
171struct string_to_enum_traits<com::robotraconteur::gps::GpsMeasureSourceFlags::GpsMeasureSourceFlags>
172{
173 static com::robotraconteur::gps::GpsMeasureSourceFlags::GpsMeasureSourceFlags string_to_enum(const std::string& s,
174 const YAML::Node& node)
175 {
176 return (com::robotraconteur::gps::GpsMeasureSourceFlags::GpsMeasureSourceFlags)
177 string_to_enum_GpsMeasureSourceFlags(s, node);
178 }
179};
180ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_GpsMeasurementStatusCode(const std::string& input,
181 const YAML::Node& node);
182template <>
183struct string_to_enum_traits<com::robotraconteur::gps::GpsMeasurementStatusCode::GpsMeasurementStatusCode>
184{
185 static com::robotraconteur::gps::GpsMeasurementStatusCode::GpsMeasurementStatusCode string_to_enum(
186 const std::string& s, const YAML::Node& node)
187 {
188 return (com::robotraconteur::gps::GpsMeasurementStatusCode::GpsMeasurementStatusCode)
189 string_to_enum_GpsMeasurementStatusCode(s, node);
190 }
191};
192ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_ImageEncoding(const std::string& input,
193 const YAML::Node& node);
194template <>
195struct string_to_enum_traits<com::robotraconteur::image::ImageEncoding::ImageEncoding>
196{
197 static com::robotraconteur::image::ImageEncoding::ImageEncoding string_to_enum(const std::string& s,
198 const YAML::Node& node)
199 {
200 return (com::robotraconteur::image::ImageEncoding::ImageEncoding)string_to_enum_ImageEncoding(s, node);
201 }
202};
203ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_InterpolationMode(const std::string& input,
204 const YAML::Node& node);
205template <>
206struct string_to_enum_traits<com::robotraconteur::robotics::trajectory::InterpolationMode::InterpolationMode>
207{
208 static com::robotraconteur::robotics::trajectory::InterpolationMode::InterpolationMode string_to_enum(
209 const std::string& s, const YAML::Node& node)
210 {
211 return (com::robotraconteur::robotics::trajectory::InterpolationMode::InterpolationMode)
212 string_to_enum_InterpolationMode(s, node);
213 }
214};
215ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_JointAccelerationUnits(const std::string& input,
216 const YAML::Node& node);
217template <>
218struct string_to_enum_traits<com::robotraconteur::robotics::joints::JointAccelerationUnits::JointAccelerationUnits>
219{
220 static com::robotraconteur::robotics::joints::JointAccelerationUnits::JointAccelerationUnits string_to_enum(
221 const std::string& s, const YAML::Node& node)
222 {
223 return (com::robotraconteur::robotics::joints::JointAccelerationUnits::JointAccelerationUnits)
224 string_to_enum_JointAccelerationUnits(s, node);
225 }
226};
227ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_JointEffortUnits(const std::string& input,
228 const YAML::Node& node);
229template <>
230struct string_to_enum_traits<com::robotraconteur::robotics::joints::JointEffortUnits::JointEffortUnits>
231{
232 static com::robotraconteur::robotics::joints::JointEffortUnits::JointEffortUnits string_to_enum(
233 const std::string& s, const YAML::Node& node)
234 {
235 return (com::robotraconteur::robotics::joints::JointEffortUnits::JointEffortUnits)
236 string_to_enum_JointEffortUnits(s, node);
237 }
238};
239ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_JointJerkUnits(const std::string& input,
240 const YAML::Node& node);
241template <>
242struct string_to_enum_traits<com::robotraconteur::robotics::joints::JointJerkUnits::JointJerkUnits>
243{
244 static com::robotraconteur::robotics::joints::JointJerkUnits::JointJerkUnits string_to_enum(const std::string& s,
245 const YAML::Node& node)
246 {
247 return (com::robotraconteur::robotics::joints::JointJerkUnits::JointJerkUnits)string_to_enum_JointJerkUnits(
248 s, node);
249 }
250};
251ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_JointPositionUnits(const std::string& input,
252 const YAML::Node& node);
253template <>
254struct string_to_enum_traits<com::robotraconteur::robotics::joints::JointPositionUnits::JointPositionUnits>
255{
256 static com::robotraconteur::robotics::joints::JointPositionUnits::JointPositionUnits string_to_enum(
257 const std::string& s, const YAML::Node& node)
258 {
259 return (com::robotraconteur::robotics::joints::JointPositionUnits::JointPositionUnits)
260 string_to_enum_JointPositionUnits(s, node);
261 }
262};
263ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_JointType(const std::string& input, const YAML::Node& node);
264template <>
265struct string_to_enum_traits<com::robotraconteur::robotics::joints::JointType::JointType>
266{
267 static com::robotraconteur::robotics::joints::JointType::JointType string_to_enum(const std::string& s,
268 const YAML::Node& node)
269 {
270 return (com::robotraconteur::robotics::joints::JointType::JointType)string_to_enum_JointType(s, node);
271 }
272};
273ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_JointVelocityUnits(const std::string& input,
274 const YAML::Node& node);
275template <>
276struct string_to_enum_traits<com::robotraconteur::robotics::joints::JointVelocityUnits::JointVelocityUnits>
277{
278 static com::robotraconteur::robotics::joints::JointVelocityUnits::JointVelocityUnits string_to_enum(
279 const std::string& s, const YAML::Node& node)
280 {
281 return (com::robotraconteur::robotics::joints::JointVelocityUnits::JointVelocityUnits)
282 string_to_enum_JointVelocityUnits(s, node);
283 }
284};
285ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_JoystickCapabilities(const std::string& input,
286 const YAML::Node& node);
287template <>
288struct string_to_enum_traits<com::robotraconteur::hid::joystick::JoystickCapabilities::JoystickCapabilities>
289{
290 static com::robotraconteur::hid::joystick::JoystickCapabilities::JoystickCapabilities string_to_enum(
291 const std::string& s, const YAML::Node& node)
292 {
293 return (com::robotraconteur::hid::joystick::JoystickCapabilities::JoystickCapabilities)
294 string_to_enum_JoystickCapabilities(s, node);
295 }
296};
297ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_JoystickHatState(const std::string& input,
298 const YAML::Node& node);
299template <>
300struct string_to_enum_traits<com::robotraconteur::hid::joystick::JoystickHatState::JoystickHatState>
301{
302 static com::robotraconteur::hid::joystick::JoystickHatState::JoystickHatState string_to_enum(const std::string& s,
303 const YAML::Node& node)
304 {
305 return (com::robotraconteur::hid::joystick::JoystickHatState::JoystickHatState)string_to_enum_JoystickHatState(
306 s, node);
307 }
308};
309ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_MeshType(const std::string& input, const YAML::Node& node);
310template <>
311struct string_to_enum_traits<com::robotraconteur::geometry::shapes::MeshType::MeshType>
312{
313 static com::robotraconteur::geometry::shapes::MeshType::MeshType string_to_enum(const std::string& s,
314 const YAML::Node& node)
315 {
316 return (com::robotraconteur::geometry::shapes::MeshType::MeshType)string_to_enum_MeshType(s, node);
317 }
318};
319ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_OcTreeEncoding(const std::string& input,
320 const YAML::Node& node);
321template <>
322struct string_to_enum_traits<com::robotraconteur::octree::OcTreeEncoding::OcTreeEncoding>
323{
324 static com::robotraconteur::octree::OcTreeEncoding::OcTreeEncoding string_to_enum(const std::string& s,
325 const YAML::Node& node)
326 {
327 return (com::robotraconteur::octree::OcTreeEncoding::OcTreeEncoding)string_to_enum_OcTreeEncoding(s, node);
328 }
329};
330ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_RobotCapabilities(const std::string& input,
331 const YAML::Node& node);
332template <>
333struct string_to_enum_traits<com::robotraconteur::robotics::robot::RobotCapabilities::RobotCapabilities>
334{
335 static com::robotraconteur::robotics::robot::RobotCapabilities::RobotCapabilities string_to_enum(
336 const std::string& s, const YAML::Node& node)
337 {
338 return (com::robotraconteur::robotics::robot::RobotCapabilities::RobotCapabilities)
339 string_to_enum_RobotCapabilities(s, node);
340 }
341};
342ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_RobotCommandMode(const std::string& input,
343 const YAML::Node& node);
344template <>
345struct string_to_enum_traits<com::robotraconteur::robotics::robot::RobotCommandMode::RobotCommandMode>
346{
347 static com::robotraconteur::robotics::robot::RobotCommandMode::RobotCommandMode string_to_enum(
348 const std::string& s, const YAML::Node& node)
349 {
350 return (com::robotraconteur::robotics::robot::RobotCommandMode::RobotCommandMode)
351 string_to_enum_RobotCommandMode(s, node);
352 }
353};
354ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_RobotControllerState(const std::string& input,
355 const YAML::Node& node);
356template <>
357struct string_to_enum_traits<com::robotraconteur::robotics::robot::RobotControllerState::RobotControllerState>
358{
359 static com::robotraconteur::robotics::robot::RobotControllerState::RobotControllerState string_to_enum(
360 const std::string& s, const YAML::Node& node)
361 {
362 return (com::robotraconteur::robotics::robot::RobotControllerState::RobotControllerState)
363 string_to_enum_RobotControllerState(s, node);
364 }
365};
366ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_RobotOperationalMode(const std::string& input,
367 const YAML::Node& node);
368template <>
369struct string_to_enum_traits<com::robotraconteur::robotics::robot::RobotOperationalMode::RobotOperationalMode>
370{
371 static com::robotraconteur::robotics::robot::RobotOperationalMode::RobotOperationalMode string_to_enum(
372 const std::string& s, const YAML::Node& node)
373 {
374 return (com::robotraconteur::robotics::robot::RobotOperationalMode::RobotOperationalMode)
375 string_to_enum_RobotOperationalMode(s, node);
376 }
377};
378ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_RobotStateFlags(const std::string& input,
379 const YAML::Node& node);
380template <>
381struct string_to_enum_traits<com::robotraconteur::robotics::robot::RobotStateFlags::RobotStateFlags>
382{
383 static com::robotraconteur::robotics::robot::RobotStateFlags::RobotStateFlags string_to_enum(const std::string& s,
384 const YAML::Node& node)
385 {
386 return (com::robotraconteur::robotics::robot::RobotStateFlags::RobotStateFlags)string_to_enum_RobotStateFlags(
387 s, node);
388 }
389};
390ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_RobotTypeCode(const std::string& input,
391 const YAML::Node& node);
392template <>
393struct string_to_enum_traits<com::robotraconteur::robotics::robot::RobotTypeCode::RobotTypeCode>
394{
395 static com::robotraconteur::robotics::robot::RobotTypeCode::RobotTypeCode string_to_enum(const std::string& s,
396 const YAML::Node& node)
397 {
398 return (com::robotraconteur::robotics::robot::RobotTypeCode::RobotTypeCode)string_to_enum_RobotTypeCode(s,
399 node);
400 }
401};
402ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_SensorDataFlags(const std::string& input,
403 const YAML::Node& node);
404template <>
405struct string_to_enum_traits<com::robotraconteur::sensor::SensorDataFlags::SensorDataFlags>
406{
407 static com::robotraconteur::sensor::SensorDataFlags::SensorDataFlags string_to_enum(const std::string& s,
408 const YAML::Node& node)
409 {
410 return (com::robotraconteur::sensor::SensorDataFlags::SensorDataFlags)string_to_enum_SensorDataFlags(s, node);
411 }
412};
413ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_SensorTypeCode(const std::string& input,
414 const YAML::Node& node);
415template <>
416struct string_to_enum_traits<com::robotraconteur::sensor::SensorTypeCode::SensorTypeCode>
417{
418 static com::robotraconteur::sensor::SensorTypeCode::SensorTypeCode string_to_enum(const std::string& s,
419 const YAML::Node& node)
420 {
421 return (com::robotraconteur::sensor::SensorTypeCode::SensorTypeCode)string_to_enum_SensorTypeCode(s, node);
422 }
423};
424ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_ServoCapabilities(const std::string& input,
425 const YAML::Node& node);
426template <>
427struct string_to_enum_traits<com::robotraconteur::servo::ServoCapabilities::ServoCapabilities>
428{
429 static com::robotraconteur::servo::ServoCapabilities::ServoCapabilities string_to_enum(const std::string& s,
430 const YAML::Node& node)
431 {
432 return (com::robotraconteur::servo::ServoCapabilities::ServoCapabilities)string_to_enum_ServoCapabilities(s,
433 node);
434 }
435};
436ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_ServoMode(const std::string& input, const YAML::Node& node);
437template <>
438struct string_to_enum_traits<com::robotraconteur::servo::ServoMode::ServoMode>
439{
440 static com::robotraconteur::servo::ServoMode::ServoMode string_to_enum(const std::string& s, const YAML::Node& node)
441 {
442 return (com::robotraconteur::servo::ServoMode::ServoMode)string_to_enum_ServoMode(s, node);
443 }
444};
445ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_ServoStateFlags(const std::string& input,
446 const YAML::Node& node);
447template <>
448struct string_to_enum_traits<com::robotraconteur::servo::ServoStateFlags::ServoStateFlags>
449{
450 static com::robotraconteur::servo::ServoStateFlags::ServoStateFlags string_to_enum(const std::string& s,
451 const YAML::Node& node)
452 {
453 return (com::robotraconteur::servo::ServoStateFlags::ServoStateFlags)string_to_enum_ServoStateFlags(s, node);
454 }
455};
456ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_ServoTypeCode(const std::string& input,
457 const YAML::Node& node);
458template <>
459struct string_to_enum_traits<com::robotraconteur::servo::ServoTypeCode::ServoTypeCode>
460{
461 static com::robotraconteur::servo::ServoTypeCode::ServoTypeCode string_to_enum(const std::string& s,
462 const YAML::Node& node)
463 {
464 return (com::robotraconteur::servo::ServoTypeCode::ServoTypeCode)string_to_enum_ServoTypeCode(s, node);
465 }
466};
467ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_SignalAccessLevel(const std::string& input,
468 const YAML::Node& node);
469template <>
470struct string_to_enum_traits<com::robotraconteur::signal::SignalAccessLevel::SignalAccessLevel>
471{
472 static com::robotraconteur::signal::SignalAccessLevel::SignalAccessLevel string_to_enum(const std::string& s,
473 const YAML::Node& node)
474 {
475 return (com::robotraconteur::signal::SignalAccessLevel::SignalAccessLevel)string_to_enum_SignalAccessLevel(
476 s, node);
477 }
478};
479ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_SignalDeviceStateFlags(const std::string& input,
480 const YAML::Node& node);
481template <>
482struct string_to_enum_traits<com::robotraconteur::signal::SignalDeviceStateFlags::SignalDeviceStateFlags>
483{
484 static com::robotraconteur::signal::SignalDeviceStateFlags::SignalDeviceStateFlags string_to_enum(
485 const std::string& s, const YAML::Node& node)
486 {
487 return (com::robotraconteur::signal::SignalDeviceStateFlags::SignalDeviceStateFlags)
488 string_to_enum_SignalDeviceStateFlags(s, node);
489 }
490};
491ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_SignalType(const std::string& input, const YAML::Node& node);
492template <>
493struct string_to_enum_traits<com::robotraconteur::signal::SignalType::SignalType>
494{
495 static com::robotraconteur::signal::SignalType::SignalType string_to_enum(const std::string& s,
496 const YAML::Node& node)
497 {
498 return (com::robotraconteur::signal::SignalType::SignalType)string_to_enum_SignalType(s, node);
499 }
500};
501ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_ToolCapabilities(const std::string& input,
502 const YAML::Node& node);
503template <>
504struct string_to_enum_traits<com::robotraconteur::robotics::tool::ToolCapabilities::ToolCapabilities>
505{
506 static com::robotraconteur::robotics::tool::ToolCapabilities::ToolCapabilities string_to_enum(
507 const std::string& s, const YAML::Node& node)
508 {
509 return (com::robotraconteur::robotics::tool::ToolCapabilities::ToolCapabilities)string_to_enum_ToolCapabilities(
510 s, node);
511 }
512};
513ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_ToolStateFlags(const std::string& input,
514 const YAML::Node& node);
515template <>
516struct string_to_enum_traits<com::robotraconteur::robotics::tool::ToolStateFlags::ToolStateFlags>
517{
518 static com::robotraconteur::robotics::tool::ToolStateFlags::ToolStateFlags string_to_enum(const std::string& s,
519 const YAML::Node& node)
520 {
521 return (com::robotraconteur::robotics::tool::ToolStateFlags::ToolStateFlags)string_to_enum_ToolStateFlags(s,
522 node);
523 }
524};
525ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_ToolTypeCode(const std::string& input,
526 const YAML::Node& node);
527template <>
528struct string_to_enum_traits<com::robotraconteur::robotics::tool::ToolTypeCode::ToolTypeCode>
529{
530 static com::robotraconteur::robotics::tool::ToolTypeCode::ToolTypeCode string_to_enum(const std::string& s,
531 const YAML::Node& node)
532 {
533 return (com::robotraconteur::robotics::tool::ToolTypeCode::ToolTypeCode)string_to_enum_ToolTypeCode(s, node);
534 }
535};
536ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_TrajectoryWaypointType(const std::string& input,
537 const YAML::Node& node);
538template <>
539struct string_to_enum_traits<com::robotraconteur::robotics::trajectory::TrajectoryWaypointType::TrajectoryWaypointType>
540{
541 static com::robotraconteur::robotics::trajectory::TrajectoryWaypointType::TrajectoryWaypointType string_to_enum(
542 const std::string& s, const YAML::Node& node)
543 {
544 return (com::robotraconteur::robotics::trajectory::TrajectoryWaypointType::TrajectoryWaypointType)
545 string_to_enum_TrajectoryWaypointType(s, node);
546 }
547};
548ROBOTRACONTEUR_COMPANION_INFOPARSER_API int string_to_enum_TriggerMode(const std::string& input,
549 const YAML::Node& node);
550template <>
551struct string_to_enum_traits<com::robotraconteur::imaging::TriggerMode::TriggerMode>
552{
553 static com::robotraconteur::imaging::TriggerMode::TriggerMode string_to_enum(const std::string& s,
554 const YAML::Node& node)
555 {
556 return (com::robotraconteur::imaging::TriggerMode::TriggerMode)string_to_enum_TriggerMode(s, node);
557 }
558};
559} // namespace yaml
560} // namespace InfoParser
561} // namespace Companion
562} // namespace RobotRaconteur