Logical name map: store information from xlmap file and provide it to the LogicalNameMappingBackend and its register accessors.
More...
#include <LogicalNameMapParser.h>
|
void | parseElement (const RegisterPath ¤tPath, const xmlpp::Element *element, BackendRegisterCatalogue< LNMBackendRegisterInfo > &catalogue) |
| called inside parseFile() to parse an XML element and its sub-elements recursively More...
|
|
void | parsingError (const xmlpp::Node *node, const std::string &message) |
| throw a parsing error with more information More...
|
|
template<typename ValueType > |
ValueType | getValueFromXmlSubnode (const xmlpp::Node *node, const std::string &subnodeName, BackendRegisterCatalogue< LNMBackendRegisterInfo > const &catalogue, bool hasDefault=false, ValueType defaultValue=ValueType()) |
| Build a Value object for a given subnode. More...
|
|
template<typename ValueType > |
std::vector< ValueType > | getValueVectorFromXmlSubnode (const xmlpp::Node *node, const std::string &subnodeName, BackendRegisterCatalogue< LNMBackendRegisterInfo > const &catalogue) |
|
template<> |
std::string | getValueFromXmlSubnode (const xmlpp::Node *node, const std::string &subnodeName, BackendRegisterCatalogue< LNMBackendRegisterInfo > const &catalogue, bool hasDefault, std::string defaultValue) |
|
Logical name map: store information from xlmap file and provide it to the LogicalNameMappingBackend and its register accessors.
Definition at line 26 of file LogicalNameMapParser.h.
◆ LogicalNameMapParser()
ChimeraTK::LogicalNameMapParser::LogicalNameMapParser |
( |
std::map< std::string, std::string > |
parameters, |
|
|
std::map< std::string, LNMVariable > & |
variables |
|
) |
| |
|
inline |
◆ getValueFromXmlSubnode() [1/3]
template<>
std::string ChimeraTK::LogicalNameMapParser::getValueFromXmlSubnode |
( |
const xmlpp::Node * |
node, |
|
|
const std::string & |
subnodeName, |
|
|
BackendRegisterCatalogue< LNMBackendRegisterInfo > const & |
catalogue, |
|
|
bool |
hasDefault, |
|
|
std::string |
defaultValue |
|
) |
| |
|
protected |
◆ getValueFromXmlSubnode() [2/3]
◆ getValueFromXmlSubnode() [3/3]
template<typename ValueType >
ValueType ChimeraTK::LogicalNameMapParser::getValueFromXmlSubnode |
( |
const xmlpp::Node * |
node, |
|
|
const std::string & |
subnodeName, |
|
|
BackendRegisterCatalogue< LNMBackendRegisterInfo > const & |
catalogue, |
|
|
bool |
hasDefault = false , |
|
|
ValueType |
defaultValue = ValueType() |
|
) |
| |
|
protected |
Build a Value object for a given subnode.
◆ getValueVectorFromXmlSubnode() [1/2]
template<typename ValueType >
◆ getValueVectorFromXmlSubnode() [2/2]
◆ parseElement()
◆ parseFile()
◆ parsingError()
void ChimeraTK::LogicalNameMapParser::parsingError |
( |
const xmlpp::Node * |
node, |
|
|
const std::string & |
message |
|
) |
| |
|
protected |
◆ _fileName
std::string ChimeraTK::LogicalNameMapParser::_fileName |
|
protected |
◆ _parameters
std::map<std::string, std::string> ChimeraTK::LogicalNameMapParser::_parameters |
|
protected |
actual register info map (register name to target information)
parameter map
Definition at line 65 of file LogicalNameMapParser.h.
◆ _variables
std::map<std::string, LNMVariable>& ChimeraTK::LogicalNameMapParser::_variables |
|
protected |
Reference to the variables map inside the LNM backend.
Is filled with initial values in the parser
Definition at line 68 of file LogicalNameMapParser.h.
◆ currentModule
The documentation for this class was generated from the following files: