The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
Gaudi::Parsers::StringGrammar< Iterator, Skipper > Struct Template Reference

#include </builds/gaudi/Gaudi/GaudiCoreSvc/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 87 of file Grammars.h.

Member Typedef Documentation

◆ ResultT [1/2]

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

Definition at line 46 of file Grammar.h.

◆ ResultT [2/2]

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

Definition at line 89 of file Grammars.h.

Constructor & Destructor Documentation

◆ StringGrammar() [1/2]

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

Definition at line 47 of file Grammar.h.

48 begin_quote = enc::char_( "\"'" );
50
52 *( ( enc::char_( '\\' ) >> quote( qi::_a ) )[qi::_val += qi::_a] |
53 ( enc::char_[qi::_val += qi::_1] - quote( qi::_a ) ) ) >>
54 quote( qi::_a )];
55 }
qi::rule< Iterator, void(char)> quote
Definition Grammar.h:58
qi::rule< Iterator, char()> begin_quote
Definition Grammar.h:57
qi::rule< Iterator, std::string(), qi::locals< char >, Skipper > str
Definition Grammar.h:56

◆ StringGrammar() [2/2]

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

Definition at line 91 of file Grammars.h.

92 begin_quote = enc::char_( "\"'" );
94
96 *( ( enc::char_( '\\' ) >> quote( qi::_a ) )[qi::_val += qi::_a] |
97 ( enc::char_( '\\' ) >> enc::char_( '\\' ) )[qi::_val += '\\'] |
98 ( enc::char_[qi::_val += qi::_1] - quote( qi::_a ) ) ) > quote( qi::_a )];
99 }

Member Data Documentation

◆ begin_quote

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

Definition at line 57 of file Grammar.h.

◆ quote

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

Definition at line 58 of file Grammar.h.

◆ str

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

Definition at line 56 of file Grammar.h.


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