Singleton that keeps track of all the entities. More...
#include <dynamic-graph/pool.h>
Public Member Functions | |
~PoolStorage () | |
Default destructor. | |
SignalBase< int > & | getSignal (std::istringstream &sigpath) |
Get a signal by name. More... | |
void | writeCompletionList (std::ostream &os) |
void | writeGraph (const std::string &aFileName) |
This method write a graph description on the file named FileName. | |
Method related to the handling of entities. | |
void | registerEntity (const std::string &entname, Entity *ent) |
Register an entity. More... | |
void | deregisterEntity (const std::string &entname) |
Unregister an entity. More... | |
void | deregisterEntity (const Entities::iterator &entity) |
Unregister an entity. More... | |
Entity & | getEntity (const std::string &name) |
Get an entity. More... | |
const Entities & | getEntityMap () const |
Const access to entity map. | |
bool | existEntity (const std::string &name) |
Test if the entity exists. | |
bool | existEntity (const std::string &name, Entity *&ptr) |
Test if the entity exists. If it does, return a pointer on it. | |
void | clearPlugin (const std::string &name) |
Disallocate an entity. More... | |
Define types to simplify the writing | |
typedef std::map< std::string, Entity * > | Entities |
Sorted set of entities with unique key (name). | |
static PoolStorage * | getInstance () |
Get unique instance of the class. | |
static void | destroy () |
Destroy the unique instance of the class. | |
Fields of the class to manage the three entities. | |
Entities | entityMap |
Set of basic objects of the SoT. | |
Singleton that keeps track of all the entities.
This class gives access to and remembers all the entities created during its life.
This class provides the necessary operations to register, unregister each instance of thoses classes. As tasks and features derived from Entities, they should be registered as such.
void clearPlugin | ( | const std::string & | name | ) |
Disallocate an entity.
void deregisterEntity | ( | const Entities::iterator & | entity | ) |
Unregister an entity.
void deregisterEntity | ( | const std::string & | entname | ) |
Unregister an entity.
Entity& getEntity | ( | const std::string & | name | ) |
Get an entity.
SignalBase<int>& getSignal | ( | std::istringstream & | sigpath | ) |
Get a signal by name.
sigpath | stream containing a string of the form "entity.signal" |
void registerEntity | ( | const std::string & | entname, |
Entity * | ent | ||
) |
Register an entity.