Salome HOME
Updated copyright comment
[modules/shaper.git] / src / ModelAPI / ModelAPI_ResultParameter.h
index f4b4734c42878a5d06117dfefb31368c7419c48e..0a932f7f116c2b79db669a4852d1d5e00d00e2f1 100644 (file)
@@ -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-2024  CEA, EDF
+//
+// 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 <ModelAPI.h>
+#include <ModelAPI_Result.h>
 
 /**\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();
 
 };