OpenTREP Logo  0.07.18
C++ Open Travel Request Parsing Library
Loading...
Searching...
No Matches
OPENTREP::FacResultCombination Class Reference

#include <opentrep/factory/FacResultCombination.hpp>

+ Inheritance diagram for OPENTREP::FacResultCombination:

Public Types

typedef std::vector< BomAbstract * > BomPool_T
 

Public Member Functions

virtual ~FacResultCombination ()
 
ResultCombinationcreate (const TravelQuery_T &iQueryString)
 

Static Public Member Functions

static FacResultCombinationinstance ()
 
static void initLinkWithResultHolder (ResultCombination &, ResultHolder &)
 
static std::size_t getID (const BomAbstract *)
 
static std::size_t getID (const BomAbstract &)
 
static std::string getIDString (const BomAbstract *)
 
static std::string getIDString (const BomAbstract &)
 

Protected Attributes

BomPool_T _pool
 

Detailed Description

Factory for ResultCombination.

Definition at line 25 of file FacResultCombination.hpp.

Member Typedef Documentation

◆ BomPool_T

typedef std::vector<BomAbstract*> OPENTREP::FacBomAbstract::BomPool_T
inherited

Define the list (pool) of Bom objects.

Definition at line 22 of file FacBomAbstract.hpp.

Constructor & Destructor Documentation

◆ ~FacResultCombination()

OPENTREP::FacResultCombination::~FacResultCombination ( )
virtual

Destructor.

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

Definition at line 26 of file FacResultCombination.cpp.

Member Function Documentation

◆ instance()

FacResultCombination & OPENTREP::FacResultCombination::instance ( )
static

Provide the unique instance.

The singleton is instantiated when first used

Returns
FacResultCombination&

Definition at line 31 of file FacResultCombination.cpp.

References OPENTREP::FacSupervisor::instance(), and OPENTREP::FacSupervisor::registerBomFactory().

◆ create()

ResultCombination & OPENTREP::FacResultCombination::create ( const TravelQuery_T & iQueryString)

Create a new ResultCombination object.

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

Returns
ResultCombination& The newly created object.

Definition at line 43 of file FacResultCombination.cpp.

References OPENTREP::FacBomAbstract::_pool.

◆ initLinkWithResultHolder()

void OPENTREP::FacResultCombination::initLinkWithResultHolder ( ResultCombination & ioResultCombination,
ResultHolder & ioResultHolder )
static

Initialise the link between a ResultCombination and a ResultHolder.

Parameters
ResultCombination&
ResultHolder&
Exceptions
FacExceptionNullPointer
FacException.

Definition at line 57 of file FacResultCombination.cpp.

Referenced by OPENTREP::searchString().

◆ getID() [1/2]

std::size_t OPENTREP::FacBomAbstract::getID ( const BomAbstract * iBomAbstract_ptr)
staticinherited

Return the ID corresponding to the given object pointer.

Definition at line 36 of file FacBomAbstract.cpp.

Referenced by getID(), and getIDString().

◆ getID() [2/2]

std::size_t OPENTREP::FacBomAbstract::getID ( const BomAbstract & iBomAbstract)
staticinherited

Return the ID corresponding to the given object reference.

Definition at line 44 of file FacBomAbstract.cpp.

References getID().

◆ getIDString() [1/2]

std::string OPENTREP::FacBomAbstract::getIDString ( const BomAbstract * iBomAbstract_ptr)
staticinherited

Return the ID, as a string, corresponding to the given object pointer.

Definition at line 49 of file FacBomAbstract.cpp.

References getID().

Referenced by getIDString().

◆ getIDString() [2/2]

std::string OPENTREP::FacBomAbstract::getIDString ( const BomAbstract & iBomAbstract)
staticinherited

Return the ID, as a string, corresponding to the given object reference.

Definition at line 57 of file FacBomAbstract.cpp.

References getIDString().

Member Data Documentation

◆ _pool


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