Inherited by NumberAttributeHelper< T >, StringAttributeHelper, and VectorAttributeHelper< T >.
Inheritance diagram for IAttributeHelper:
Public Member Functions | |
IAttributeHelper () | |
virtual | ~IAttributeHelper () |
virtual void | convert (std::stringstream &sstream)=0 |
Converts the stored value into a string. | |
virtual int32 | writeAttribute (int32 locationId, std::string &datasetPath, std::string &key, IAttributeWriter &writer)=0 |
Writes the stored value to a disk using the IAttributeWriter object. |
IAttributeHelper::IAttributeHelper | ( | ) | [inline] |
virtual IAttributeHelper::~IAttributeHelper | ( | ) | [inline, virtual] |
virtual void IAttributeHelper::convert | ( | std::stringstream & | sstream | ) | [pure virtual] |
Converts the stored value into a string.
sstream | The stringstream to use for the conversion |
Implemented in StringAttributeHelper, NumberAttributeHelper< T >, and VectorAttributeHelper< T >.
virtual int32 IAttributeHelper::writeAttribute | ( | int32 | locationId, | |
std::string & | datasetPath, | |||
std::string & | key, | |||
IAttributeWriter & | writer | |||
) | [pure 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 |
Implemented in StringAttributeHelper, NumberAttributeHelper< T >, and VectorAttributeHelper< T >.