6 #ifndef DYNAMIC_GRAPH_POOL_H
7 #define DYNAMIC_GRAPH_POOL_H
8 #include <dynamic-graph/dynamic-graph-api.h>
9 #include <dynamic-graph/exception-factory.h>
10 #include <dynamic-graph/signal-base.h>
12 #include <dynamic-graph/fwd.hh>
39 typedef std::map<std::string, Entity *>
Entities;
99 void writeCompletionList(std::ostream &os);
This class represents an entity, i.e. a generic computational unit that provides input and output sig...
Singleton that keeps track of all the entities.
bool existEntity(const std::string &name)
Test if the entity exists.
static void destroy()
Destroy the unique instance of the class.
void clearPlugin(const std::string &name)
Disallocate an entity.
~PoolStorage()
Default destructor.
static PoolStorage * getInstance()
Get unique instance of the class.
void writeGraph(const std::string &aFileName)
This method write a graph description on the file named FileName.
Entity & getEntity(const std::string &name)
Get an entity.
SignalBase< sigtime_t > & getSignal(std::istringstream &sigpath)
Get a signal by name.
void registerEntity(const std::string &entname, Entity *ent)
Register an entity.
bool existEntity(const std::string &name, Entity *&ptr)
Test if the entity exists. If it does, return a pointer on it.
std::map< std::string, Entity * > Entities
Sorted set of entities with unique key (name).
const Entities & getEntityMap() const
Const access to entity map.
void deregisterEntity(const std::string &entname)
Unregister an entity.
Entities entityMap
Set of basic objects of the SoT.
void deregisterEntity(const Entities::iterator &entity)
Unregister an entity.
The base class for signals: not to be used as such.