maliput_malidrive
|
Base class for parsing a tinyxml2::XMLElement node.
#include <src/maliput_malidrive/xodr/parser.h>
Public Member Functions | |
MALIDRIVE_NO_COPY_NO_MOVE_NO_ASSIGN (ParserBase) | |
ParserBase ()=delete | |
virtual | ~ParserBase ()=default |
ParserBase (tinyxml2::XMLElement *element, const ParserConfiguration &parser_configuration) | |
Creates an ParserBase from a tinyxml2::XMLElement. More... | |
int | NumberOfAttributes () const |
Count the number of attributes the tinyxml2::XMLElement has. More... | |
std::string | GetName () const |
Protected Attributes | |
tinyxml2::XMLElement * | element_ {} |
A XML node. More... | |
ParserConfiguration | parser_configuration_ {} |
Parser configuration. More... | |
|
delete |
|
virtualdefault |
ParserBase | ( | tinyxml2::XMLElement * | element, |
const ParserConfiguration & | parser_configuration | ||
) |
Creates an ParserBase from a tinyxml2::XMLElement.
element | Is the XML Node that contains attributes to be parsed. |
parser_configuration | Holds the configuration for the parser. |
maliput::common::assertion_error | When element is nullptr. |
maliput::common::assertion_error | When parser_configuration.tolerance is negative. |
std::string GetName | ( | ) | const |
MALIDRIVE_NO_COPY_NO_MOVE_NO_ASSIGN | ( | ParserBase | ) |
int NumberOfAttributes | ( | ) | const |
Count the number of attributes the tinyxml2::XMLElement has.
|
protected |
A XML node.
|
protected |
Parser configuration.