The Gaudi Framework  v30r3 (a5ef0a68)
Gaudi::Parsers::StringGrammar< Iterator, Skipper > Struct Template Reference

#include <src/JobOptionsSvc/Grammar.h>

Inheritance diagram for Gaudi::Parsers::StringGrammar< Iterator, Skipper >:
Collaboration diagram for Gaudi::Parsers::StringGrammar< Iterator, Skipper >:

Public Types

typedef std::string ResultT
 
typedef std::string ResultT
 

Public Member Functions

 StringGrammar ()
 
 StringGrammar ()
 

Public Attributes

qi::rule< Iterator, std::string(), qi::locals< char >, Skipperstr
 
qi::rule< Iterator, char()> begin_quote
 
qi::rule< Iterator, void(char)> quote
 

Detailed Description

template<typename Iterator, typename Skipper>
struct Gaudi::Parsers::StringGrammar< Iterator, Skipper >

Definition at line 53 of file Grammar.h.

Member Typedef Documentation

template<typename Iterator, typename Skipper>
typedef std::string Gaudi::Parsers::StringGrammar< Iterator, Skipper >::ResultT

Definition at line 55 of file Grammar.h.

template<typename Iterator, typename Skipper>
typedef std::string Gaudi::Parsers::StringGrammar< Iterator, Skipper >::ResultT

Definition at line 92 of file GrammarsV2.h.

Constructor & Destructor Documentation

template<typename Iterator, typename Skipper>
Gaudi::Parsers::StringGrammar< Iterator, Skipper >::StringGrammar ( )
inline

Definition at line 57 of file Grammar.h.

57  : StringGrammar::base_type( str )
58  {
59  begin_quote = enc::char_( "\"'" );
60  quote = enc::char_( qi::_r1 );
61 
62  str = qi::lexeme[begin_quote[qi::_a = qi::_1] >>
63  *( ( enc::char_( '\\' ) >> quote( qi::_a ) )[qi::_val += qi::_a] |
64  ( enc::char_[qi::_val += qi::_1] - quote( qi::_a ) ) ) >>
65  quote( qi::_a )];
66  }
qi::rule< Iterator, void(char)> quote
Definition: Grammar.h:70
qi::rule< Iterator, std::string(), qi::locals< char >, Skipper > str
Definition: Grammar.h:68
qi::rule< Iterator, char()> begin_quote
Definition: Grammar.h:69
template<typename Iterator, typename Skipper>
Gaudi::Parsers::StringGrammar< Iterator, Skipper >::StringGrammar ( )
inline

Definition at line 94 of file GrammarsV2.h.

94  : StringGrammar::base_type( str )
95  {
96  begin_quote = enc::char_( "\"'" );
97  quote = enc::char_( qi::_r1 );
98 
99  str = qi::lexeme[begin_quote[qi::_a = qi::_1] >
100  *( ( enc::char_( '\\' ) >> quote( qi::_a ) )[qi::_val += qi::_a] |
101  ( enc::char_[qi::_val += qi::_1] - quote( qi::_a ) ) ) > quote( qi::_a )];
102  }
qi::rule< Iterator, void(char)> quote
Definition: Grammar.h:70
qi::rule< Iterator, std::string(), qi::locals< char >, Skipper > str
Definition: Grammar.h:68
qi::rule< Iterator, char()> begin_quote
Definition: Grammar.h:69

Member Data Documentation

template<typename Iterator, typename Skipper>
qi::rule< Iterator, char()> Gaudi::Parsers::StringGrammar< Iterator, Skipper >::begin_quote

Definition at line 69 of file Grammar.h.

template<typename Iterator, typename Skipper>
qi::rule< Iterator, void(char)> Gaudi::Parsers::StringGrammar< Iterator, Skipper >::quote

Definition at line 70 of file Grammar.h.

template<typename Iterator, typename Skipper>
qi::rule< Iterator, std::string(), qi::locals< char >, Skipper > Gaudi::Parsers::StringGrammar< Iterator, Skipper >::str

Definition at line 68 of file Grammar.h.


The documentation for this struct was generated from the following files: