Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
driver
src
sick_scan_config_internal.cpp
Go to the documentation of this file.
1
//
2
// Created by michael on 10/11/18.
3
//
4
5
#include "
sick_scan/sick_scan_config_internal.h
"
6
#include <string>
7
#include <map>
8
void
SickScanConfigInternal::setValue
(std::string key, std::string val)
9
{
10
storedConfig
[key] = val;
11
12
}
13
14
15
void
SickScanConfigInternal::setValue
(std::string key,
bool
val)
16
{
17
std::string valStr;
18
if
(val ==
true
)
19
{
20
valStr =
"True"
;
21
}
22
else
23
{
24
valStr =
"False"
;
25
}
26
storedConfig
[key] = valStr;
27
28
}
29
30
std::string
SickScanConfigInternal::getValue
(std::string key)
31
{
32
std::string tmp;
33
tmp =
storedConfig
[key];
34
return
tmp;
35
}
36
37
bool
SickScanConfigInternal::getBoolValue
(std::string key)
38
{
39
bool
retVal =
false
;
40
std::string tmp;
41
tmp =
storedConfig
[key];
42
if
(tmp.size()>0)
43
{
44
if
((tmp[0] ==
't'
) || (tmp[0] ==
'T'
))
45
{
46
retVal =
false
;
47
}
48
49
}
50
return
(retVal);
51
}
SickScanConfigInternal::getBoolValue
bool getBoolValue(std::string key)
Definition:
sick_scan_config_internal.cpp:37
SickScanConfigInternal::setValue
void setValue(std::string key, std::string val)
Definition:
sick_scan_config_internal.cpp:8
SickScanConfigInternal::getValue
std::string getValue(std::string key)
Definition:
sick_scan_config_internal.cpp:30
sick_scan_config_internal.h
SickScanConfigInternal::storedConfig
std::map< std::string, std::string > storedConfig
Definition:
sick_scan_config_internal.h:30
sick_scan
Author(s): Michael Lehning
, Jochen Sprickerhof
, Martin Günther
autogenerated on Tue Jul 9 2019 04:55:32