XML document interface. More...
#include <cl_XML.hpp>
Public Member Functions | |
| XML (const string &aPath, const FileMode aMode=FileMode::OPEN_RDONLY) | |
| ~XML () | |
| const string & | path () const |
| return the path of this file | |
| bool | child_exists (const string &aLabel) |
| test if at least one child of that name exists | |
| uint | number_of_children () |
| cont the number of children in current tag | |
| uint | number_of_children (const string &aLabel) |
| cont the number of children with that name | |
| bool | next_sibling_of_same_name () |
| move to the next sibling of the same name; returns false ( selection unchanged ) if there is none | |
| void | select_first_child (const string &aLabel) |
| void | select_parent () |
| void | select_subtree (const string &aTree) |
| directly jump down to this element if you know that it exists separate element names using a "/" | |
| string | get_string (const string &aKey) |
| int | get_int (const string &aKey) |
| real | get_real (const string &aKey) |
| bool | get_bool (const string &aKey) |
| bool | key_exists (const string &aKey) |
XML document interface.
| belfem::XML::XML | ( | const string & | aPath, |
| const FileMode | aMode = FileMode::OPEN_RDONLY ) |
| belfem::XML::~XML | ( | ) |
| bool belfem::XML::child_exists | ( | const string & | aLabel | ) |
test if at least one child of that name exists
| bool belfem::XML::get_bool | ( | const string & | aKey | ) |
| int belfem::XML::get_int | ( | const string & | aKey | ) |
| bool belfem::XML::key_exists | ( | const string & | aKey | ) |
| bool belfem::XML::next_sibling_of_same_name | ( | ) |
move to the next sibling of the same name; returns false ( selection unchanged ) if there is none
| uint belfem::XML::number_of_children | ( | ) |
cont the number of children in current tag
cont the number of children with that name
|
inline |
return the path of this file
| void belfem::XML::select_first_child | ( | const string & | aLabel | ) |
| void belfem::XML::select_parent | ( | ) |
| void belfem::XML::select_subtree | ( | const string & | aTree | ) |
directly jump down to this element if you know that it exists separate element names using a "/"