Parse attribute strings allowing iteration over the various attributes.
More...
#include <GaudiKernel/AttribStringParser.h>
|
boost::sregex_iterator | parse () const |
|
Parse attribute strings allowing iteration over the various attributes.
Example of usage:
for(auto attrib: Parser(input)) {
}
Definition at line 30 of file AttribStringParser.h.
Gaudi::Utils::AttribStringParser::AttribStringParser |
( |
std::string |
data, |
|
|
bool |
expand_vars = true |
|
) |
| |
|
inline |
Initialize the parsing of an attribute string.
- Parameters
-
data | attribute string |
expand_vars | if true (default) expand environment variables in values |
Definition at line 119 of file AttribStringParser.h.
boost::sregex_iterator Gaudi::Utils::AttribStringParser::parse |
( |
| ) |
const |
|
inlineprivate |
Definition at line 128 of file AttribStringParser.h.
129 static const boost::regex
exp{
"[[:space:]]*([^[:space:]]+)[[:space:]]*=[[:space:]]*'(.*?)'"};
AttribStringParser::Iterator end(const AttribStringParser &)
friend Iterator begin(const AttribStringParser &)
Definition at line 134 of file AttribStringParser.h.
boost::spirit::classic::position_iterator2< ForwardIterator > Iterator
bool Gaudi::Utils::AttribStringParser::m_expandVars |
|
private |
The documentation for this class was generated from the following file: