#include <opentrep/factory/FacPlace.hpp>
Public Types | |
typedef std::vector < BomAbstract * > | BomPool_T |
Public Member Functions | |
virtual | ~FacPlace () |
Place & | create () |
Place & | create (const LocationKey &) |
Place & | create (const Location &) |
Place & | clone (const Place &) |
Static Public Member Functions | |
static FacPlace & | instance () |
static void | initLinkWithExtraPlace (Place &, Place &) |
static void | initLinkWithAlternatePlace (Place &, Place &) |
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 |
Factory for Place.
Definition at line 20 of file FacPlace.hpp.
|
inherited |
Define the list (pool) of Bom objects.
Definition at line 22 of file FacBomAbstract.hpp.
|
virtual |
Destructor.
The Destruction put the _instance to NULL in order to be clean for the next FacPlace::instance()
Definition at line 24 of file FacPlace.cpp.
|
static |
Provide the unique instance.
The singleton is instantiated when first used
Definition at line 29 of file FacPlace.cpp.
References OPENTREP::FacSupervisor::instance(), and OPENTREP::FacSupervisor::registerBomFactory().
Referenced by OPENTREP::DBManager::buildSQLDB(), OPENTREP::createPlaces(), and OPENTREP::DBManager::prepareSelectFromCoordStatement().
Place & OPENTREP::FacPlace::create | ( | ) |
Create a new Place object.
This new object is added to the list of instantiated objects.
Definition at line 41 of file FacPlace.cpp.
References OPENTREP::FacBomAbstract::_pool.
Referenced by OPENTREP::DBManager::buildSQLDB(), OPENTREP::createPlaces(), and OPENTREP::DBManager::prepareSelectFromCoordStatement().
Place & OPENTREP::FacPlace::create | ( | const LocationKey & | iLocationKey | ) |
Create a new Place object.
This new object is added to the list of instantiated objects.
const | LocationKey& The primary key (IATA and ICAO codes, Geonames ID) of the place |
Definition at line 54 of file FacPlace.cpp.
References OPENTREP::FacBomAbstract::_pool.
Create a new Place object.
This new object is added to the list of instantiated objects.
const | Location& The primary key (IATA and ICAO codes, Geonames ID) of the place |
Definition at line 67 of file FacPlace.cpp.
References OPENTREP::FacBomAbstract::_pool.
Create a copy of a Place object.
This new object is added to the list of instantiated objects.
Definition at line 80 of file FacPlace.cpp.
References OPENTREP::FacBomAbstract::_pool.
|
staticinherited |
Return the ID corresponding to the given object pointer.
Definition at line 36 of file FacBomAbstract.cpp.
Referenced by OPENTREP::FacBomAbstract::getID(), and OPENTREP::FacBomAbstract::getIDString().
|
staticinherited |
Return the ID corresponding to the given object reference.
Definition at line 44 of file FacBomAbstract.cpp.
References OPENTREP::FacBomAbstract::getID().
|
staticinherited |
Return the ID, as a string, corresponding to the given object pointer.
Definition at line 49 of file FacBomAbstract.cpp.
References OPENTREP::FacBomAbstract::getID().
Referenced by OPENTREP::FacBomAbstract::getIDString().
|
staticinherited |
Return the ID, as a string, corresponding to the given object reference.
Definition at line 57 of file FacBomAbstract.cpp.
References OPENTREP::FacBomAbstract::getIDString().
|
protectedinherited |
List of instantiated Business Objects
Definition at line 53 of file FacBomAbstract.hpp.
Referenced by OPENTREP::FacWorld::clone(), clone(), OPENTREP::FacPlaceHolder::create(), OPENTREP::FacWorld::create(), OPENTREP::FacResultHolder::create(), OPENTREP::FacResult::create(), create(), and OPENTREP::FacResultCombination::create().