![]() |
Kigs Framework
Doc version 0.8
Open source multi purpose Rapid Application Development framework
|
#include <XMLNode.h>
Public Member Functions | |
XMLNodeTemplate () | |
constructor | |
XMLNodeTemplate (XMLNodeType type) | |
constructor for the given type | |
XMLNodeTemplate (XMLNodeType type, const StringType &name) | |
constructor for the given type and name | |
void | setName (const StringType &name) |
set node name | |
void | setString (const StringType &value) |
set node value with given string | |
void | setInt (const int value) |
set node value with given int | |
void | setFloat (const kfloat value) |
set node value with given kfloat | |
int | getInt () const override |
return node value as an int | |
kfloat | getFloat () const override |
return node value as a kfloat | |
XMLNodeTemplate * | addChildElement (const StringType &childName) |
create a new child with given name and return the corresponding node | |
XMLNodeTemplate * | addChildElementText (const StringType &childName, const StringType &textValue, bool textValueNoCheck=false) |
create a new child with given name and text value and return the corresponding node | |
XMLNodeTemplate * | addChildElementInteger (const StringType &childName, int integerValue) |
create a new child with given name and int value and return the corresponding node | |
void | addAttribute (XMLAttributeTemplate< StringType > *attribute) |
add the given attribute to the node | |
void | removeAttribute (XMLAttributeTemplate< StringType > *attribute) |
remove the given attribute from the node More... | |
virtual void | addChild (XMLNodeBase *child) override |
add the given child to the node | |
void | removeChild (XMLNodeTemplate *child) |
remove the given child to the node | |
Manage XML node structure using string or string_view.
|
inline |
remove the given attribute from the node
remove the given attribute from the node (not delete)