Inheritance diagram for VectorAttributeHelper< T >:
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 |
VectorAttributeHelper< T >::VectorAttributeHelper | ( | std::vector< T > | value, | |
std::vector< uint64 > | dims | |||
) | [inline] |
virtual VectorAttributeHelper< T >::~VectorAttributeHelper | ( | ) | [inline, virtual] |
void VectorAttributeHelper< T >::convert | ( | std::stringstream & | sstream | ) | [inline, virtual] |
Converts the stored value into a string.
sstream | The stringstream to use for the conversion |
Implements IAttributeHelper.
std::vector<T> VectorAttributeHelper< T >::getValue | ( | ) | [inline] |
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.
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 |
Implements IAttributeHelper.
std::vector<T> VectorAttributeHelper< T >::_value [protected] |
std::vector<uint64> VectorAttributeHelper< T >::_dims [protected] |