X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Ftesting%2FTestManager.hpp;h=979941ffb00e087404e6c3858b7fe16bb0ba2b80;hp=40bdfdac2a79dbe27e70b8b102b8da31f1d1be70;hb=bfedf5aed2670ccd65405c0ff96539ccb88b8f23;hpb=30def5757c5b3411f77fff62a163241ecc616337 diff --git a/include/anna/testing/TestManager.hpp b/include/anna/testing/TestManager.hpp index 40bdfda..979941f 100644 --- a/include/anna/testing/TestManager.hpp +++ b/include/anna/testing/TestManager.hpp @@ -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)