RMOL Logo  1.00.1
C++ library of Revenue Management and Optimisation classes and functions
RMOL::FacRmolServiceContext Class Reference

Factory for the service context. More...

#include <rmol/factory/FacRmolServiceContext.hpp>

+ Inheritance diagram for RMOL::FacRmolServiceContext:

Public Member Functions

 ~FacRmolServiceContext ()
 
RMOL_ServiceContextcreate ()
 

Static Public Member Functions

static FacRmolServiceContextinstance ()
 

Protected Member Functions

 FacRmolServiceContext ()
 

Detailed Description

Factory for the service context.

Definition at line 22 of file FacRmolServiceContext.hpp.

Constructor & Destructor Documentation

◆ ~FacRmolServiceContext()

RMOL::FacRmolServiceContext::~FacRmolServiceContext ( )

Destructor.

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

Definition at line 17 of file FacRmolServiceContext.cpp.

◆ FacRmolServiceContext()

RMOL::FacRmolServiceContext::FacRmolServiceContext ( )
inlineprotected

Default Constructor.

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

Definition at line 57 of file FacRmolServiceContext.hpp.

Referenced by instance().

Member Function Documentation

◆ instance()

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

Provide the unique instance.

The singleton is instantiated when first used.

Returns
FacServiceContext&

Definition at line 22 of file FacRmolServiceContext.cpp.

References FacRmolServiceContext().

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

◆ create()

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 34 of file FacRmolServiceContext.cpp.

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


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