1 #ifndef JOBOPTIONSVC_NODE_H_ 2 #define JOBOPTIONSVC_NODE_H_ 15 #include <boost/fusion/include/adapt_struct.hpp> 16 #include <boost/fusion/include/unused.hpp> 17 #include <boost/range/iterator_range.hpp> 22 namespace Gaudi {
namespace Parsers {
44 template<
typename A,
typename B = boost::fusion::unused_type,
45 typename C = boost::fusion::unused_type,
46 typename D = boost::fusion::unused_type>
64 node.
value = boost::copy_range<std::string>(
range);
68 node.
value = val?
"1":
"0";
81 BOOST_FUSION_ADAPT_STRUCT(
88 #endif // JOBOPTIONSVC_NODE_H_
void operator()(Node &node, Node::NodeType type) const
void operator()(Node &node, Node child) const
void operator()(Node &node, bool val) const
NamedRange_< CONTAINER > range(const CONTAINER &cnt, std::string name)
simple function to create the named range from arbitrary container
std::string ToString(int indent=0) const
boost::spirit::classic::position_iterator2< ForwardIterator > Iterator
void operator()(Node &node, const Iterator &iter) const
boost::spirit::classic::file_position_base< std::string > IteratorPosition
Helper functions to set/get the application return code.
void operator()(Node &node, std::string val) const
std::vector< Node > children
void operator()(Node &node, boost::iterator_range< Iterator > range) const