20 #ifndef SRC_MODELHIGHAPI_MODELHIGHAPI_INTEGER_H_
21 #define SRC_MODELHIGHAPI_MODELHIGHAPI_INTEGER_H_
24 #include "ModelHighAPI.h"
53 virtual void fillAttribute(
const std::shared_ptr<ModelAPI_AttributeInteger> & theAttribute)
const;
56 MODELHIGHAPI_EXPORT
virtual int intValue()
const;
59 MODELHIGHAPI_EXPORT
virtual std::wstring
string()
const;
62 enum VariantType { VT_INT, VT_STRING } myVariantType;
64 std::wstring myString;
API for the attribute that contains integer (int).
Definition: ModelAPI_AttributeInteger.h:34
Class for filling ModelAPI_AttributeInteger.
Definition: ModelHighAPI_Integer.h:36
virtual void fillAttribute(const std::shared_ptr< ModelAPI_AttributeInteger > &theAttribute) const
Fill attribute values.
Definition: ModelHighAPI_Integer.cpp:51
ModelHighAPI_Integer(int theValue=0)
Constructor for int.
Definition: ModelHighAPI_Integer.cpp:28
virtual std::wstring string() const
Returns a string representation of the value.
Definition: ModelHighAPI_Integer.cpp:66
virtual ~ModelHighAPI_Integer()
Destructor.
Definition: ModelHighAPI_Integer.cpp:46
virtual int intValue() const
Returns a value (must be used only for attributes which support no text)
Definition: ModelHighAPI_Integer.cpp:60