The Gaudi Framework  v30r3 (a5ef0a68)
Gaudi::Parsers::NodeOperations Struct Referencefinal

#include <src/JobOptionsSvc/Node.h>

Classes

struct  value
 

Public Member Functions

void operator() (Node &node, Node::NodeType type) const
 
void operator() (Node &node, Node child) const
 
void operator() (Node &node, std::string val) const
 
void operator() (Node &node, boost::iterator_range< Iterator > range) const
 
void operator() (Node &node, bool val) const
 
void operator() (Node &node, const Iterator &iter) const
 

Detailed Description

Definition at line 71 of file Node.h.

Member Function Documentation

void Gaudi::Parsers::NodeOperations::operator() ( Node node,
Node::NodeType  type 
) const
inline

Definition at line 75 of file Node.h.

75 { node.type = type; }
void Gaudi::Parsers::NodeOperations::operator() ( Node node,
Node  child 
) const
inline

Definition at line 77 of file Node.h.

77 { node.children.push_back( std::move( child ) ); }
T move(T...args)
void Gaudi::Parsers::NodeOperations::operator() ( Node node,
std::string  val 
) const
inline

Definition at line 79 of file Node.h.

79 { node.value = std::move( val ); }
T move(T...args)
void Gaudi::Parsers::NodeOperations::operator() ( Node node,
boost::iterator_range< Iterator range 
) const
inline

Definition at line 81 of file Node.h.

82  {
83  node.value = boost::copy_range<std::string>( range );
84  }
NamedRange_< CONTAINER > range(const CONTAINER &cnt, std::string name)
simple function to create the named range from arbitrary container
Definition: NamedRange.h:121
void Gaudi::Parsers::NodeOperations::operator() ( Node node,
bool  val 
) const
inline

Definition at line 86 of file Node.h.

86 { node.value = val ? "1" : "0"; }
void Gaudi::Parsers::NodeOperations::operator() ( Node node,
const Iterator iter 
) const
inline

Definition at line 88 of file Node.h.

89  {
90  const IteratorPosition& pos = iter.get_position();
91  node.position = Position( pos.file, pos.line, pos.column );
92  }
boost::spirit::classic::file_position_base< std::string > IteratorPosition
Definition: Iterator.h:19

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