A class to read ARXML configuration files.
More...
#include <arxml_reader.h>
A class to read ARXML configuration files.
◆ ArxmlReader() [1/2]
arxml::ArxmlReader::ArxmlReader |
( |
const std::string & |
filePath | ) |
|
|
explicit |
Constructor.
- Parameters
-
filePath | ARXML document file path |
- Exceptions
-
std::invalid_argument | Throws when the ARXML file is not valid |
◆ ArxmlReader() [2/2]
arxml::ArxmlReader::ArxmlReader |
( |
const char * |
content, |
|
|
std::size_t |
length |
|
) |
| |
Constructor.
- Parameters
-
content | ARXML document file content |
length | Content length |
◆ GetNodes() [1/2]
template<size_t N>
ArxmlNodeRange arxml::ArxmlReader::GetNodes |
( |
const std::array< std::string, N > & |
children | ) |
const |
|
inline |
Get a range of ARXML nodes deep down the ARXML content.
- Template Parameters
-
N | Children hierarchy depth level |
- Parameters
-
children | Hierarchical children node array |
- Returns
- Read-only range of ARXML nodes
◆ GetNodes() [2/2]
ArxmlNodeRange arxml::ArxmlReader::GetNodes |
( |
std::initializer_list< std::string > |
children | ) |
const |
Get a range of ARXML nodes deep down the ARXML content.
- Parameters
-
children | Hierarchical children nodes |
- Returns
- Read-only range of ARXML nodes
◆ GetRootNode() [1/2]
template<size_t N>
ArxmlNode arxml::ArxmlReader::GetRootNode |
( |
const std::array< std::string, N > & |
children | ) |
const |
|
inline |
Get (relative) ARXML root node.
- Template Parameters
-
N | Children hierarchy depth level |
- Parameters
-
children | Hierarchical children node array |
- Returns
- ARXML root node relative to the children nodes (if there is any)
◆ GetRootNode() [2/2]
ArxmlNode arxml::ArxmlReader::GetRootNode |
( |
std::initializer_list< std::string > |
children | ) |
const |
Get (relative) ARXML root node.
- Parameters
-
children | Hierarchical children nodes |
- Returns
- ARXML root node relative to the children nodes (if there is any)