segmentation
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
Functions
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
g
q
r
s
v
x
y
Functions
g
q
r
s
v
Variables
Files
File List
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
edison
src
SpeedUpLevelComm.cpp
1
/*
2
* Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3
* All rights reserved.
4
*
5
* This software may be modified and distributed under the terms of the
6
* BSD-3-Clause license. See the accompanying LICENSE file for details.
7
*/
8
9
// Autogenerated by Thrift Compiler (0.12.0-yarped)
10
//
11
// This is an automatically generated file.
12
// It could get re-generated if the ALLOW_IDL_GENERATION flag is on.
13
14
#include <yarp/os/Wire.h>
15
#include <yarp/os/idl/WireTypes.h>
16
#include <SpeedUpLevelComm.h>
17
18
int
SpeedUpLevelCommVocab::fromString(
const
std::string& input)
19
{
20
// definitely needs optimizing :-)
21
if
(input==
"NO_SPEEDUP_COMM"
) {
22
return
static_cast<
int
>
(NO_SPEEDUP_COMM);
23
}
24
if
(input==
"MED_SPEEDUP_COMM"
) {
25
return
static_cast<
int
>
(MED_SPEEDUP_COMM);
26
}
27
if
(input==
"HIGH_SPEEDUP_COMM"
) {
28
return
static_cast<
int
>
(HIGH_SPEEDUP_COMM);
29
}
30
return
-1;
31
}
32
std::string SpeedUpLevelCommVocab::toString(
int
input)
const
33
{
34
switch
(
static_cast<
SpeedUpLevelComm
>
(input)) {
35
case
NO_SPEEDUP_COMM:
36
return
"NO_SPEEDUP_COMM"
;
37
case
MED_SPEEDUP_COMM:
38
return
"MED_SPEEDUP_COMM"
;
39
case
HIGH_SPEEDUP_COMM:
40
return
"HIGH_SPEEDUP_COMM"
;
41
}
42
return
""
;
43
}
Generated by
1.9.1