BARE2D
BARE2D::AttributeBase Class Referenceabstract

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 >
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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~AttributeBase()

virtual BARE2D::AttributeBase::~AttributeBase ( )
inlinevirtual

Definition at line 42 of file XMLDataTypes.hpp.

Member Function Documentation

◆ getData()

template<typename T >
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:

◆ getDataPointer()

template<typename T >
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:

◆ getDataString()

◆ setData()

template<typename T >
void BARE2D::AttributeBase::setData ( data)

Definition at line 11 of file XMLDataTypes.cpp.

Referenced by BARE2D::XMLData::read().

+ Here is the caller graph for this function:

◆ setDefaultData()

◆ swapDataPointer()

template<typename T >
void BARE2D::AttributeBase::swapDataPointer ( T *  newPtr)

Definition at line 23 of file XMLDataTypes.cpp.

Field Documentation

◆ name

std::string BARE2D::AttributeBase::name

Definition at line 45 of file XMLDataTypes.hpp.

Referenced by BARE2D::XMLData::addAttribute().

◆ type

AttributeType BARE2D::AttributeBase::type

Definition at line 46 of file XMLDataTypes.hpp.

Referenced by BARE2D::XMLData::read().


The documentation for this class was generated from the following files: