|
| Parser (std::string d, char t) |
|
std::vector< std::string > | Find (std::string tag) |
|
std::string | Find (std::string tag, size_t index, std::string value="") |
|
- Author
- fsimeone
Definition at line 16 of file AcousticDataFilter.cc.
◆ Parser()
Parser::Parser |
( |
std::string | d, |
|
|
char | t ) |
|
inline |
Definition at line 19 of file AcousticDataFilter.cc.
20 {
21 std::istringstream iss(d);
22 std::string token;
23
24 while (std::getline(iss, token, t))
25 {
26 boost::algorithm::trim(token);
27 size_t pos = token.find('=');
28 std::string key=token.substr(0, pos);
29 std::string value=token.substr(pos+1);
30 boost::algorithm::trim(key);
31 boost::algorithm::trim(value);
33 }
34 }
std::multimap< std::string, std::string > mmap
◆ Find() [1/2]
std::vector< std::string > Parser::Find |
( |
std::string | tag | ) |
|
|
inline |
◆ Find() [2/2]
std::string Parser::Find |
( |
std::string | tag, |
|
|
size_t | index, |
|
|
std::string | value = "" ) |
|
inline |
Definition at line 49 of file AcousticDataFilter.cc.
50 {
52
55 else
56 return value;
57 }
std::vector< std::string > Find(std::string tag)
◆ mmap
The documentation for this class was generated from the following file: