Factory for creating the TraDemGen service context instance. More...
#include <trademgen/factory/FacTRADEMGENServiceContext.hpp>
Public Member Functions | |
~FacTRADEMGENServiceContext () | |
TRADEMGEN_ServiceContext & | create (const stdair::RandomSeed_T &) |
Static Public Member Functions | |
static FacTRADEMGENServiceContext & | instance () |
Protected Member Functions | |
FacTRADEMGENServiceContext () |
Factory for creating the TraDemGen service context instance.
Definition at line 21 of file FacTRADEMGENServiceContext.hpp.
Destructor.
The Destruction put the _instance to NULL in order to be clean for the next FacTRADEMGENServiceContext::instance().
Definition at line 17 of file FacTRADEMGENServiceContext.cpp.
TRADEMGEN::FacTRADEMGENServiceContext::FacTRADEMGENServiceContext | ( | ) | [inline, protected] |
Default Constructor.
This constructor is protected in order to ensure the singleton pattern.
Definition at line 57 of file FacTRADEMGENServiceContext.hpp.
Referenced by instance().
Provide the unique instance.
The singleton is instantiated when first used.
Definition at line 22 of file FacTRADEMGENServiceContext.cpp.
References FacTRADEMGENServiceContext().
TRADEMGEN_ServiceContext & TRADEMGEN::FacTRADEMGENServiceContext::create | ( | const stdair::RandomSeed_T & | iRandomSeed | ) |
Create a new TRADEMGEN_ServiceContext object.
This new object is added to the list of instantiated objects.
const | stdair::RandomSeed_T& Seed for the random generation. |
Definition at line 35 of file FacTRADEMGENServiceContext.cpp.