StdAir Logo  1.00.18
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
stdair::FacBom< BOM > Class Template Reference

Base class for Factory layer. More...

#include <stdair/factory/FacBom.hpp>

+ Inheritance diagram for stdair::FacBom< BOM >:

Public Member Functions

BOM & create ()
 
BOM & create (const Key_T &)
 
BOM & create (const BOM &)
 
 ~FacBom ()
 
void clean ()
 

Static Public Member Functions

static FacBominstance ()
 

Protected Member Functions

 FacBom ()
 

Detailed Description

template<typename BOM>
class stdair::FacBom< BOM >

Base class for Factory layer.

Definition at line 22 of file FacBom.hpp.

Constructor & Destructor Documentation

◆ FacBom()

template<typename BOM>
stdair::FacBom< BOM >::FacBom ( )
inlineprotected

Default Constructor.

Definition at line 50 of file FacBom.hpp.

Referenced by instance().

◆ ~FacBom()

template<typename BOM>
stdair::FacBom< BOM >::~FacBom ( )
inline

Destructor.

Definition at line 56 of file FacBom.hpp.

References clean().

Member Function Documentation

◆ instance()

template<typename BOM>
FacBom< BOM > & stdair::FacBom< BOM >::instance ( )
static

Provide the unique instance.

The singleton is instantiated when first used.

Returns
FacBom&

Definition at line 84 of file FacBom.hpp.

References FacBom(), stdair::FacSupervisor::instance(), and stdair::FacSupervisor::registerPersistentBomFactory().

Referenced by create().

◆ create() [1/3]

template<typename BOM>
BOM & stdair::FacBom< BOM >::create ( )

Create a BOM object, given a key or not.

Definition at line 112 of file FacBom.hpp.

References instance().

Referenced by stdair::FacBomManager::addBomHolder().

◆ create() [2/3]

template<typename BOM>
BOM & stdair::FacBom< BOM >::create ( const Key_T & iKey)

Definition at line 118 of file FacBom.hpp.

◆ create() [3/3]

template<typename BOM>
BOM & stdair::FacBom< BOM >::create ( const BOM & iBom)

Definition at line 126 of file FacBom.hpp.

◆ clean()

template<typename BOM>
void stdair::FacBom< BOM >::clean ( )

Destroyed all the object instantiated by this factory.

Definition at line 95 of file FacBom.hpp.

Referenced by ~FacBom().


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