20 #ifndef MODELAPI_ATTRIBUTEINTEGER_H_
21 #define MODELAPI_ATTRIBUTEINTEGER_H_
23 #include <ModelAPI_Attribute.h>
37 MODELAPI_EXPORT
virtual void setValue(
const int theValue) = 0;
40 MODELAPI_EXPORT
virtual int value() = 0;
46 MODELAPI_EXPORT
virtual void setText(
const std::wstring& theText) = 0;
49 MODELAPI_EXPORT
virtual std::wstring
text() = 0;
64 MODELAPI_EXPORT
virtual
71 MODELAPI_EXPORT
static std::string
typeId()
88 typedef std::shared_ptr<ModelAPI_AttributeInteger> AttributeIntegerPtr;
API for the attribute that contains integer (int).
Definition: ModelAPI_AttributeInteger.h:34
virtual MODELAPI_EXPORT bool expressionInvalid()=0
Returns true if text is invalid.
virtual MODELAPI_EXPORT std::string attributeType()
Returns the type of this class of attributes, not static method.
Definition: ModelAPI_AttributeInteger.cpp:23
virtual MODELAPI_EXPORT int value()=0
Returns the integer value.
virtual MODELAPI_EXPORT void setText(const std::wstring &theText)=0
Defines the text value.
static MODELAPI_EXPORT std::string typeId()
Returns the type of this class of attributes.
Definition: ModelAPI_AttributeInteger.h:71
virtual MODELAPI_EXPORT void setUsedParameters(const std::set< std::wstring > &theUsedParameters)=0
Defines the used parameters.
virtual MODELAPI_EXPORT std::set< std::wstring > usedParameters() const =0
Returns the used parameters.
virtual MODELAPI_EXPORT void setCalculatedValue(const int theValue)=0
Defines the calculated value.
virtual MODELAPI_EXPORT void setValue(const int theValue)=0
Defines the integer value.
virtual MODELAPI_EXPORT void setExpressionError(const std::string &theError)=0
Allows to set expression (text) error (by the parameters listener)
virtual MODELAPI_EXPORT std::wstring text()=0
Returns the text value.
MODELAPI_EXPORT ModelAPI_AttributeInteger()
Objects are created for features automatically.
Definition: ModelAPI_AttributeInteger.cpp:33
virtual MODELAPI_EXPORT void setExpressionInvalid(const bool theFlag)=0
Allows to set expression (text) as invalid (by the parameters listener)
virtual MODELAPI_EXPORT std::string expressionError()=0
Returns an expression error.
virtual MODELAPI_EXPORT ~ModelAPI_AttributeInteger()
To virtually destroy the fields of successors.
Definition: ModelAPI_AttributeInteger.cpp:29
Generic attribute of the Object.
Definition: ModelAPI_Attribute.h:34