Salome HOME
Porting to SALOME_8.2.0 : Debug visualization selection for AIS_Trihedron axes.
[modules/shaper.git] / src / ModelAPI / ModelAPI_Session.cpp
index 137f8f8a54abce115a3e9970efb20d32bc507a25..fba142217242795d627b5727602fdcd30e076a0e 100644 (file)
@@ -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 <ModelAPI_AttributeRefList.h>
 #include <ModelAPI_AttributeBoolean.h>
 #include <ModelAPI_AttributeSelection.h>
+#include <ModelAPI_AttributeSelectionList.h>
 #include <ModelAPI_Events.h>
 #include <ModelAPI_Validator.h>
 
 #include <dlfcn.h>
 #endif
 
-using namespace std;
-
 #ifdef _DEBUG
 #include <iostream>
 #endif
 
 /// Manager that will be initialized from Model package, one per application
-boost::shared_ptr<ModelAPI_Session> MY_MANAGER;
-
-ModelAPI_Session::ModelAPI_Session()
-{
-}
+std::shared_ptr<ModelAPI_Session> MY_MANAGER;
 
-void ModelAPI_Session::setSession(boost::shared_ptr<ModelAPI_Session> theManager)
+void ModelAPI_Session::setSession(std::shared_ptr<ModelAPI_Session> theManager)
 {
   MY_MANAGER = theManager;
 }
 
-boost::shared_ptr<ModelAPI_Session> ModelAPI_Session::get()
+std::shared_ptr<ModelAPI_Session> 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> 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()
 {