X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_Session.cpp;h=fba142217242795d627b5727602fdcd30e076a0e;hb=0f22bfc2773dcbb793c2c9c6562d25e114250617;hp=137f8f8a54abce115a3e9970efb20d32bc507a25;hpb=93310e00f0ac95395137c842108790bf62e6425e;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Session.cpp b/src/ModelAPI/ModelAPI_Session.cpp index 137f8f8a5..fba142217 100644 --- a/src/ModelAPI/ModelAPI_Session.cpp +++ b/src/ModelAPI/ModelAPI_Session.cpp @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: ModelAPI_Session.hxx // Created: 20 Mar 2014 // Author: Mikhail PONIKAROV @@ -23,6 +25,7 @@ #include #include #include +#include #include #include @@ -34,25 +37,19 @@ #include #endif -using namespace std; - #ifdef _DEBUG #include #endif /// Manager that will be initialized from Model package, one per application -boost::shared_ptr MY_MANAGER; - -ModelAPI_Session::ModelAPI_Session() -{ -} +std::shared_ptr MY_MANAGER; -void ModelAPI_Session::setSession(boost::shared_ptr theManager) +void ModelAPI_Session::setSession(std::shared_ptr theManager) { MY_MANAGER = theManager; } -boost::shared_ptr ModelAPI_Session::get() +std::shared_ptr ModelAPI_Session::get() { if (!MY_MANAGER) { // import Model library that implements this interface of ModelAPI Config_ModuleReader::loadLibrary("Model"); @@ -60,7 +57,8 @@ boost::shared_ptr ModelAPI_Session::get() return MY_MANAGER; } -const ModelAPI_EventCreator* MY_API_CREATOR = 0; ///< instance of the events creator, one pre application +/// instance of the events creator, one pre application +const ModelAPI_EventCreator* MY_API_CREATOR = 0; const ModelAPI_EventCreator* ModelAPI_EventCreator::get() {