33#ifndef _uhal_grammars_NodeTreeParametersGrammar_hpp_
34#define _uhal_grammars_NodeTreeParametersGrammar_hpp_
38#include <unordered_map>
41#include <boost/fusion/adapted/std_pair.hpp>
42#include <boost/spirit/include/qi_char.hpp>
43#include <boost/spirit/include/qi_grammar.hpp>
51 struct NodeTreeParametersGrammar : boost::spirit::qi::grammar<std::string::const_iterator, std::unordered_map<std::string, std::string>()>
56 boost::spirit::qi::rule<std::string::const_iterator, std::unordered_map<std::string, std::string>()>
query;
58 boost::spirit::qi::rule<std::string::const_iterator, std::pair<std::string, std::string>()>
pair;
60 boost::spirit::qi::rule<std::string::const_iterator, std::string()>
key;
62 boost::spirit::qi::rule<std::string::const_iterator, std::string()>
value;
A struct wrapping a set of rules as a grammar that can parse a NodeTreeParametersGrammar of the form ...
boost::spirit::qi::rule< std::string::const_iterator, std::string()> key
Boost spirit parsing rule for parsing the "name" part of the "name-value pairs" of a NodeTreeParamete...
boost::spirit::qi::rule< std::string::const_iterator, std::string()> value
Boost spirit parsing rule for parsing the "value" part of the "name-value pairs" of a NodeTreeParamet...
NodeTreeParametersGrammar()
Default Constructor where we will define the boost::qi rules relating the members.
boost::spirit::qi::rule< std::string::const_iterator, std::pair< std::string, std::string >()> pair
Boost spirit parsing rule for parsing each of the "name-value pairs" of a NodeTree Parameters attribu...
boost::spirit::qi::rule< std::string::const_iterator, std::unordered_map< std::string, std::string >()> query
Boost spirit parsing rule for parsing a NodeTree Parameters attribute