X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_Expression.h;h=6b7c8839e99ddc1d6cd4c4374aa52aeed90b9d24;hb=a894060cf7f5ead6fa92d2f151e9f60712dc7a2f;hp=00e8acc718dc64009bc342673a1413b19a84f439;hpb=85afcf29664dfb5bda0bc6239c8760d6e424b1f2;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Expression.h b/src/ModelAPI/ModelAPI_Expression.h index 00e8acc71..6b7c8839e 100644 --- a/src/ModelAPI/ModelAPI_Expression.h +++ b/src/ModelAPI/ModelAPI_Expression.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: ModelAPI_Expression.h -// Created: 5 Aug 2015 -// Author: Sergey POKHODENKO +// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// 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 +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #ifndef ModelAPI_Expression_H_ #define ModelAPI_Expression_H_ @@ -48,7 +61,7 @@ class ModelAPI_Expression MODELAPI_EXPORT virtual std::string error() = 0; /// Defines the used parameters (by the parameters listener) - MODELAPI_EXPORT virtual + MODELAPI_EXPORT virtual void setUsedParameters(const std::set& theUsedParameters) = 0; /// Returns the used parameters @@ -62,6 +75,10 @@ class ModelAPI_Expression MODELAPI_EXPORT ModelAPI_Expression(); /// Reinitializes the internal state of the attribute (may be needed on undo/redo, abort, etc) MODELAPI_EXPORT virtual void reinit() = 0; + /// Resets attribute to deafult state. + MODELAPI_EXPORT virtual void reset() { + myIsInitialized = false; + }; bool myIsInitialized; ///< is some value assigned to this attribute