1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModelAPI_ResultParameter.h
4 // Created: 07 Jul 2014
5 // Author: Vitaly SMETANNIKOV
7 #ifndef MODELAPI_RESULTPARAMETER_H_
8 #define MODELAPI_RESULTPARAMETER_H_
11 #include <ModelAPI_Result.h>
13 /**\class ModelAPI_ResultParameter
15 * \brief The construction element result of a feature.
17 * Provides a shape that may be displayed in the viewer.
18 * Intermediate, light result that in many cases produces a result on the fly.
20 class ModelAPI_ResultParameter : public ModelAPI_Result
23 /// Returns the group identifier of this result
24 virtual std::string groupName()
29 /// Returns the group identifier of this result
30 inline static std::string group()
32 static std::string MY_GROUP = "Parameters";
35 /// The computed value attribute Id
36 inline static const std::string& VALUE()
38 static const std::string MY_VALUE_ID("Value");
42 /// The computational error attribute Id
43 inline static const std::string& STATE()
45 static const std::string MY_VALUE_ID("State");
49 /// The generic initialization of attributes
50 virtual void initAttributes() = 0;
53 MODELAPI_EXPORT ~ModelAPI_ResultParameter();
57 //! Pointer on feature object
58 typedef std::shared_ptr<ModelAPI_ResultParameter> ResultParameterPtr;