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

Factory for the service context. More...

#include <airsched/factory/FacAIRSCHEDServiceContext.hpp>

+ Inheritance diagram for AIRSCHED::FacAIRSCHEDServiceContext:

List of all members.

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

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.

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

Provide the unique instance.

The singleton is instantiated when first used.

Returns:
FacServiceContext&

Definition at line 22 of file FacAIRSCHEDServiceContext.cpp.

References FacAIRSCHEDServiceContext().

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: