X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FParametersAPI%2FParametersAPI_Parameter.h;h=dbd3dd65e46df54eb39d65cdf6400ae6b8897d5c;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=7abc34850c0fd9a3123d5e9f853f3914bc0a1ad5;hpb=7074394f8f08413d885f63be01df6bd5007b868c;p=modules%2Fshaper.git diff --git a/src/ParametersAPI/ParametersAPI_Parameter.h b/src/ParametersAPI/ParametersAPI_Parameter.h index 7abc34850..dbd3dd65e 100644 --- a/src/ParametersAPI/ParametersAPI_Parameter.h +++ b/src/ParametersAPI/ParametersAPI_Parameter.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2023 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #ifndef SRC_PARAMETERSAPI_PARAMETERSAPI_PARAMETER_H_ @@ -46,7 +45,7 @@ public: explicit ParametersAPI_Parameter(const std::shared_ptr & theFeature, const std::string & theName, const std::string & theExpression, - const std::string & theComment = std::string()); + const std::wstring & theComment = std::wstring()); /// Destructor PARAMETERSAPI_EXPORT virtual ~ParametersAPI_Parameter(); @@ -81,7 +80,14 @@ PARAMETERSAPI_EXPORT ParameterPtr addParameter(const std::shared_ptr & thePart, const std::string & theName, const std::string & theExpression, - const std::string & theComment = std::string()); + const std::wstring & theComment = std::wstring()); + +/**\ingroup CPPHighAPI + * \brief Remove Parameter feature and substitute it by the value in referred features + */ +PARAMETERSAPI_EXPORT +void removeParameter(const std::shared_ptr & thePart, + const ParameterPtr & theParameter); //-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------