Salome HOME
Issue #1854 Recover feature control update
[modules/shaper.git] / src / ModelAPI / ModelAPI_ResultParameter.h
index 9d877376faf115a084f3e8da227d1c48efd1eb9b..4a8c293c877459decdfc9e386b7e7b7024b06ff3 100644 (file)
@@ -7,7 +7,8 @@
 #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,12 +32,26 @@ 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;
   }
+
+  /// 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();
+
 };
 
 //! Pointer on feature object