A class that represents a XML node within a ARXML configuration. More...
#include <arxml_node.h>
Public Member Functions | |
| ArxmlNode (pugi::xml_node &&node) | |
| Constructor. More... | |
| template<typename T > | |
| T | GetValue (T defaultValue={}) const |
| Get the node value. More... | |
| std::string | GetShortName () const |
| Get the node short name. More... | |
| bool | TryGetReference (const std::string &sourceNode, const std::string &destinationType, std::string &referenceNode) const |
| Try to get a reference node. More... | |
| std::string | GetContent () const |
| Get XML content of the node. More... | |
| template<> | |
| std::string | GetValue (std::string defaultValue) const |
A class that represents a XML node within a ARXML configuration.
|
explicit |
Constructor.
| node | XML node |
| std::string arxml::ArxmlNode::GetContent | ( | ) | const |
Get XML content of the node.
| std::string arxml::ArxmlNode::GetShortName | ( | ) | const |
Get the node short name.
|
inline |
Get the node value.
| T | Value type |
| defaultValue | Default value |
| bool arxml::ArxmlNode::TryGetReference | ( | const std::string & | sourceNode, |
| const std::string & | destinationType, | ||
| std::string & | referenceNode | ||
| ) | const |
Try to get a reference node.
| [in] | sourceNode | Source node name that is referring to another node |
| [in] | destinationType | Expected reference destination node type |
| [out] | referenceNode | Reference node name |