#include <XMLTree.h>
Public Member Functions | |
DataNode (NodeType type) | |
DataNode (NodeType type, std::unique_ptr< T > data) | |
virtual | ~DataNode () |
DataNode (const DataNode &)=delete | |
DataNode & | operator= (const DataNode &)=delete |
DataNode (DataNode &&)=default | |
DataNode & | operator= (DataNode &&)=default |
T * | get () const |
std::unique_ptr< T > | getData () |
void | setData (std::unique_ptr< T > data) |
void | addAttribute (const std::string &name, const std::string &value) |
const std::map< std::string, std::string > & | getAttributes () |
![]() | |
BaseNode (NodeType type) | |
virtual | ~BaseNode ()=default |
BaseNode (const BaseNode &)=delete | |
BaseNode & | operator= (const BaseNode &)=delete |
BaseNode (BaseNode &&)=default | |
BaseNode & | operator= (BaseNode &&)=default |
NodeType | getType () const |
void | addChild (std::unique_ptr< BaseNode > child) |
bool | removeChild (const size_t &index) |
BaseNode * | getChild (const size_t &index) const |
BaseNode * | getParent () const |
void | setParent (BaseNode *parent) |
size_t | getNumChildren () const |
std::vector< std::unique_ptr< BaseNode > > & | getChildren () |
|
virtual |
void addAttribute | ( | const std::string & | name, |
const std::string & | value | ||
) |
T * get | ( | ) | const |
const std::map< std::string, std::string > & getAttributes | ( | ) |
std::unique_ptr< T > getData | ( | ) |
void setData | ( | std::unique_ptr< T > | data | ) |