CYCLUS
|
A class for extracting information from a given XML parser.
Definition at line 22 of file infile_tree.h.
#include <infile_tree.h>
Public Member Functions | |
virtual std::string | GetElementName (int index=0) |
virtual std::string | GetString (std::string query, int index=0) |
InfileTree (XMLParser &parser) | |
virtual int | NElements () |
virtual int | NMatches (std::string query) |
InfileTree * | SubTree (std::string query, int index=0) |
virtual | ~InfileTree () |
Protected Member Functions | |
virtual InfileTree * | GetEngineFromQuery (std::string query, int index) |
InfileTree (xmlpp::Node *node) | |
void | SetCurrentNode (xmlpp::Node *node) |
cyclus::InfileTree::InfileTree | ( | XMLParser & | parser | ) |
constructor given a parser
parser | the xml parser |
Definition at line 22 of file infile_tree.cc.
|
virtual |
Definition at line 31 of file infile_tree.cc.
|
protected |
constructor given a node
node | the node to set as the current node |
Definition at line 27 of file infile_tree.cc.
|
virtual |
investigates the current status and returns a string representing the name of a given index
index | the index of the queried element |
Definition at line 100 of file infile_tree.cc.
|
protectedvirtual |
every derived infile must return a new instance initialized by a query.
query | the query |
index | the index of the queried element |
Definition at line 120 of file infile_tree.cc.
|
virtual |
investigates the current status and returns a string representing the content of a query at a given index
query | the query |
index | the index of the queried element |
Definition at line 62 of file infile_tree.cc.
|
virtual |
Definition at line 42 of file infile_tree.cc.
|
virtual |
investigates the current status and returns the number of elements matching a query
query | the query |
Definition at line 57 of file infile_tree.cc.
|
protected |
sets the current node to a given node
node | the new current node |
InfileTree * cyclus::InfileTree::SubTree | ( | std::string | query, |
int | index = 0 ) |
populates a child infile based on a query and index
query | the query |
index | the index of the queried element |
Definition at line 139 of file infile_tree.cc.