sick_scan_config_internal.cpp
Go to the documentation of this file.
1 //
2 // Created by michael on 10/11/18.
3 //
4 
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 
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 }
bool getBoolValue(std::string key)
void setValue(std::string key, std::string val)
std::string getValue(std::string key)
std::map< std::string, std::string > storedConfig


sick_scan
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Tue Jul 9 2019 04:55:32