Simple XML parser.
More...
#include <SimpleXML.h>
|
| SimpleXML (void) |
| Constructor.
|
|
| ~SimpleXML (void) |
| Destructor.
|
|
bool | open (const Tchar *dir, Tchar *xmlFile, const Tchar *root) |
| Open file. More...
|
|
bool | open (const Tchar *filename, const Tchar *root) |
| Open file. More...
|
|
bool | setNode (void) |
| Set node to root of tree. More...
|
|
bool | setNode (const Tchar *node) |
| Set specific node by name. More...
|
|
bool | setNode (const Tchar *node, int index) |
| Set specific node by name and index. More...
|
|
bool | resetNode (void) |
| Move one node back. More...
|
|
bool | getNode (Tchar **value) |
| Get xml chunk, i.e., selected node with all xml tags. More...
|
|
int | getNodeCount (const Tchar *node) |
| Get number of nodes with same name. More...
|
|
bool | getInt (const Tchar *node, int *value) |
| Get integer value. More...
|
|
bool | getBool (const Tchar *node, bool *value) |
| Get boolean value. More...
|
|
bool | getLong (const Tchar *node, long *value) |
| Get long integer. More...
|
|
bool | getFloat (const Tchar *node, float *value) |
| Get float value. More...
|
|
bool | getString (const Tchar *node, Tchar **value) |
| Get string. More...
|
|
bool | getUnsignedShort (const Tchar *node, unsigned short *value) |
| Get unsigned short. More...
|
|
Simple XML parser.
- Author
- Matthias Wiedemann (Optris GmbH), Stefan May (Evocortex GmbH)
◆ getBool()
bool evo::SimpleXML::getBool |
( |
const Tchar * |
node, |
|
|
bool * |
value |
|
) |
| |
Get boolean value.
- Parameters
-
[in] | node | node tag |
[out] | value | value |
- Returns
- success
◆ getFloat()
bool evo::SimpleXML::getFloat |
( |
const Tchar * |
node, |
|
|
float * |
value |
|
) |
| |
Get float value.
- Parameters
-
[in] | node | node tag |
[out] | value | value |
- Returns
- success
◆ getInt()
bool evo::SimpleXML::getInt |
( |
const Tchar * |
node, |
|
|
int * |
value |
|
) |
| |
Get integer value.
- Parameters
-
[in] | node | node tag |
[out] | value | value |
- Returns
- success
◆ getLong()
bool evo::SimpleXML::getLong |
( |
const Tchar * |
node, |
|
|
long * |
value |
|
) |
| |
Get long integer.
- Parameters
-
[in] | node | node tag |
[out] | value | value |
- Returns
- success
◆ getNode()
bool evo::SimpleXML::getNode |
( |
Tchar ** |
value | ) |
|
Get xml chunk, i.e., selected node with all xml tags.
- Parameters
-
- Returns
- success
◆ getNodeCount()
int evo::SimpleXML::getNodeCount |
( |
const Tchar * |
node | ) |
|
Get number of nodes with same name.
- Parameters
-
- Returns
- number of nodes
◆ getString()
bool evo::SimpleXML::getString |
( |
const Tchar * |
node, |
|
|
Tchar ** |
value |
|
) |
| |
Get string.
- Parameters
-
[in] | node | node tag |
[out] | value | value |
- Returns
- success
◆ getUnsignedShort()
bool evo::SimpleXML::getUnsignedShort |
( |
const Tchar * |
node, |
|
|
unsigned short * |
value |
|
) |
| |
Get unsigned short.
- Parameters
-
[in] | node | node tag |
[out] | value | value |
- Returns
- success
◆ open() [1/2]
bool evo::SimpleXML::open |
( |
const Tchar * |
dir, |
|
|
Tchar * |
xmlFile, |
|
|
const Tchar * |
root |
|
) |
| |
Open file.
- Parameters
-
[in] | dir | directory |
[in] | xmlFile | file name |
[in] | root | xml root |
- Returns
- success
◆ open() [2/2]
bool evo::SimpleXML::open |
( |
const Tchar * |
filename, |
|
|
const Tchar * |
root |
|
) |
| |
Open file.
- Parameters
-
[in] | filename | full file path |
[in] | root | xml root |
- Returns
- success
◆ resetNode()
bool evo::SimpleXML::resetNode |
( |
void |
| ) |
|
Move one node back.
- Returns
- success (false, if first node with same name is already reached)
◆ setNode() [1/3]
bool evo::SimpleXML::setNode |
( |
const Tchar * |
node | ) |
|
Set specific node by name.
- Parameters
-
- Returns
- success
◆ setNode() [2/3]
bool evo::SimpleXML::setNode |
( |
const Tchar * |
node, |
|
|
int |
index |
|
) |
| |
Set specific node by name and index.
- Parameters
-
[in] | node | node name |
[in] | index | n'th node with same name |
- Returns
- success
◆ setNode() [3/3]
bool evo::SimpleXML::setNode |
( |
void |
| ) |
|
Set node to root of tree.
- Returns
The documentation for this class was generated from the following file: