20 #ifndef MODELAPI_ATTRIBUTESTRING_H_
21 #define MODELAPI_ATTRIBUTESTRING_H_
23 #include "ModelAPI_Attribute.h"
36 MODELAPI_EXPORT
virtual void setValue(
const std::string& theValue) = 0;
38 MODELAPI_EXPORT
virtual void setValue(
const std::wstring& theValue) = 0;
41 MODELAPI_EXPORT
virtual std::string
value() = 0;
43 MODELAPI_EXPORT
virtual char16_t*
valueU() = 0;
44 MODELAPI_EXPORT
virtual bool isUValue()
const = 0;
47 MODELAPI_EXPORT
static std::string
typeId()
64 typedef std::shared_ptr<ModelAPI_AttributeString> AttributeStringPtr;
API for the attribute that contains std (null terminated) string.
Definition: ModelAPI_AttributeString.h:33
virtual std::string value()=0
Returns the string value.
virtual void setValue(const std::string &theValue)=0
Defines the string value.
virtual char16_t * valueU()=0
Returns a pointer to Unicode string.
virtual void setValue(const std::wstring &theValue)=0
Defines the wstring value.
virtual ~ModelAPI_AttributeString()
To virtually destroy the fields of successors.
Definition: ModelAPI_AttributeString.cpp:27
ModelAPI_AttributeString()
Objects are created for features automatically.
Definition: ModelAPI_AttributeString.cpp:31
static std::string typeId()
Returns the type of this class of attributes.
Definition: ModelAPI_AttributeString.h:47
virtual std::string attributeType()
Returns the type of this class of attributes, not static method.
Definition: ModelAPI_AttributeString.cpp:22
Generic attribute of the Object.
Definition: ModelAPI_Attribute.h:34