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; }
72 virtual void operator()(
Sot *sotPtr) = 0;
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);
103 int &trigger(
int &dummy,
const int &time);
106 virtual void display(std::ostream &os)
const;
111 #endif // #ifndef __SOT_SOTSEQUENCER_H__ int eventType
Definition: sequencer.hh:65
void setSotRef(Sot *sot)
Definition: sequencer.hh:94
Sot * sotPtr
Definition: sequencer.hh:77
std::ostream * outputStreamPtr
Definition: sequencer.hh:86
void setName(const std::string &name_)
Definition: sequencer.hh:64
TaskMap taskMap
Definition: sequencer.hh:81
bool noOutput
Definition: sequencer.hh:87
std::map< unsigned int, TaskList > TaskMap
Definition: sequencer.hh:79
Definition: sequencer.hh:58
int timeInit
Definition: sequencer.hh:84
sotEventType
Definition: sequencer.hh:60
virtual ~sotEventAbstract(void)
Definition: sequencer.hh:69
bool playMode
Definition: sequencer.hh:85
virtual void display(std::ostream &os) const
Definition: sequencer.hh:73
int getEventType() const
Definition: sequencer.hh:71
This class implements the Stack of Task. It allows to deal with the priority of the controllers throu...
Definition: sot.hh:57
std::string name
Definition: sequencer.hh:63
std::list< sotEventAbstract * > TaskList
Definition: sequencer.hh:78
sotEventAbstract(const std::string &name)
Definition: sequencer.hh:68
dynamicgraph::SignalTimeDependent< int, int > triggerSOUT
Definition: sequencer.hh:100
Definition: sequencer.hh:54
virtual const std::string & getName() const
Definition: sequencer.hh:70
Definition: abstract-sot-external-interface.hh:17
#define SOTSEQUENCER_EXPORT
Definition: sequencer.hh:42