Salome HOME
Error message correction for the following case, found by squish:
[modules/shaper.git] / src / ModelAPI / ModelAPI_ResultParameter.h
index f4b4734c42878a5d06117dfefb31368c7419c48e..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,14 +32,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();
 
 };