1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2 // Name : ModelHighAPI_ComponentValue.h
6 // 16/11/16 - Mikhail Ponikarov - Creation of the file
8 #ifndef SRC_MODELHIGHAPI_ModelHighAPI_ComponentValue_H_
9 #define SRC_MODELHIGHAPI_ModelHighAPI_ComponentValue_H_
11 //--------------------------------------------------------------------------------------
12 #include "ModelHighAPI.h"
14 #include <ModelAPI_AttributeTables.h>
16 //--------------------------------------------------------------------------------------
17 /**\class ModelHighAPI_ComponentValue
19 * \brief Class for filling ModelAPI_AttributeTable elements
21 class ModelHighAPI_ComponentValue
24 /// Constructor for Boolean
25 MODELHIGHAPI_EXPORT ModelHighAPI_ComponentValue(const bool theValue = false);
26 /// Constructor for int
27 MODELHIGHAPI_EXPORT ModelHighAPI_ComponentValue(const int theValue);
28 /// Constructor for double
29 MODELHIGHAPI_EXPORT ModelHighAPI_ComponentValue(const double theValue);
30 /// Constructor for std::string
31 MODELHIGHAPI_EXPORT ModelHighAPI_ComponentValue(const std::string & theValue);
33 MODELHIGHAPI_EXPORT virtual ~ModelHighAPI_ComponentValue();
35 /// Sets value to the table
36 MODELHIGHAPI_EXPORT virtual void fill(const std::shared_ptr<ModelAPI_AttributeTables>& theAttr,
37 const int theTable, const int theColumn, const int theRow) const;
40 ModelAPI_AttributeTables::ValueType myType; ///< type of the value set
41 ModelAPI_AttributeTables::Value myValue; ///< value itself
44 //--------------------------------------------------------------------------------------
45 //--------------------------------------------------------------------------------------
46 #endif /* SRC_MODELHIGHAPI_ModelHighAPI_ComponentValue_H_ */