5#include "./pugixml.hpp"
20 explicit ArxmlNode(pugi::xml_node &&node);
29 auto _defaultValueUInt{
static_cast<unsigned int>(defaultValue)};
30 unsigned int _value{mNode.text().as_uint(_defaultValueUInt)};
31 auto _result{
static_cast<T
>(_value)};
47 const std::string &sourceNode,
const std::string &destinationType,
48 std::string &referenceNode)
const;
A class that represents a XML node within a ARXML configuration.
Definition: arxml_node.h:11
std::string GetShortName() const
Get the node short name.
Definition: arxml_node.cpp:11
bool TryGetReference(const std::string &sourceNode, const std::string &destinationType, std::string &referenceNode) const
Try to get a reference node.
Definition: arxml_node.cpp:27
T GetValue(T defaultValue={}) const
Get the node value.
Definition: arxml_node.h:27
std::string GetContent() const
Get XML content of the node.
Definition: arxml_node.cpp:51
AUTOSAR XML (ARXML) configuration files utilities namespace.
Definition: arxml_node.cpp:6