5 #include <ExchangePlugin_Plugin.h>
6 #include <ExchangePlugin_ImportFeature.h>
8 #include <ModelAPI_PluginManager.h>
10 #include <boost/smart_ptr/shared_ptr.hpp>
14 // the only created instance of this plugin
15 static ExchangePlugin_Plugin* MY_INSTANCE = new ExchangePlugin_Plugin();
17 ExchangePlugin_Plugin::ExchangePlugin_Plugin()
19 // register this plugin
20 ModelAPI_PluginManager::get()->registerPlugin(this);
23 FeaturePtr ExchangePlugin_Plugin::createFeature(string theFeatureID)
25 if (theFeatureID == ExchangePlugin_ImportFeature::ID()) {
26 return FeaturePtr(new ExchangePlugin_ImportFeature);
28 // feature of such kind is not found