#include <simcrs/factory/FacSimcrsServiceContext.hpp>
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 |
Factory for Bucket.
Definition at line 18 of file FacSimcrsServiceContext.hpp.
|
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.
|
inlineprotected |
Default Constructor.
This constructor is protected in order to ensure the singleton pattern.
Definition at line 42 of file FacSimcrsServiceContext.hpp.
Referenced by instance().
|
static |
Provide the unique instance.
The singleton is instantiated when first used
Definition at line 21 of file FacSimcrsServiceContext.cpp.
References FacSimcrsServiceContext().
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.
|
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().
|
protectedinherited |
List of instantiated Business Objects
Definition at line 34 of file FacServiceAbstract.hpp.
Referenced by SIMCRS::FacServiceAbstract::clean(), and create().