1 // Name : ModelHighAPI_Integer.h
5 // 29/03/16 - Sergey POKHODENKO - Creation of the file
7 #ifndef SRC_MODELHIGHAPI_MODELHIGHAPI_INTEGER_H_
8 #define SRC_MODELHIGHAPI_MODELHIGHAPI_INTEGER_H_
10 //--------------------------------------------------------------------------------------
11 #include "ModelHighAPI.h"
16 #include <boost/variant.hpp>
17 //--------------------------------------------------------------------------------------
18 class ModelAPI_AttributeInteger;
19 //--------------------------------------------------------------------------------------
20 /**\class ModelHighAPI_Integer
22 * \brief Class for filling ModelAPI_AttributeInteger
24 class ModelHighAPI_Integer
27 /// Constructor for int
29 ModelHighAPI_Integer(int theValue = 0.);
30 /// Constructor for std::string
32 ModelHighAPI_Integer(const std::string & theValue);
33 /// Constructor for char *
35 ModelHighAPI_Integer(const char * theValue);
38 virtual ~ModelHighAPI_Integer();
40 /// Fill attribute values
42 virtual void fillAttribute(const std::shared_ptr<ModelAPI_AttributeInteger> & theAttribute) const;
45 boost::variant<int, std::string> myValue;
48 //--------------------------------------------------------------------------------------
49 //--------------------------------------------------------------------------------------
50 #endif /* SRC_MODELHIGHAPI_MODELHIGHAPI_INTEGER_H_ */