AirSched Logo  0.1.4
C++ Simulated Airline Schedule Manager Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AIRSCHED::FacAIRSCHEDServiceContext Class Reference

Factory for the service context. More...

#include <airsched/factory/FacAIRSCHEDServiceContext.hpp>

+ Inheritance diagram for AIRSCHED::FacAIRSCHEDServiceContext:

Public Member Functions

 ~FacAIRSCHEDServiceContext ()
AIRSCHED_ServiceContextcreate ()

Static Public Member Functions

static FacAIRSCHEDServiceContextinstance ()

Protected Member Functions

 FacAIRSCHEDServiceContext ()

Detailed Description

Factory for the service context.

Definition at line 19 of file FacAIRSCHEDServiceContext.hpp.

Constructor & Destructor Documentation

AIRSCHED::FacAIRSCHEDServiceContext::~FacAIRSCHEDServiceContext ( )

Destructor.

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

Definition at line 17 of file FacAIRSCHEDServiceContext.cpp.

AIRSCHED::FacAIRSCHEDServiceContext::FacAIRSCHEDServiceContext ( )
inlineprotected

Default Constructor.

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

Definition at line 54 of file FacAIRSCHEDServiceContext.hpp.

Referenced by instance().

Member Function Documentation

FacAIRSCHEDServiceContext & AIRSCHED::FacAIRSCHEDServiceContext::instance ( )
static

Provide the unique instance.

The singleton is instantiated when first used.

Returns
FacServiceContext&

Definition at line 22 of file FacAIRSCHEDServiceContext.cpp.

References FacAIRSCHEDServiceContext().

AIRSCHED_ServiceContext & AIRSCHED::FacAIRSCHEDServiceContext::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 FacAIRSCHEDServiceContext.cpp.


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