LRT14  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
Parallel.h
1 #ifndef PARALLEL_H_
2 #define PARALLEL_H_
3 
4 #include "Automation.h"
5 #include <vector>
6 
10 class Parallel : public Automation
11 {
12 public:
19  Parallel(const char* name, bool queueIfBlocked = false, bool restartable = false);
20 
28  Parallel(const char* name, std::vector<Automation*> sequence, bool queueIfBlocked = false, bool restartable = false);
29  virtual ~Parallel();
30 
31  virtual bool Start();
32  virtual bool Abort();
33  virtual bool Run();
34  virtual void AllocateResources();
35 
40  void AddAutomation(Automation *automation);
41 
46  void AddAutomation(std::vector<Automation*> automation);
47 
51  void ClearAutomation();
52 
53 private:
54  std::vector<Automation*> routines;
55  std::vector<Automation*> running;
56 };
57 
58 #endif