ConfigParser Class Reference

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

Public Member Functions

 ConfigParser (MultiNodeRapidXMLReader nodes)
 
 ConfigParser (RapidXmlReaderNode &hardwareConfigNode)
 
HardwareConfiggetHardwareConfig ()
 Get the parsed Config object hierarchy. More...
 
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. More...
 
void parse ()
 Parse the input nodes given in constructor. More...
 

Detailed Description

Definition at line 19 of file ConfigParser.h.

Constructor & Destructor Documentation

◆ ConfigParser() [1/2]

Definition at line 17 of file ConfigParser.cpp.

◆ ConfigParser() [2/2]

ConfigParser ( RapidXmlReaderNode hardwareConfigNode)

Definition at line 21 of file ConfigParser.cpp.

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.

Definition at line 95 of file ConfigParser.cpp.

◆ 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

Definition at line 89 of file ConfigParser.cpp.

◆ parse()

void parse ( )

Parse the input nodes given in constructor.

Exceptions
ParserErrorif some kind of error occured

Definition at line 27 of file ConfigParser.cpp.

+ Here is the call graph for this function:

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