template<class T>
class OEBaseDataT : public OEBaseData

This class represents OEBaseDataT.

The following methods are publicly inherited from OEBaseData:

CreateCopy GetSize  
GetDataType GetTag  

The following specializations exist for this template:

  • OESystem::OEBaseDataT< int >
The following classes derive from this class:


OEBaseDataT(unsigned int tag, const T &t)

Constructs an OEBaseDataT object that stores data with T type associated with the given tag identifier.


OEBaseDataT<T> &operator=(const OEBaseDataT<T> &t)

Assignment operator.


OEBaseData *CreateCopy() const

Deep copy constructor that returns a copy of the object. The memory for the returned OEBaseDataT object is dynamically allocated and owned by the caller.


T &GetData()
const T &GetData() const

Returns the data stored int the OEBaseDataT object.


const void *GetDataType() const

Returns a unique type identifier for the data type being stored. The return value of the method is equivalent to the return value of OEGetDataType for the stored type.


unsigned int GetSize() const

Returns the number of elements stored in the an OEBaseDataT object that is always 1.


The value returned is not the number of bytes occupied by the data.


bool SetData(const T &t)

Sets the data stored int the OEBaseDataT object.