Auto-reset hard/soft for further cycles
[anna.git] / include / anna / testing / TestManager.hpp
index 40bdfda..979941f 100644 (file)
@@ -84,6 +84,7 @@ class TestManager : public anna::timex::TimeEventObserver, public anna::Singleto
   int a_poolRepeats; // repeat pool N times
   int a_poolCycle; // current cycle, from 1 to N
   unsigned int a_inProgressLimit; // limit load to have this value
+  bool a_autoResetHard; // automatic reset on next cycle (soft by default, false)
 
   // Test clock
   int a_synchronousAmount;
@@ -156,6 +157,10 @@ class TestManager : public anna::timex::TimeEventObserver, public anna::Singleto
     int getPoolRepeats() const throw() { return a_poolRepeats; }
     int getPoolCycle() const throw() { return a_poolCycle; }
 
+    bool getAutoResetHard() const throw() { return a_autoResetHard; }
+    void setAutoResetHard(bool hard = true) throw() { a_autoResetHard = hard; }
+
+
     unsigned int getInProgressCount() const throw() { return a_statSummary.getInProgressCount(); }
     unsigned int getInProgressLimit() const throw() { return a_inProgressLimit; }
     void setInProgressLimit(unsigned int limit) throw() { a_inProgressLimit = limit; } // 0 = UINT_MAX (no limit)