12#ifndef BELFEM_CL_XML_HPP
13#define BELFEM_CL_XML_HPP
35 tinyxml2::XMLDocument mFile;
37 tinyxml2::XMLElement* mActiveElement =
nullptr;
47 XML(
const string & aPath,
125 get_int(
const string & aKey );
const string & path() const
return the path of this file
Definition cl_XML.hpp:60
void select_first_child(const string &aLabel)
Definition cl_XML.cpp:136
XML(const string &aPath, const FileMode aMode=FileMode::OPEN_RDONLY)
Definition cl_XML.cpp:20
void select_subtree(const string &aTree)
directly jump down to this element if you know that it exists separate element names using a "/"
Definition cl_XML.cpp:202
int get_int(const string &aKey)
Definition cl_XML.cpp:268
bool key_exists(const string &aKey)
Definition cl_XML.cpp:238
string get_string(const string &aKey)
Definition cl_XML.cpp:248
bool get_bool(const string &aKey)
Definition cl_XML.cpp:284
void select_parent()
Definition cl_XML.cpp:187
bool child_exists(const string &aLabel)
test if at least one child of that name exists
Definition cl_XML.cpp:55
real get_real(const string &aKey)
Definition cl_XML.cpp:276
uint number_of_children()
cont the number of children in current tag
Definition cl_XML.cpp:67
bool next_sibling_of_same_name()
move to the next sibling of the same name; returns false ( selection unchanged ) if there is none
Definition cl_XML.cpp:163
USER GUIDES:
Definition cl_Capacitor.cpp:16
unsigned int uint
Definition typedefs.hpp:30
FileMode
Definition filetools.hpp:27
@ OPEN_RDONLY
Definition filetools.hpp:29
double real
Definition typedefs.hpp:36