VectorAttributeHelper< T > Class Template Reference

Inherits IAttributeHelper.

Inheritance diagram for VectorAttributeHelper< T >:

Inheritance graph
[legend]
Collaboration diagram for VectorAttributeHelper< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 VectorAttributeHelper (std::vector< T > value, std::vector< uint64 > dims)
virtual ~VectorAttributeHelper ()
void convert (std::stringstream &sstream)
 Converts the stored value into a string.
std::vector< T > getValue ()
int32 writeAttribute (int32 fileId, std::string &datasetPath, std::string &key, IAttributeWriter &writer)
 Writes the stored value to a disk using the IAttributeWriter object.

Protected Attributes

std::vector< T > _value
std::vector< uint64 > _dims

template<typename T>
class VectorAttributeHelper< T >


Constructor & Destructor Documentation

template<typename T>
VectorAttributeHelper< T >::VectorAttributeHelper ( std::vector< T >  value,
std::vector< uint64 >  dims 
) [inline]

template<typename T>
virtual VectorAttributeHelper< T >::~VectorAttributeHelper (  )  [inline, virtual]


Member Function Documentation

template<typename T>
void VectorAttributeHelper< T >::convert ( std::stringstream &  sstream  )  [inline, virtual]

Converts the stored value into a string.

Parameters:
sstream The stringstream to use for the conversion

Implements IAttributeHelper.

template<typename T>
std::vector<T> VectorAttributeHelper< T >::getValue (  )  [inline]

template<typename T>
int32 VectorAttributeHelper< T >::writeAttribute ( int32  locationId,
std::string &  datasetPath,
std::string &  key,
IAttributeWriter writer 
) [inline, virtual]

Writes the stored value to a disk using the IAttributeWriter object.

Parameters:
locationId A unique ID
datasetPath The Path to the dataset that this attribute belongs to
key The attribute Key
writer IAttributeWriter object to use for the writing
Returns:
Error condition

Implements IAttributeHelper.


Member Data Documentation

template<typename T>
std::vector<T> VectorAttributeHelper< T >::_value [protected]

template<typename T>
std::vector<uint64> VectorAttributeHelper< T >::_dims [protected]


The documentation for this class was generated from the following file:
Generated on Tue Nov 17 18:43:16 2009 for MXADataModel by  doxygen 1.5.2