6#include <initializer_list>
7#include "./arxml_node_range.h"
16 pugi::xml_document mDocument;
18 bool validate(
const pugi::xml_parse_result &parseResult)
const;
29 ArxmlReader(
const char *content, std::size_t length);
45 const std::array<std::string, N> &children)
const
47 pugi::xml_node _root{mDocument.root()};
49 for (
const auto child : children)
51 _root = _root.child(child.c_str());
69 const std::array<std::string, N> &children)
const
71 pugi::xml_node _root{mDocument.root()};
73 for (
const auto child : children)
75 _root = _root.child(child.c_str());
78 auto _range{_root.children()};
Read-only range of ARXML nodes.
Definition: arxml_node_range.h:13
A class that represents a XML node within a ARXML configuration.
Definition: arxml_node.h:11
A class to read ARXML configuration files.
Definition: arxml_reader.h:14
ArxmlNodeRange GetNodes(const std::array< std::string, N > &children) const
Get a range of ARXML nodes deep down the ARXML content.
Definition: arxml_reader.h:68
ArxmlNodeRange GetNodes(std::initializer_list< std::string > children) const
Get a range of ARXML nodes deep down the ARXML content.
Definition: arxml_reader.cpp:77
ArxmlNode GetRootNode(std::initializer_list< std::string > children) const
Get (relative) ARXML root node.
Definition: arxml_reader.cpp:63
ArxmlNode GetRootNode(const std::array< std::string, N > &children) const
Get (relative) ARXML root node.
Definition: arxml_reader.h:44
AUTOSAR XML (ARXML) configuration files utilities namespace.
Definition: arxml_node.cpp:6