|
Gaudi Framework, version v21r4 |
| Home | Generated: 7 Sep 2009 |
#include <Grammars.h>

Definition at line 351 of file 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 |
| typedef KeyGrammarT::ResultT Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::KeyT |
Definition at line 360 of file Grammars.h.
| typedef ValueGrammarT::ResultT Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::ValueT |
Definition at line 361 of file Grammars.h.
| typedef std::pair<KeyT,ValueT> Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::ResultT |
Definition at line 362 of file Grammars.h.
| Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::PairGrammar | ( | const std::string & | delim = "," |
) | [inline] |
Constructor.
| delim | Delimiter for pair values |
Definition at line 367 of file Grammars.h.
00368 : m_delim(delim) {}
| 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 373 of file Grammars.h.
00373 { this->val().second = second; }
| const std::string& Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::delim | ( | ) | const [inline] |
Definition at line 396 of file Grammars.h.
00396 { 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 400 of file Grammars.h.
std::string Gaudi::Parsers::PairGrammar< KeyGrammarT, ValueGrammarT >::m_delim [private] |
Definition at line 402 of file Grammars.h.