Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Porting to SALOME_8.2.0 : Debug visualization selection for AIS_Trihedron axes.
[modules/shaper.git]
/
src
/
ModelAPI
/
ModelAPI_Session.cpp
diff --git
a/src/ModelAPI/ModelAPI_Session.cpp
b/src/ModelAPI/ModelAPI_Session.cpp
index 137f8f8a54abce115a3e9970efb20d32bc507a25..fba142217242795d627b5727602fdcd30e076a0e 100644
(file)
--- 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
// 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_AttributeRefList.h>
#include <ModelAPI_AttributeBoolean.h>
#include <ModelAPI_AttributeSelection.h>
+#include <ModelAPI_AttributeSelectionList.h>
#include <ModelAPI_Events.h>
#include <ModelAPI_Validator.h>
#include <ModelAPI_Events.h>
#include <ModelAPI_Validator.h>
@@
-34,25
+37,19
@@
#include <dlfcn.h>
#endif
#include <dlfcn.h>
#endif
-using namespace std;
-
#ifdef _DEBUG
#include <iostream>
#endif
/// Manager that will be initialized from Model package, one per application
#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;
}
{
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");
{
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;
}
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()
{
const ModelAPI_EventCreator* ModelAPI_EventCreator::get()
{