10 #ifndef __SOT_POOL_HH__
11 #define __SOT_POOL_HH__
23 #include <dynamic-graph/pool.h>
24 #include <dynamic-graph/signal-base.h>
38 class FeatureAbstract;
69 typedef std::map<std::string, TaskAbstract *>
Tasks;
72 typedef std::map<std::string, FeatureAbstract *>
Features;
#define SOT_CORE_EXPORT
Definition: api.hh:20
This class gives the abstract definition of a feature.
Definition: feature-abstract.hh:76
This singleton class keep tracks of all features and tasks.
Definition: pool.hh:63
FeatureAbstract & getFeature(const std::string &name)
Get a reference to a feature.
std::map< std::string, FeatureAbstract * > Features
Sorted set of features with unique key (name).
Definition: pool.hh:72
void registerFeature(const std::string &entname, FeatureAbstract *ent)
Registering a feature.
std::map< std::string, TaskAbstract * > Tasks
Sorted set of tasks with unique key (name).
Definition: pool.hh:69
void registerTask(const std::string &entname, TaskAbstract *ent)
Registering a task.
static PoolStorage * getInstance()
Get unique instance of the class.
void writeCompletionList(std::ostream &os)
static void destroy()
destroy unique instance of the class
void writeGraph(const std::string &aFileName)
This method write a graph description on the file named FileName.
Features feature
Set of features.
Definition: pool.hh:85
TaskAbstract & getTask(const std::string &name)
Get a reference to a task.
~PoolStorage(void)
Default destructor.
Tasks task
Set of controllers.
Definition: pool.hh:82
Definition: task-abstract.hh:51
Definition: abstract-sot-external-interface.hh:17