ConfigParser Class Reference

#include <armarx/control/hardware_config/ConfigParser.h>

Public Member Functions

 ConfigParser (MultiNodeRapidXMLReader nodes)
 
 ConfigParser (RapidXmlReaderNode &hardwareConfigNode)
 
HardwareConfig & getHardwareConfig ()
 Get the parsed Config object hierarchy.
 
std::vector< std::string > & getWarnings ()
 Get warnings that occured during parsing These are additional messages that the parser generated and are meant to be useful find logic issues within the file.
 
void parse ()
 Parse the input nodes given in constructor.
 

Constructor & Destructor Documentation

◆ ConfigParser() [1/2]

◆ ConfigParser() [2/2]

ConfigParser ( RapidXmlReaderNode & hardwareConfigNode)

Member Function Documentation

◆ getHardwareConfig()

HardwareConfig & getHardwareConfig ( )

Get the parsed Config object hierarchy.

If the ConfigParser::Parse did throw an exception the best appoximation is returned. If ConfigParser::Parse was not called before then the HardwareConfig object is empty.

◆ getWarnings()

std::vector< std::string > & getWarnings ( )

Get warnings that occured during parsing These are additional messages that the parser generated and are meant to be useful find logic issues within the file.

Returns
vector of warning strings

◆ parse()

void parse ( )

Parse the input nodes given in constructor.

Exceptions
ParserErrorif some kind of error occured

The documentation for this class was generated from the following files: