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:131
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:193
int get_int(const string &aKey)
Definition cl_XML.cpp:254
bool key_exists(const string &aKey)
Definition cl_XML.cpp:226
string get_string(const string &aKey)
Definition cl_XML.cpp:236
bool get_bool(const string &aKey)
Definition cl_XML.cpp:270
void select_parent()
Definition cl_XML.cpp:178
bool child_exists(const string &aLabel)
test if at least one child of that name exists
Definition cl_XML.cpp:50
real get_real(const string &aKey)
Definition cl_XML.cpp:262
uint number_of_children()
cont the number of children in current tag
Definition cl_XML.cpp:62
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:155
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