20 #ifndef ModelAPI_AttributeStringArray_H_
21 #define ModelAPI_AttributeStringArray_H_
24 #include <ModelAPI_Attribute.h>
35 MODELAPI_EXPORT
virtual int size() = 0;
38 MODELAPI_EXPORT
virtual void setSize(
const int theSize) = 0;
41 MODELAPI_EXPORT
virtual void setValue(
const int theIndex,
42 const std::string theValue) = 0;
45 MODELAPI_EXPORT
virtual std::string
value(
const int theIndex) = 0;
48 MODELAPI_EXPORT
static std::string
typeId()
65 typedef std::shared_ptr<ModelAPI_AttributeStringArray> AttributeStringArrayPtr;
API for the attribute that contains several strings in the array inside.
Definition: ModelAPI_AttributeStringArray.h:32
virtual MODELAPI_EXPORT std::string attributeType()
Returns the type of this class of attributes, not static method.
Definition: ModelAPI_AttributeStringArray.cpp:23
static MODELAPI_EXPORT std::string typeId()
Returns the type of this class of attributes.
Definition: ModelAPI_AttributeStringArray.h:48
virtual MODELAPI_EXPORT std::string value(const int theIndex)=0
Returns the value by the index.
MODELAPI_EXPORT ModelAPI_AttributeStringArray()
Objects are created for features automatically.
Definition: ModelAPI_AttributeStringArray.cpp:34
virtual MODELAPI_EXPORT ~ModelAPI_AttributeStringArray()
To virtually destroy the fields of successors.
Definition: ModelAPI_AttributeStringArray.cpp:29
virtual MODELAPI_EXPORT void setSize(const int theSize)=0
Sets the new size of the array. The previous data is erased.
virtual MODELAPI_EXPORT int size()=0
Returns the size of the array (zero means that it is empty)
virtual MODELAPI_EXPORT void setValue(const int theIndex, const std::string theValue)=0
Defines the value of the array by index [0; size-1].
Generic attribute of the Object.
Definition: ModelAPI_Attribute.h:34