|
ChimeraTK-DeviceAccess
03.18.00
|
Go to the documentation of this file.
11 #include <boost/shared_ptr.hpp>
29 LogicalNameMapParser(std::map<std::string, std::string> parameters, std::map<std::string, LNMVariable>& variables)
43 [[noreturn]]
void parsingError(
const xmlpp::Node* node,
const std::string& message);
46 template<
typename ValueType>
49 ValueType defaultValue = ValueType());
50 template<
typename ValueType>
72 std::string LogicalNameMapParser::getValueFromXmlSubnode<std::string>(
const xmlpp::Node* node,
74 bool hasDefault, std::string defaultValue);
std::map< std::string, std::string > _parameters
actual register info map (register name to target information)
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
std::map< std::string, LNMVariable > & _variables
Reference to the variables map inside the LNM backend.
RegisterPath currentModule
current register path in the map
void parsingError(const xmlpp::Node *node, const std::string &message)
throw a parsing error with more information
Logical name map: store information from xlmap file and provide it to the LogicalNameMappingBackend a...
Interface for backends to the register catalogue.
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.
LogicalNameMapParser(std::map< std::string, std::string > parameters, std::map< std::string, LNMVariable > &variables)
Constructor: parse map from XML file.
BackendRegisterCatalogue< LNMBackendRegisterInfo > parseFile(const std::string &fileName)
parse the given XML file
Class to store a register path name.
std::vector< ValueType > getValueVectorFromXmlSubnode(const xmlpp::Node *node, const std::string &subnodeName, BackendRegisterCatalogue< LNMBackendRegisterInfo > const &catalogue)
std::string _fileName
file name of the logical map