1 // Name : ModelHighAPI_Interface.h
5 // 17/05/16 - Sergey POKHODENKO - Creation of the file
7 #ifndef SRC_MODELHIGHAPI_MODELHIGHAPI_INTERFACE_H_
8 #define SRC_MODELHIGHAPI_MODELHIGHAPI_INTERFACE_H_
10 //--------------------------------------------------------------------------------------
13 //--------------------------------------------------------------------------------------
14 class ModelAPI_Feature;
15 //--------------------------------------------------------------------------------------
16 /**\class ModelHighAPI_Interface
18 * \brief Base class for feature interfaces
20 class ModelHighAPI_Interface
24 explicit ModelHighAPI_Interface(const std::shared_ptr<ModelAPI_Feature> & theFeature);
26 virtual ~ModelHighAPI_Interface();
28 /// Return ModelAPI_Feature
29 std::shared_ptr<ModelAPI_Feature> feature() const;
31 /// Shortcut for feature()->execute()
34 /// Throw exception to event loop
35 void throwException(const std::string & theDescription);
38 std::shared_ptr<ModelAPI_Feature> myFeature;
41 //--------------------------------------------------------------------------------------
42 //--------------------------------------------------------------------------------------
43 #endif /* SRC_MODELHIGHAPI_MODELHIGHAPI_INTERFACE_H_ */