#include <opentrep/factory/FacWorld.hpp>
Public Types | |
typedef std::vector < BomAbstract * > | BomPool_T |
Public Member Functions | |
virtual | ~FacWorld () |
World & | create () |
World & | clone (const World &) |
Static Public Member Functions | |
static FacWorld & | instance () |
static void | linkPlaceToWorld (const bool iNeedsGeneric, World &, 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 World.
Definition at line 17 of file FacWorld.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 FacWorld::instance()
Definition at line 21 of file FacWorld.cpp.
|
static |
Provide the unique instance.
The singleton is instantiated when first used
Definition at line 26 of file FacWorld.cpp.
References OPENTREP::FacSupervisor::instance(), and OPENTREP::FacSupervisor::registerBomFactory().
World & OPENTREP::FacWorld::create | ( | ) |
Create a new World object.
This new object is added to the list of instantiated objects.
Definition at line 38 of file FacWorld.cpp.
References OPENTREP::FacBomAbstract::_pool.
|
static |
Link a Place object to a World one.
Definition at line 51 of file FacWorld.cpp.
References OPENTREP::World::describeKey(), OPENTREP::Place::describeShortKey(), OPENTREP::Place::getDocID(), OPENTREP_LOG_ERROR, and OPENTREP::BomType::PLACE.
Create a copy of a World object.
This new object is added to the list of instantiated objects.
Definition at line 90 of file FacWorld.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 clone(), OPENTREP::FacPlace::clone(), create(), OPENTREP::FacPlaceHolder::create(), OPENTREP::FacResultHolder::create(), OPENTREP::FacResult::create(), OPENTREP::FacPlace::create(), and OPENTREP::FacResultCombination::create().