$treeview $search $mathjax
#include <simcrs/factory/FacSimcrsServiceContext.hpp>
Inheritance diagram for SIMCRS::FacSimcrsServiceContext:
Public Types | |
typedef std::vector< ServiceAbstract * > | ServicePool_T |
Public Member Functions | |
~FacSimcrsServiceContext () | |
SIMCRS_ServiceContext & | create (const std::string &iTravelDatabaseName) |
void | clean () |
Static Public Member Functions | |
static FacSimcrsServiceContext & | instance () |
Protected Member Functions | |
FacSimcrsServiceContext () | |
Protected Attributes | |
ServicePool_T | _pool |
Definition at line 18 of file FacSimcrsServiceContext.hpp.
typedef std::vector<ServiceAbstract*> SIMCRS::FacServiceAbstract::ServicePool_T [inherited] |
Define the list (pool) of Service objects.
Definition at line 20 of file FacServiceAbstract.hpp.
SIMCRS::FacSimcrsServiceContext::~FacSimcrsServiceContext | ( | ) |
Destructor.
The Destruction put the _instance to NULL in order to be clean for the next FacSimcrsServiceContext::instance()
Definition at line 16 of file FacSimcrsServiceContext.cpp.
SIMCRS::FacSimcrsServiceContext::FacSimcrsServiceContext | ( | ) | [inline, protected] |
Default Constructor.
This constructor is protected in order to ensure the singleton pattern.
Definition at line 42 of file FacSimcrsServiceContext.hpp.
Referenced by instance().
FacSimcrsServiceContext & SIMCRS::FacSimcrsServiceContext::instance | ( | ) | [static] |
Provide the unique instance.
The singleton is instantiated when first used
Definition at line 21 of file FacSimcrsServiceContext.cpp.
References FacSimcrsServiceContext(), SIMCRS::FacSupervisor::instance(), and SIMCRS::FacSupervisor::registerServiceFactory().
SIMCRS_ServiceContext & SIMCRS::FacSimcrsServiceContext::create | ( | const std::string & | iTravelDatabaseName | ) |
Create a new SIMCRS_ServiceContext object.
This new object is added to the list of instantiated objects.
Definition at line 34 of file FacSimcrsServiceContext.cpp.
References SIMCRS::FacServiceAbstract::_pool.
void SIMCRS::FacServiceAbstract::clean | ( | ) | [inherited] |
Destroyed all the object instantiated by this factory.
Definition at line 18 of file FacServiceAbstract.cpp.
References SIMCRS::FacServiceAbstract::_pool.
Referenced by SIMCRS::FacServiceAbstract::~FacServiceAbstract().
ServicePool_T SIMCRS::FacServiceAbstract::_pool [protected, inherited] |
List of instantiated Business Objects
Definition at line 34 of file FacServiceAbstract.hpp.
Referenced by SIMCRS::FacServiceAbstract::clean(), and create().