LRT14  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
Repeating.h
1 #ifndef REPEATING_H_
2 #define REPEATING_H_
3 
4 #include "Automation.h"
5 #include <queue>
6 #include <vector>
7 
11 class Repeating : public Automation
12 {
13 public:
22  Repeating(const char* name, Automation* routine, int times = 0, bool queueIfBlocked = false, bool restartable = false);
23  virtual ~Repeating();
24 
25  virtual bool Start();
26  virtual bool Abort();
27  virtual bool Run();
28  virtual void AllocateResources();
29 
30 protected:
35  virtual bool Repeat();
36 
41  virtual bool FinishRepeat();
42 
43 private:
44  Automation* m_routine;
45  int m_times;
46  int m_count;
47  bool m_completed;
48 };
49 
50 #endif