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 //--------------------------------------------------------------------------------------
19 class ModelHighAPI_Interface
22 explicit ModelHighAPI_Interface(const std::shared_ptr<ModelAPI_Feature> & theFeature);
23 virtual ~ModelHighAPI_Interface();
25 /// Return ModelAPI_Feature
26 std::shared_ptr<ModelAPI_Feature> feature() const;
28 /// Shortcut for feature()->execute()
31 /// Throw exception to event loop.
32 void throwException(const std::string & theDescription);
35 std::shared_ptr<ModelAPI_Feature> myFeature;
38 //--------------------------------------------------------------------------------------
39 //--------------------------------------------------------------------------------------
40 #endif /* SRC_MODELHIGHAPI_MODELHIGHAPI_INTERFACE_H_ */