IAttributeHelper Class Reference

Abstract Class that defines an interface for a helper class for Attributes. The duty of the helper class is to convert the actual attribute value to a string. More...

Inherited by NumberAttributeHelper< T >, StringAttributeHelper, and VectorAttributeHelper< T >.

Inheritance diagram for IAttributeHelper:

Inheritance graph
[legend]
List of all members.

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.

Detailed Description

Abstract Class that defines an interface for a helper class for Attributes. The duty of the helper class is to convert the actual attribute value to a string.

Author:
Mike Jackson
Date:
Mach 2007
Version:
Revision
1.2
MXADataModel/IAttributeHelper.h


Constructor & Destructor Documentation

IAttributeHelper::IAttributeHelper (  )  [inline]

virtual IAttributeHelper::~IAttributeHelper (  )  [inline, virtual]


Member Function Documentation

virtual void IAttributeHelper::convert ( std::stringstream &  sstream  )  [pure virtual]

Converts the stored value into a string.

Parameters:
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.

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

Implemented in StringAttributeHelper, NumberAttributeHelper< T >, and VectorAttributeHelper< T >.


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