12 #ifndef __KOME_CORE_PROGRESS_H__
13 #define __KOME_CORE_PROGRESS_H__
68 std::vector< std::pair< std::string, Timer* > >*
m_timers;
77 void setRange(
const int start,
const int end );
85 void setPosition(
const int pos,
const bool bForced =
false );
93 void setStatus(
const char* status,
const bool bForced =
false );
125 int getRelativePosition();
134 Timer* createTimer(
const char* name );
141 unsigned int getNumberOfTimers();
149 const char* getTimerName(
const unsigned int index );
157 Timer* getTimer(
const unsigned int index );
165 void createSubProgresses(
const unsigned int num );
172 unsigned int getNumberOfSubProgresses();
180 Progress* getSubProgress(
const unsigned int idx );
188 static Progress& getIgnoringProgress();
197 virtual void onSetRange(
const int start,
const int end ) = 0;
205 virtual void onSetPosition(
const int pos,
const int prevPos ) = 0;
213 virtual void onSetStatus(
const char* status,
const bool bForced ) = 0;
220 virtual bool onIsStopped() = 0;
228 virtual void onFill(
void ) = 0;
257 virtual void onSetRange(
const int,
const int );
271 virtual void onSetStatus(
const char*,
const bool bForced =
false );
286 virtual void onFill(
void );
321 virtual void onSetRange(
const int start,
const int end );
330 virtual void onSetPosition(
const int pos,
const int prevPos );
338 virtual void onSetStatus(
const char* status,
const bool bForced =
false );
353 virtual void onFill(
void );
360 #endif // __KOME_CORE_PROGRESS_H__
virtual void onSetPosition(const int pos, const int prevPos)
This method is called by setPosition method. (override method)
virtual ~SubProgress()
destructor
virtual void onSetStatus(const char *status, const bool bForced=false)
This method is called by setStatus method. (override method)
std::vector< std::pair< std::string, Timer * > > * m_timers
Progress object. Even if a method is called, it disgards it.
virtual void onFill(void)
This method is called by fill method. (override method)
interfaces of Timer class
std::vector< Progress * > m_subProgresses
progress display abstract class
virtual bool onIsStopped()
This method is called by isStopped method. (override method)
virtual void onSetStatus(const char *, const bool bForced=false)
This method is called by setStatus method. (override method)
virtual void onSetRange(const int start, const int end)
This method is called by setRange method. (override method)
IgnoringProgress()
constructor
SubProgress(Progress &parent)
constructor
virtual ~IgnoringProgress()
destructor
virtual void onSetPosition(const int, const int)
This method is called by setPosition method. (override method)
virtual bool onIsStopped()
This method is called by isStopped method. (override method)
virtual void onFill(void)
This method is called by fill method. (override method)
virtual void onSetRange(const int, const int)
This method is called by setRange method. (override method)