RMOL Logo Get Revenue Management Optimisation Library at SourceForge.net. Fast, secure and Free Open Source software downloads

RMOL::FacRmolServiceContext Class Reference

#include <rmol/factory/FacRmolServiceContext.hpp>

Inheritance diagram for RMOL::FacRmolServiceContext:
RMOL::FacServiceAbstract

List of all members.

Public Types

typedef std::vector
< ServiceAbstract * > 
ServicePool_T

Public Member Functions

virtual ~FacRmolServiceContext ()
RMOL_ServiceContextcreate ()
RMOL_ServiceContextcreate (const ResourceCapacity_T iResourceCapacity)
void clean ()

Static Public Member Functions

static FacRmolServiceContextinstance ()

Protected Member Functions

 FacRmolServiceContext ()

Protected Attributes

ServicePool_T _pool

Detailed Description

Factory for Bucket.

Definition at line 17 of file FacRmolServiceContext.hpp.


Member Typedef Documentation

typedef std::vector<ServiceAbstract*> RMOL::FacServiceAbstract::ServicePool_T [inherited]

Define the list (pool) of Service objects.

Definition at line 20 of file FacServiceAbstract.hpp.


Constructor & Destructor Documentation

RMOL::FacRmolServiceContext::~FacRmolServiceContext (  )  [virtual]

Destructor.
The Destruction put the _instance to NULL in order to be clean for the next FacServiceContext::instance()

Definition at line 16 of file FacRmolServiceContext.cpp.

RMOL::FacRmolServiceContext::FacRmolServiceContext (  )  [inline, protected]

Default Constructor.
This constructor is protected in order to ensure the singleton pattern.

Definition at line 45 of file FacRmolServiceContext.hpp.

Referenced by instance().


Member Function Documentation

FacRmolServiceContext & RMOL::FacRmolServiceContext::instance (  )  [static]

Provide the unique instance.
The singleton is instantiated when first used

Returns:
FacServiceContext&

Definition at line 21 of file FacRmolServiceContext.cpp.

References FacRmolServiceContext().

RMOL_ServiceContext & RMOL::FacRmolServiceContext::create (  ) 

Create a new ServiceContext object.
This new object is added to the list of instantiated objects.

Returns:
ServiceContext& The newly created object.

Definition at line 33 of file FacRmolServiceContext.cpp.

References RMOL::FacServiceAbstract::_pool.

RMOL_ServiceContext & RMOL::FacRmolServiceContext::create ( const ResourceCapacity_T  iResourceCapacity  ) 

Create a new ServiceContext object.
This new object is added to the list of instantiated objects.

Returns:
ServiceContext& The newly created object.

Definition at line 47 of file FacRmolServiceContext.cpp.

References RMOL::FacServiceAbstract::_pool.

void RMOL::FacServiceAbstract::clean (  )  [inherited]

Destroyed all the object instantiated by this factory.

Definition at line 18 of file FacServiceAbstract.cpp.

References RMOL::FacServiceAbstract::_pool.

Referenced by RMOL::FacServiceAbstract::~FacServiceAbstract().


Member Data Documentation

List of instantiated Business Objects

Definition at line 34 of file FacServiceAbstract.hpp.

Referenced by RMOL::FacServiceAbstract::clean(), and create().


The documentation for this class was generated from the following files:
SourceForge Logo

Generated on Fri Jul 30 21:43:02 2010 for RMOL by Doxygen 1.6.2-20100208