10 #ifndef __SOT_SOTSEQUENCER_H__
11 #define __SOT_SOTSEQUENCER_H__
18 #include <dynamic-graph/linear-algebra.h>
21 #include <dynamic-graph/all-signals.h>
22 #include <dynamic-graph/entity.h>
36 #if defined(sequencer_EXPORTS)
37 #define SOTSEQUENCER_EXPORT __declspec(dllexport)
39 #define SOTSEQUENCER_EXPORT __declspec(dllimport)
42 #define SOTSEQUENCER_EXPORT
55 DYNAMIC_GRAPH_ENTITY_DECL();
64 void setName(
const std::string &name_) { name = name_; }
70 virtual const std::string &
getName()
const {
return name; }
73 virtual void display(std::ostream &os)
const { os << name; }
78 typedef std::list<sotEventAbstract *>
TaskList;
79 typedef std::map<unsigned int, TaskList>
TaskMap;
96 void rmTask(
int eventType,
const std::string &name,
const unsigned int time);
Definition: sequencer.hh:58
virtual ~sotEventAbstract(void)
Definition: sequencer.hh:69
void setName(const std::string &name_)
Definition: sequencer.hh:64
int getEventType() const
Definition: sequencer.hh:71
sotEventAbstract(const std::string &name)
Definition: sequencer.hh:68
virtual void operator()(Sot *sotPtr)=0
sotEventType
Definition: sequencer.hh:60
@ EVENT_ADD
Definition: sequencer.hh:60
std::string name
Definition: sequencer.hh:63
virtual void display(std::ostream &os) const
Definition: sequencer.hh:73
virtual const std::string & getName() const
Definition: sequencer.hh:70
int eventType
Definition: sequencer.hh:65
Definition: sequencer.hh:54
Sot * sotPtr
Definition: sequencer.hh:77
int & trigger(int &dummy, const int &time)
bool noOutput
Definition: sequencer.hh:87
void setSotRef(Sot *sot)
Definition: sequencer.hh:94
dynamicgraph::SignalTimeDependent< int, int > triggerSOUT
Definition: sequencer.hh:100
Sequencer(const std::string &name)
std::ostream * outputStreamPtr
Definition: sequencer.hh:86
void addTask(sotEventAbstract *task, const unsigned int time)
virtual void display(std::ostream &os) const
std::map< unsigned int, TaskList > TaskMap
Definition: sequencer.hh:79
void rmTask(int eventType, const std::string &name, const unsigned int time)
bool playMode
Definition: sequencer.hh:85
TaskMap taskMap
Definition: sequencer.hh:81
int timeInit
Definition: sequencer.hh:84
std::list< sotEventAbstract * > TaskList
Definition: sequencer.hh:78
This class implements the Stack of Task. It allows to deal with the priority of the controllers throu...
Definition: sot.hh:57
Definition: abstract-sot-external-interface.hh:17
#define SOTSEQUENCER_EXPORT
Definition: sequencer.hh:42