1 // File: ModelAPI_AttributeString.h
3 // Author: Mikhail PONIKAROV
5 #ifndef MODELAPI_ATTRIBUTESTRING_H_
6 #define MODELAPI_ATTRIBUTESTRING_H_
8 #include "ModelAPI_Attribute.h"
12 /**\class ModelAPI_AttributeString
14 * \brief API for the attribute that contains std (null terminated) string.
17 class ModelAPI_AttributeString : public ModelAPI_Attribute
20 /// Defines the double value
21 MODELAPI_EXPORT virtual void setValue(const std::string& theValue) = 0;
23 /// Returns the double value
24 MODELAPI_EXPORT virtual std::string value() = 0;
26 /// Returns the type of this class of attributes
27 MODELAPI_EXPORT static std::string type()
32 /// Returns the type of this class of attributes, not static method
33 MODELAPI_EXPORT virtual std::string attributeType()
38 /// To virtually destroy the fields of successors
39 MODELAPI_EXPORT virtual ~ModelAPI_AttributeString()
44 /// Objects are created for features automatically
45 MODELAPI_EXPORT ModelAPI_AttributeString()
50 //! Pointer on double attribute
51 typedef boost::shared_ptr<ModelAPI_AttributeString> AttributeStringPtr;