The AttributeBase class only exists for some templating acrobatics reasons (as an abstract base class for Attribute) More...
#include <XMLDataTypes.hpp>
Inheritance diagram for BARE2D::AttributeBase:
Collaboration diagram for BARE2D::AttributeBase:Public Member Functions | |
| template<typename T > | |
| void | setData (T data) |
| template<typename T > | |
| T | getData () |
| template<typename T > | |
| T * | getDataPointer () |
| template<typename T > | |
| void | swapDataPointer (T *newPtr) |
| virtual | ~AttributeBase () |
| virtual std::string | getDataString ()=0 |
Data Fields | |
| std::string | name |
| AttributeType | type |
Protected Member Functions | |
| virtual void | setDefaultData ()=0 |
The AttributeBase class only exists for some templating acrobatics reasons (as an abstract base class for Attribute)
Definition at line 31 of file XMLDataTypes.hpp.
|
inlinevirtual |
Definition at line 42 of file XMLDataTypes.hpp.
| T BARE2D::AttributeBase::getData |
Definition at line 17 of file XMLDataTypes.cpp.
References BARE2D::Attribute< T >::getData().
Here is the call graph for this function:| T * BARE2D::AttributeBase::getDataPointer |
Definition at line 28 of file XMLDataTypes.cpp.
References BARE2D::Attribute< T >::getDataPointer().
Here is the call graph for this function:
|
pure virtual |
Implemented in BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, and BARE2D::Attribute< T >.
Referenced by BARE2D::XMLData::write().
Here is the caller graph for this function:| void BARE2D::AttributeBase::setData | ( | T | data | ) |
Definition at line 11 of file XMLDataTypes.cpp.
Referenced by BARE2D::XMLData::read().
Here is the caller graph for this function:
|
protectedpure virtual |
Implemented in BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, BARE2D::Attribute< T >, and BARE2D::Attribute< T >.
| void BARE2D::AttributeBase::swapDataPointer | ( | T * | newPtr | ) |
Definition at line 23 of file XMLDataTypes.cpp.
| std::string BARE2D::AttributeBase::name |
Definition at line 45 of file XMLDataTypes.hpp.
Referenced by BARE2D::XMLData::addAttribute().
| AttributeType BARE2D::AttributeBase::type |
Definition at line 46 of file XMLDataTypes.hpp.
Referenced by BARE2D::XMLData::read().