Pandora
Pandora source code navigator
|
#include "XmlHelper.h"
Static Public Member Functions | |
template<typename T > | |
static StatusCode | ReadValue (const TiXmlHandle &xmlHandle, const std::string &xmlElementName, T &t) |
Read a value from an xml element. | |
template<typename T > | |
static StatusCode | ReadVectorOfValues (const TiXmlHandle &xmlHandle, const std::string &xmlElementName, std::vector< T > &vector) |
Read a vector of values from a (space separated) list in an xml element. | |
template<typename T > | |
static StatusCode | Read2DVectorOfValues (const TiXmlHandle &xmlHandle, const std::string &xmlElementName, const std::string &rowName, std::vector< std::vector< T > > &vector) |
Read a two-dimensional array of values into a vector of vectors. Each row of values must be contained within <rowname></rowname> xml tags, whilst the values in the row must be space separated. | |
static StatusCode | ProcessAlgorithm (const Algorithm &algorithm, const TiXmlHandle &xmlHandle, const std::string &description, std::string &algorithmName) |
Process an algorithm described in an xml element with a matching "description = ..." attribute. | |
static StatusCode | ProcessFirstAlgorithm (const Algorithm &algorithm, const TiXmlHandle &xmlHandle, std::string &algorithmName) |
Process a single algorithm described in an xml file (the first found by the xml handle) | |
static StatusCode | ProcessAlgorithmList (const Algorithm &algorithm, const TiXmlHandle &xmlHandle, const std::string &listName, StringVector &algorithmNames) |
Process a list of daughter algorithms in an xml file. | |
static StatusCode | ProcessAlgorithmTool (const Algorithm &algorithm, const TiXmlHandle &xmlHandle, const std::string &description, AlgorithmTool *&pAlgorithmTool) |
Process an algorithm tool described in an xml element with a matching "description = ..." attribute. | |
static StatusCode | ProcessFirstAlgorithmTool (const Algorithm &algorithm, const TiXmlHandle &xmlHandle, AlgorithmTool *&pAlgorithmTool) |
Process a single algorithm tool described in an xml file (the first found by the xml handle) | |
static StatusCode | ProcessAlgorithmToolList (const Algorithm &algorithm, const TiXmlHandle &xmlHandle, const std::string &listName, AlgorithmToolVector &algorithmToolVector) |
Process a list of algorithms tools in an xml file. | |
static void | TokenizeString (const std::string &inputString, StringVector &tokens, const std::string &delimiter=" ") |
Tokenize a string. | |
template<> | |
StatusCode | ReadValue (const TiXmlHandle &xmlHandle, const std::string &xmlElementName, CartesianVector &t) |
template<> | |
StatusCode | ReadValue (const TiXmlHandle &xmlHandle, const std::string &xmlElementName, TrackState &t) |
template<> | |
StatusCode | ReadValue (const TiXmlHandle &xmlHandle, const std::string &xmlElementName, bool &t) |
XmlHelper class.
Definition at line 25 of file XmlHelper.h.
|
static |
Process an algorithm described in an xml element with a matching "description = ..." attribute.
algorithm | the parent algorithm calling this function |
xmlHandle | the relevant xml handle |
description | the description attribute of the algorithm xml element |
algorithmName | to receive the name of the algorithm instance |
Definition at line 16 of file XmlHelper.cc.
|
static |
Process a list of daughter algorithms in an xml file.
algorithm | the parent algorithm calling this function |
xmlHandle | the relevant xml handle |
listName | the name of the algorithm list |
algorithmNames | to receive the names of the algorithm instances |
Definition at line 48 of file XmlHelper.cc.
|
static |
Process an algorithm tool described in an xml element with a matching "description = ..." attribute.
algorithm | the parent algorithm calling this function |
xmlHandle | the relevant xml handle |
description | the description attribute of the algorithm tool xml element |
pAlgorithmTool | to receive the address of the algorithm tool instance |
Definition at line 69 of file XmlHelper.cc.
|
static |
Process a list of algorithms tools in an xml file.
algorithm | the parent algorithm calling this function |
xmlHandle | the relevant xml handle |
listName | the name of the algorithm tool list |
algorithmToolVector | to receive the vector of addresses of the algorithm tool instances |
Definition at line 101 of file XmlHelper.cc.
|
inlinestatic |
Process a single algorithm described in an xml file (the first found by the xml handle)
algorithm | the parent algorithm calling this function |
xmlHandle | the relevant xml handle |
algorithmName | to receive the name of the algorithm instance |
Definition at line 293 of file XmlHelper.h.
|
inlinestatic |
Process a single algorithm tool described in an xml file (the first found by the xml handle)
algorithm | the parent algorithm calling this function |
xmlHandle | the relevant xml handle |
pAlgorithmTool | to receive the address of the algorithm tool instance |
Definition at line 301 of file XmlHelper.h.
|
inlinestatic |
Read a two-dimensional array of values into a vector of vectors. Each row of values must be contained within <rowname></rowname> xml tags, whilst the values in the row must be space separated.
xmlHandle | the relevant xml handle |
xmlElementName | the name of the xml element to examine |
rowName | the row name |
vector | to receive the 2d vector of values |
Definition at line 255 of file XmlHelper.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Read a value from an xml element.
xmlHandle | the relevant xml handle |
xmlElementName | the name of the xml element to examine |
t | to receive the value |
Definition at line 136 of file XmlHelper.h.
|
inlinestatic |
|
inlinestatic |
Read a vector of values from a (space separated) list in an xml element.
xmlHandle | the relevant xml handle |
xmlElementName | the name of the xml element to examine |
vector | to receive the vector of values |
Definition at line 229 of file XmlHelper.h.
|
static |
Tokenize a string.
inputString | the input string |
tokens | to receive the resulting tokens |
delimiter | the specified delimeter |
Definition at line 122 of file XmlHelper.cc.