1.00.2
C++ Simulation-Oriented Discrete Event Management Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
FacSEVMGRServiceContext.cpp
Go to the documentation of this file.
1
// //////////////////////////////////////////////////////////////////////
2
// Import section
3
// //////////////////////////////////////////////////////////////////////
4
// STL
5
#include <cassert>
6
// StdAir
7
#include <stdair/service/FacSupervisor.hpp>
8
// Sevmgr
9
#include <
sevmgr/factory/FacSEVMGRServiceContext.hpp
>
10
#include <
sevmgr/service/SEVMGR_ServiceContext.hpp
>
11
12
namespace
SEVMGR
{
13
14
FacSEVMGRServiceContext* FacSEVMGRServiceContext::_instance = NULL;
15
16
// //////////////////////////////////////////////////////////////////////
17
FacSEVMGRServiceContext::~FacSEVMGRServiceContext
() {
18
_instance = NULL;
19
}
20
21
// //////////////////////////////////////////////////////////////////////
22
FacSEVMGRServiceContext
&
FacSEVMGRServiceContext::instance
() {
23
24
if
(_instance == NULL) {
25
_instance =
new
FacSEVMGRServiceContext
();
26
assert (_instance != NULL);
27
28
stdair::FacSupervisor::instance().registerServiceFactory (_instance);
29
}
30
return
*_instance;
31
}
32
33
// //////////////////////////////////////////////////////////////////////
34
SEVMGR_ServiceContext
&
FacSEVMGRServiceContext::create
() {
35
SEVMGR_ServiceContext
* aServiceContext_ptr = NULL;
36
37
aServiceContext_ptr =
new
SEVMGR_ServiceContext
();
38
assert (aServiceContext_ptr != NULL);
39
40
// The new object is added to the Bom pool
41
_pool.push_back (aServiceContext_ptr);
42
43
return
*aServiceContext_ptr;
44
}
45
46
}
SEVMGR::SEVMGR_ServiceContext
Class holding the context of the Sevmgr services.
Definition:
SEVMGR_ServiceContext.hpp:30
SEVMGR::FacSEVMGRServiceContext::~FacSEVMGRServiceContext
~FacSEVMGRServiceContext()
Definition:
FacSEVMGRServiceContext.cpp:17
SEVMGR::FacSEVMGRServiceContext
Definition:
FacSEVMGRServiceContext.hpp:18
FacSEVMGRServiceContext.hpp
SEVMGR::FacSEVMGRServiceContext::instance
static FacSEVMGRServiceContext & instance()
Definition:
FacSEVMGRServiceContext.cpp:22
SEVMGR::FacSEVMGRServiceContext::create
SEVMGR_ServiceContext & create()
Definition:
FacSEVMGRServiceContext.cpp:34
SEVMGR::FacSEVMGRServiceContext::FacSEVMGRServiceContext
FacSEVMGRServiceContext()
Definition:
FacSEVMGRServiceContext.hpp:42
SEVMGR_ServiceContext.hpp
SEVMGR
Definition:
BasConst.cpp:10
Generated on Sun Aug 30 2015 20:14:55 for SEvMgr by
1.8.9.1