1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2 // Name : ModelHighAPI_Integer.h
6 // 29/03/16 - Sergey POKHODENKO - Creation of the file
8 #ifndef SRC_MODELHIGHAPI_MODELHIGHAPI_INTEGER_H_
9 #define SRC_MODELHIGHAPI_MODELHIGHAPI_INTEGER_H_
11 //--------------------------------------------------------------------------------------
12 #include "ModelHighAPI.h"
16 //--------------------------------------------------------------------------------------
17 class ModelAPI_AttributeInteger;
18 //--------------------------------------------------------------------------------------
19 /**\class ModelHighAPI_Integer
21 * \brief Class for filling ModelAPI_AttributeInteger
23 class ModelHighAPI_Integer
26 /// Constructor for int
28 ModelHighAPI_Integer(int theValue = 0);
29 /// Constructor for std::string
31 ModelHighAPI_Integer(const std::string & theValue);
32 /// Constructor for char *
34 ModelHighAPI_Integer(const char * theValue);
37 virtual ~ModelHighAPI_Integer();
39 /// Fill attribute values
41 virtual void fillAttribute(const std::shared_ptr<ModelAPI_AttributeInteger> & theAttribute) const;
43 /// Returns a value (must be used only for attributes which support no text)
44 MODELHIGHAPI_EXPORT virtual int intValue() const;
47 enum VariantType { VT_INT, VT_STRING } myVariantType;
52 //--------------------------------------------------------------------------------------
53 //--------------------------------------------------------------------------------------
54 #endif /* SRC_MODELHIGHAPI_MODELHIGHAPI_INTEGER_H_ */