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> 35 #if defined(sequencer_EXPORTS) 36 #define SOTSEQUENCER_EXPORT __declspec(dllexport) 38 #define SOTSEQUENCER_EXPORT __declspec(dllimport) 41 #define SOTSEQUENCER_EXPORT 54 DYNAMIC_GRAPH_ENTITY_DECL();
63 void setName(
const std::string &name_) { name = name_; }
69 virtual const std::string &
getName()
const {
return name; }
71 virtual void operator()(
Sot *sotPtr) = 0;
72 virtual void display(std::ostream &os)
const { os << name; }
77 typedef std::list<sotEventAbstract *>
TaskList;
78 typedef std::map<unsigned int, TaskList>
TaskMap;
95 void rmTask(
int eventType,
const std::string &name,
const unsigned int time);
102 int &trigger(
int &dummy,
const int &time);
105 virtual void display(std::ostream &os)
const;
110 #endif // #ifndef __SOT_SOTSEQUENCER_H__ int eventType
Definition: sequencer.hh:64
void setSotRef(Sot *sot)
Definition: sequencer.hh:93
Sot * sotPtr
Definition: sequencer.hh:76
std::ostream * outputStreamPtr
Definition: sequencer.hh:85
void setName(const std::string &name_)
Definition: sequencer.hh:63
TaskMap taskMap
Definition: sequencer.hh:80
bool noOutput
Definition: sequencer.hh:86
std::map< unsigned int, TaskList > TaskMap
Definition: sequencer.hh:78
Definition: sequencer.hh:57
int timeInit
Definition: sequencer.hh:83
sotEventType
Definition: sequencer.hh:59
virtual ~sotEventAbstract(void)
Definition: sequencer.hh:68
bool playMode
Definition: sequencer.hh:84
virtual void display(std::ostream &os) const
Definition: sequencer.hh:72
int getEventType() const
Definition: sequencer.hh:70
This class implements the Stack of Task. It allows to deal with the priority of the controllers throu...
Definition: sot.hh:56
std::string name
Definition: sequencer.hh:62
std::list< sotEventAbstract * > TaskList
Definition: sequencer.hh:77
sotEventAbstract(const std::string &name)
Definition: sequencer.hh:67
dynamicgraph::SignalTimeDependent< int, int > triggerSOUT
Definition: sequencer.hh:99
Definition: sequencer.hh:53
virtual const std::string & getName() const
Definition: sequencer.hh:69
Definition: abstract-sot-external-interface.hh:17
#define SOTSEQUENCER_EXPORT
Definition: sequencer.hh:41