The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
Gaudi::Parsers::NodeOperations Struct Referencefinal

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

Member Function Documentation

◆ operator()() [1/6]

void Gaudi::Parsers::NodeOperations::operator() ( Node & node,
bool val ) const
inline

Definition at line 80 of file Node.h.

80{ node.value = val ? "1" : "0"; }

◆ operator()() [2/6]

void Gaudi::Parsers::NodeOperations::operator() ( Node & node,
boost::iterator_range< Iterator > range ) const
inline

Definition at line 76 of file Node.h.

76 {
77 node.value = boost::copy_range<std::string>( range );
78 }
NamedRange_< CONTAINER > range(const CONTAINER &cnt, std::string name)
simple function to create the named range from arbitrary container
Definition NamedRange.h:111

◆ operator()() [3/6]

void Gaudi::Parsers::NodeOperations::operator() ( Node & node,
const Iterator & iter ) const
inline

Definition at line 82 of file Node.h.

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

◆ operator()() [4/6]

void Gaudi::Parsers::NodeOperations::operator() ( Node & node,
Node child ) const
inline

Definition at line 72 of file Node.h.

72{ node.children.push_back( std::move( child ) ); }

◆ operator()() [5/6]

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

Definition at line 70 of file Node.h.

70{ node.type = type; }

◆ operator()() [6/6]

void Gaudi::Parsers::NodeOperations::operator() ( Node & node,
std::string val ) const
inline

Definition at line 74 of file Node.h.

74{ node.value = std::move( val ); }

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