X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_ResultParameter.h;h=a3627e09fccfef837cc724ad5cb5df97ac887c83;hb=d5c7ad3c50f89a2ddc2de1866ffb7f09397f3be2;hp=f4b4734c42878a5d06117dfefb31368c7419c48e;hpb=f845f0d8829b0b04c5e1e552134cefadb1e7249c;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_ResultParameter.h b/src/ModelAPI/ModelAPI_ResultParameter.h index f4b4734c4..a3627e09f 100644 --- a/src/ModelAPI/ModelAPI_ResultParameter.h +++ b/src/ModelAPI/ModelAPI_ResultParameter.h @@ -1,13 +1,27 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: ModelAPI_ResultParameter.h -// Created: 07 Jul 2014 -// Author: Vitaly SMETANNIKOV +// 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_RESULTPARAMETER_H_ #define MODELAPI_RESULTPARAMETER_H_ -#include "ModelAPI_Result.h" +#include +#include /**\class ModelAPI_ResultParameter * \ingroup DataModel @@ -31,14 +45,25 @@ class ModelAPI_ResultParameter : public ModelAPI_Result static std::string MY_GROUP = "Parameters"; return MY_GROUP; } - + /// The computed value attribute Id inline static const std::string& VALUE() { static const std::string MY_VALUE_ID("Value"); return MY_VALUE_ID; } - MODELAPI_EXPORT virtual void initAttributes(); + /// The computational error attribute Id + inline static const std::string& STATE() + { + static const std::string MY_VALUE_ID("State"); + return MY_VALUE_ID; + } + + /// The generic initialization of attributes + virtual void initAttributes() = 0; + + /// Destructor + MODELAPI_EXPORT ~ModelAPI_ResultParameter(); };