21#ifndef __ANTARES_LIBS_STUDY_PROGRESSION_PROGRESSION_HXX__
22#define __ANTARES_LIBS_STUDY_PROGRESSION_PROGRESSION_HXX__
28inline Progression::Meter::Meter():
33inline void Progression::Meter::taskCount(uint n)
38inline void Progression::add(Section section,
int nbTicks)
40 add((uint)-1, section, nbTicks);
43inline void Progression::setNumberOfParallelYears(uint nb)
45 pProgressMeter.nbParallelYears = nb;
46 pProgressMeter.logsContainer.resize(nb);
49inline Progression::Part& Progression::begin(uint year, Progression::Section section)
52 Part& part = pProgressMeter.parts[year][section];
56 part.lastTickCount = 0;
57 pProgressMeter.mutex.lock();
58 pProgressMeter.inUse.push_front(&part);
59 pProgressMeter.mutex.unlock();
63inline const char* Progression::SectionToCStr(Section section)
65 static const char*
const sectName[sectMax] = {
"mc",
73 assert((uint)section < (uint)sectMax);
74 return sectName[section];