1 #ifndef ORG_EEROS_SEQUENCER_SEQUENCER_HPP_
2 #define ORG_EEROS_SEQUENCER_SEQUENCER_HPP_
8 #include <condition_variable>
23 template <
typename Treturn,
typename ... Targs >
33 virtual bool start(
unsigned int cmdSequenceIndex);
36 virtual void stepMode(
bool on =
true);
39 virtual std::string
getName()
const;
54 std::vector<Sequence<void>*> cmdSequences;
55 std::atomic<Sequence<void>*> currentSequence;
57 std::atomic<state::type> state;
58 std::atomic<mode::type> mode;
59 std::atomic<bool> abortSequence;
61 std::condition_variable cv;
64 static int instanceCounter;
70 #endif // ORG_EEROS_SEQUENCER_SEQUENCE_HPP_
virtual void toggleMode()
Definition: Sequencer.cpp:98
virtual void stepMode(bool on=true)
Definition: Sequencer.cpp:87
type
Definition: Sequencer.hpp:19
Definition: Sequencer.hpp:15
virtual void addCmdSequence(Sequence< void > *seq)
Definition: Sequencer.cpp:152
virtual std::string getName() const
Definition: Sequencer.cpp:146
virtual void run()
Definition: Sequencer.cpp:17
virtual void shutdown()
Definition: Sequencer.cpp:83
Definition: Sequencer.hpp:15
virtual const std::vector< Sequence< void > * > & getListOfCmdSequences()
Definition: Sequencer.cpp:156
Definition: Sequencer.hpp:19
Definition: Sequencer.hpp:26
virtual void abort()
Definition: Sequencer.cpp:130
type
Definition: Sequencer.hpp:15
Definition: Thread.hpp:13
virtual bool start()
Definition: Sequencer.cpp:56
virtual void yield()
Definition: Sequencer.cpp:110
Definition: Sequencer.hpp:15
Definition: Sequencer.hpp:19
virtual state::type getState() const
Definition: Sequencer.cpp:138
virtual mode::type getMode() const
Definition: Sequencer.cpp:142
Sequencer()
Definition: Sequencer.cpp:11
Definition: Sequencer.hpp:15
virtual void proceed()
Definition: Sequencer.cpp:124
Definition: Sequencer.hpp:15
Definition: Sequence.hpp:106