|
Gaudi Framework, version v22r2 |
| Home | Generated: Tue May 10 2011 |
The valid represenation of pairs are: ("abc",123) or ("abc","def") Inner types of pair depends on KeyGrammarT and ValueGrammarT grammars. More...
#include <Grammars.h>


Classes | |
| struct | definition |
Public Types | |
| typedef KeyGrammarT::ResultT | KeyT |
| typedef ValueGrammarT::ResultT | ValueT |
| typedef std::pair< KeyT, ValueT > | ResultT |
Public Member Functions | |
| PairGrammar (const std::string &delim=",") | |
| Constructor. | |
| void | matchFirst (const KeyT &first) const |
| callback. Action when we match first value | |
| void | matchSecond (const ValueT &second) const |
| callback. Action when we match second value | |
| const std::string & | delim () const |
| void | setDelim (const std::string &delim) |
| Set delimiters for pair values. | |
Private Attributes | |
| std::string | m_delim |
The valid represenation of pairs are: ("abc",123) or ("abc","def") Inner types of pair depends on KeyGrammarT and ValueGrammarT grammars.
Definition at line 353 of file Grammars.h.
| typedef KeyGrammarT::ResultT Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::KeyT |
Definition at line 362 of file Grammars.h.
| typedef std::pair<KeyT,ValueT> Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::ResultT |
Definition at line 364 of file Grammars.h.
| typedef ValueGrammarT::ResultT Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::ValueT |
Definition at line 363 of file Grammars.h.
| Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::PairGrammar | ( | const std::string & | delim = "," ) |
[inline] |
Constructor.
| delim | Delimiter for pair values |
Definition at line 369 of file Grammars.h.
: m_delim(delim) {}
| const std::string& Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::delim | ( | ) | const [inline] |
| void Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::matchFirst | ( | const KeyT & | first ) | const [inline] |
callback. Action when we match first value
Definition at line 373 of file Grammars.h.
{ this->val().first = first; }
| void Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::matchSecond | ( | const ValueT & | second ) | const [inline] |
callback. Action when we match second value
Definition at line 375 of file Grammars.h.
{ this->val().second = second; }
| void Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::setDelim | ( | const std::string & | delim ) | [inline] |
Set delimiters for pair values.
| delim | Delimiter |
Definition at line 402 of file Grammars.h.
std::string Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::m_delim [private] |
Definition at line 404 of file Grammars.h.