Salome HOME
Fix of the processEvents call on Linux
[modules/shaper.git] / src / ExchangePlugin / ExchangePlugin_Plugin.cpp
1 /*
2  *
3  */
4
5 #include <ExchangePlugin_Plugin.h>
6 #include <ExchangePlugin_ImportFeature.h>
7
8 #include <ModelAPI_Session.h>
9
10 #include <boost/smart_ptr/shared_ptr.hpp>
11
12 using namespace std;
13
14 // the only created instance of this plugin
15 static ExchangePlugin_Plugin* MY_EXCHANGE_INSTANCE = new ExchangePlugin_Plugin();
16
17 ExchangePlugin_Plugin::ExchangePlugin_Plugin()
18 {
19   // register this plugin
20   ModelAPI_Session::get()->registerPlugin(this);
21 }
22
23 FeaturePtr ExchangePlugin_Plugin::createFeature(string theFeatureID)
24 {
25   if (theFeatureID == ExchangePlugin_ImportFeature::ID()) {
26     return FeaturePtr(new ExchangePlugin_ImportFeature);
27   }
28   // feature of such kind is not found
29   return FeaturePtr();
30 }