X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelHighAPI%2FModelHighAPI_Double.h;h=e1b3ce6872758fab3095907c7a1acd367c4e7016;hb=a3d6ec71bc857eb6e67d0bf9bc3fd841e7c73efe;hp=316703405cba2c2e1554ffa4c1a4909e6e488f5e;hpb=4f62ebbe5e87ffa4649a05690cdbaaade688deda;p=modules%2Fshaper.git diff --git a/src/ModelHighAPI/ModelHighAPI_Double.h b/src/ModelHighAPI/ModelHighAPI_Double.h index 316703405..e1b3ce687 100644 --- a/src/ModelHighAPI/ModelHighAPI_Double.h +++ b/src/ModelHighAPI/ModelHighAPI_Double.h @@ -8,6 +8,8 @@ #define SRC_MODELHIGHAPI_MODELHIGHAPI_DOUBLE_H_ //-------------------------------------------------------------------------------------- +#include "ModelHighAPI.h" + #include #include @@ -15,19 +17,29 @@ //-------------------------------------------------------------------------------------- class ModelAPI_AttributeDouble; //-------------------------------------------------------------------------------------- -/* - * +/**\class ModelHighAPI_Double + * \ingroup CPPHighAPI + * \brief Class for filling ModelAPI_AttributeDouble */ class ModelHighAPI_Double { public: - ModelHighAPI_Double(); - ModelHighAPI_Double(double theValue); + /// Constructor for double + MODELHIGHAPI_EXPORT + ModelHighAPI_Double(double theValue = 0.); + /// Constructor for std::string + MODELHIGHAPI_EXPORT ModelHighAPI_Double(const std::string & theValue); + /// Constructor for char * + MODELHIGHAPI_EXPORT ModelHighAPI_Double(const char * theValue); + /// Destructor + MODELHIGHAPI_EXPORT virtual ~ModelHighAPI_Double(); - virtual void fillAttribute(std::shared_ptr & theAttribute) const; + /// Fill attribute values + MODELHIGHAPI_EXPORT + virtual void fillAttribute(const std::shared_ptr & theAttribute) const; private: boost::variant myValue;