X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_PluginManager.cpp;h=e02847db4b22f3dc21727d07c1a093d679459516;hb=103633b49d995fe6001e226ccdcc8ca48b9cb4e6;hp=75cc0430c17ea114ed9f8b2f42c09ae8b2ceeda3;hpb=aa07c7e0e3410522a1464d1863d1052c96edb7aa;p=modules%2Fshaper.git diff --git a/src/Model/Model_PluginManager.cpp b/src/Model/Model_PluginManager.cpp index 75cc0430c..e02847db4 100644 --- a/src/Model/Model_PluginManager.cpp +++ b/src/Model/Model_PluginManager.cpp @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include #include @@ -16,7 +16,7 @@ using namespace std; static Model_PluginManager* myImpl = new Model_PluginManager(); -shared_ptr Model_PluginManager::createFeature(string theFeatureID) +boost::shared_ptr Model_PluginManager::createFeature(string theFeatureID) { if (this != myImpl) return myImpl->createFeature(theFeatureID); @@ -28,18 +28,18 @@ shared_ptr Model_PluginManager::createFeature(string theFeatur loadLibrary(myCurrentPluginName); } if (myPluginObjs.find(myCurrentPluginName) != myPluginObjs.end()) { - std::shared_ptr aCreated = + boost::shared_ptr aCreated = myPluginObjs[myCurrentPluginName]->createFeature(theFeatureID); return aCreated; } } - return std::shared_ptr(); // return nothing + return boost::shared_ptr(); // return nothing } -std::shared_ptr Model_PluginManager::rootDocument() +boost::shared_ptr Model_PluginManager::rootDocument() { - return std::shared_ptr( + return boost::shared_ptr( Model_Application::getApplication()->getDocument("root")); } @@ -48,14 +48,14 @@ bool Model_PluginManager::hasRootDocument() return Model_Application::getApplication()->hasDocument("root"); } -shared_ptr Model_PluginManager::currentDocument() +boost::shared_ptr Model_PluginManager::currentDocument() { if (!myCurrentDoc) myCurrentDoc = rootDocument(); return myCurrentDoc; } -void Model_PluginManager::setCurrentDocument(shared_ptr theDoc) +void Model_PluginManager::setCurrentDocument(boost::shared_ptr theDoc) { myCurrentDoc = theDoc; } @@ -64,15 +64,15 @@ Model_PluginManager::Model_PluginManager() { myPluginsInfoLoaded = false; //TODO(sbh): Implement static method to extract event id [SEID] - static Event_ID aFeatureEvent = Event_Loop::eventByName("FeatureRegisterEvent"); + static Events_ID aFeatureEvent = Events_Loop::eventByName("FeatureRegisterEvent"); - ModelAPI_PluginManager::SetPluginManager(std::shared_ptr(this)); + ModelAPI_PluginManager::SetPluginManager(boost::shared_ptr(this)); // register the configuration reading listener - Event_Loop* aLoop = Event_Loop::loop(); + Events_Loop* aLoop = Events_Loop::loop(); aLoop->registerListener(this, aFeatureEvent); } -void Model_PluginManager::processEvent(const Event_Message* theMessage) +void Model_PluginManager::processEvent(const Events_Message* theMessage) { const Config_FeatureMessage* aMsg = dynamic_cast(theMessage); @@ -93,7 +93,6 @@ void Model_PluginManager::LoadPluginsInfo() // Read plugins information from XML files Config_ModuleReader aXMLReader("FeatureRegisterEvent"); - aXMLReader.setAutoImport(true); aXMLReader.readAll(); }