#include <Grammars.h>
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 |
Classes | |
struct | definition |
Vanya BELYAEV ibelyaev@physics.syr.edu
Definition at line 341 of file Grammars.h.
typedef KeyGrammarT::ResultT Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::KeyT |
Definition at line 350 of file Grammars.h.
typedef ValueGrammarT::ResultT Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::ValueT |
Definition at line 351 of file Grammars.h.
typedef std::pair<KeyT,ValueT> Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::ResultT |
Definition at line 352 of file Grammars.h.
Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::PairGrammar | ( | const std::string & | delim = "," |
) | [inline] |
void Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::matchFirst | ( | const KeyT & | first | ) | const [inline] |
void Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::matchSecond | ( | const ValueT & | second | ) | const [inline] |
callback. Action when we match second value
Definition at line 363 of file Grammars.h.
00363 { this->val().second = second; }
const std::string& Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::delim | ( | ) | const [inline] |
Definition at line 386 of file Grammars.h.
00386 { return m_delim ; }
void Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::setDelim | ( | const std::string & | delim | ) | [inline] |
Set delimiters for pair values.
delim | Delimiter |
Definition at line 390 of file Grammars.h.
std::string Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::m_delim [private] |
Definition at line 392 of file Grammars.h.