2 #ifndef JOBOPTIONSVC_NODE_H_
3 #define JOBOPTIONSVC_NODE_H_
16 #include <boost/fusion/include/adapt_struct.hpp>
17 #include <boost/fusion/include/unused.hpp>
18 #include <boost/range/iterator_range.hpp>
23 namespace Gaudi {
namespace Parsers {
38 std::string
name()
const;
46 template<
typename A,
typename B = boost::fusion::unused_type,
47 typename C = boost::fusion::unused_type,
48 typename D = boost::fusion::unused_type>
66 node.
value = boost::copy_range<std::string>(
range);
70 node.
value = val?
"1":
"0";
83 BOOST_FUSION_ADAPT_STRUCT(
87 (std::vector<Gaudi::Parsers::Node>, children)
90 #endif // JOBOPTIONSVC_NODE_H_
void operator()(Node &node, Node::NodeType type) const
void operator()(Node &node, bool val) const
std::string ToString() const
void operator()(Node &node, Node &child) const
boost::spirit::classic::position_iterator2< ForwardIterator > Iterator
void operator()(Node &node, const std::string &val) const
void operator()(Node &node, const Iterator &iter) const
This is a number of static methods for bootstrapping the Gaudi framework.
NamedRange_< CONTAINER > range(const CONTAINER &cnt, const std::string &name)
simple function to create the named range form arbitrary container
boost::spirit::classic::file_position_base< std::string > IteratorPosition
std::vector< Node > children
void operator()(Node &node, boost::iterator_range< Iterator > range) const