20 #ifndef Model_AttributeStringArray_H_
21 #define Model_AttributeStringArray_H_
24 #include <ModelAPI_AttributeStringArray.h>
25 #include <TDataStd_ExtStringArray.hxx>
26 #include <TDF_Label.hxx>
35 MODEL_EXPORT
virtual int size();
38 MODEL_EXPORT
virtual void setSize(
const int theSize);
41 MODEL_EXPORT
virtual void setValue(
const int theIndex,
42 const std::string theValue);
45 MODEL_EXPORT
virtual std::string
value(
const int theIndex);
53 Handle_TDataStd_ExtStringArray myArray;
API for the attribute that contains several strings in the array inside.
Definition: ModelAPI_AttributeStringArray.h:32
API for the attribute that contains several strings in the array inside.
Definition: Model_AttributeStringArray.h:32
virtual MODEL_EXPORT std::string value(const int theIndex)
Returns the value by the index.
Definition: Model_AttributeStringArray.cpp:78
virtual MODEL_EXPORT void setValue(const int theIndex, const std::string theValue)
Defines the value of the array by index [0; size-1].
Definition: Model_AttributeStringArray.cpp:68
virtual MODEL_EXPORT int size()
Returns the size of the array (zero means that it is empty)
Definition: Model_AttributeStringArray.cpp:28
virtual MODEL_EXPORT void setSize(const int theSize)
Sets the new size of the array. The previous data is erased.
Definition: Model_AttributeStringArray.cpp:42
MODEL_EXPORT Model_AttributeStringArray(TDF_Label &theLabel)
Objects are created for features automatically.
Definition: Model_AttributeStringArray.cpp:84
General object of the application that allows to get/set attributes from the document and compute res...
Definition: Model_Data.h:61