comparison Core/JobsEngine/SetOfInstancesJob.h @ 2586:ec09641d6f41 jobs

simplifications
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 14 May 2018 21:33:57 +0200
parents 4c809711149e
children 34dc57f4a7d2
comparison
equal deleted inserted replaced
2585:4c809711149e 2586:ec09641d6f41
46 std::vector<std::string> instances_; 46 std::vector<std::string> instances_;
47 bool permissive_; 47 bool permissive_;
48 size_t position_; 48 size_t position_;
49 std::set<std::string> failedInstances_; 49 std::set<std::string> failedInstances_;
50 50
51 bool IsDone() const
52 {
53 return (position_ >= instances_.size());
54 }
55
56 void Next();
57
58 protected: 51 protected:
59 virtual bool HandleInstance(const std::string& instance) = 0; 52 virtual bool HandleInstance(const std::string& instance) = 0;
60 53
61 public: 54 public:
62 SetOfInstancesJob(); 55 SetOfInstancesJob();
89 bool IsStarted() const 82 bool IsStarted() const
90 { 83 {
91 return started_; 84 return started_;
92 } 85 }
93 86
94 const std::string& GetCurrentInstance() const;
95
96 const std::vector<std::string>& GetInstances() const 87 const std::vector<std::string>& GetInstances() const
97 { 88 {
98 return instances_; 89 return instances_;
99 } 90 }
100 91