progress display abstract class More...
#include <Progress.h>


Public Member Functions | |
| Progress (const char *title=NULL) | |
| constructor More... | |
| virtual | ~Progress () |
| destructor | |
| void | setRange (const int start, const int end) |
| sets progress range More... | |
| void | setPosition (const int pos, const bool bForced=false) |
| sets progress position More... | |
| void | setStatus (const char *status, const bool bForced=false) |
| sets status More... | |
| bool | isStopped () |
| judges whether it has to finish More... | |
| void | fill () |
| sets end position | |
| int | getRelativePosition () |
| gets relative position More... | |
| Timer * | createTimer (const char *name) |
| creates timer More... | |
| unsigned int | getNumberOfTimers () |
| gets the number of timers More... | |
| const char * | getTimerName (const unsigned int index) |
| gets timer name More... | |
| Timer * | getTimer (const unsigned int index) |
| gets timer More... | |
| void | createSubProgresses (const unsigned int num) |
| creates sub progresses More... | |
| unsigned int | getNumberOfSubProgresses () |
| gets the number of sub progresses More... | |
| Progress * | getSubProgress (const unsigned int idx) |
| gets subprogress More... | |
Static Public Member Functions | |
| static Progress & | getIgnoringProgress () |
| gets progress object. But this object does nothing even if a method is called. More... | |
Protected Member Functions | |
| virtual void | onSetRange (const int start, const int end)=0 |
| This method is called by setRange method. (abstract method) More... | |
| virtual void | onSetPosition (const int pos, const int prevPos)=0 |
| This method is called by setPosition method. (abstract method) More... | |
| virtual void | onSetStatus (const char *status, const bool bForced)=0 |
| This method is called by setStatus method. (abstract method) More... | |
| virtual bool | onIsStopped ()=0 |
| This method is called by isStopped method. (abstract method) More... | |
| virtual void | onFill (void)=0 |
| This method is called by fill method. (abstract method) | |
Protected Attributes | |
| std::vector< Progress * > | m_subProgresses |
| int | m_start |
| int | m_end |
| int | m_pos |
| int | m_prevPos |
| int | m_relPos |
| std::string | m_title |
| Timer | m_timer |
| std::vector< std::pair < std::string, Timer * > > * | m_timers |
| long long | m_llPrevTime |
| std::string | m_strStatus |
progress display abstract class
Definition at line 31 of file Progress.h.
| kome::core::Progress::Progress | ( | const char * | title = NULL | ) |
constructor
| [in] | title | progress title |
Definition at line 37 of file Progress.cpp.
| void kome::core::Progress::createSubProgresses | ( | const unsigned int | num | ) |
creates sub progresses
| [in] | num | the number of subprogresses |
Definition at line 299 of file Progress.cpp.

| Timer * kome::core::Progress::createTimer | ( | const char * | name | ) |
creates timer
| [in] | name | timer name |
Definition at line 252 of file Progress.cpp.
|
static |
gets progress object. But this object does nothing even if a method is called.
Definition at line 343 of file Progress.cpp.
| unsigned int kome::core::Progress::getNumberOfSubProgresses | ( | ) |
gets the number of sub progresses
Definition at line 323 of file Progress.cpp.

| unsigned int kome::core::Progress::getNumberOfTimers | ( | ) |
gets the number of timers
Definition at line 272 of file Progress.cpp.
| int kome::core::Progress::getRelativePosition | ( | ) |
| Progress * kome::core::Progress::getSubProgress | ( | const unsigned int | idx | ) |
gets subprogress
| [in] | idx | sub progress index |
Definition at line 331 of file Progress.cpp.

| Timer * kome::core::Progress::getTimer | ( | const unsigned int | index | ) |
gets timer
| [in] | index | timer index |
Definition at line 290 of file Progress.cpp.
| const char * kome::core::Progress::getTimerName | ( | const unsigned int | index | ) |
gets timer name
| [in] | index | timer index |
Definition at line 281 of file Progress.cpp.
| bool kome::core::Progress::isStopped | ( | ) |
judges whether it has to finish
Definition at line 199 of file Progress.cpp.

|
protectedpure virtual |
This method is called by isStopped method. (abstract method)
Implemented in kome::core::SubProgress, kome::core::IgnoringProgress, and kome::core::DisplayProgress.
|
protectedpure virtual |
This method is called by setPosition method. (abstract method)
| [in] | pos | progress position |
| [in] | prevPos | previous position |
Implemented in kome::core::SubProgress, kome::core::IgnoringProgress, and kome::core::DisplayProgress.
|
protectedpure virtual |
This method is called by setRange method. (abstract method)
| [in] | start | start position |
| [in] | end | end position |
Implemented in kome::core::SubProgress, kome::core::IgnoringProgress, and kome::core::DisplayProgress.
|
protectedpure virtual |
This method is called by setStatus method. (abstract method)
| [in] | status | status |
| [in] | bForced | flag for drawing forced |
Implemented in kome::core::SubProgress, kome::core::IgnoringProgress, and kome::core::DisplayProgress.
| void kome::core::Progress::setPosition | ( | const int | pos, |
| const bool | bForced = false |
||
| ) |
sets progress position
| [in] | pos | progress position |
| [in] | bForced | flag of drawing forced |
Definition at line 98 of file Progress.cpp.

| void kome::core::Progress::setRange | ( | const int | start, |
| const int | end | ||
| ) |
sets progress range
| [in] | start | start position |
| [in] | end | end position |
Definition at line 79 of file Progress.cpp.

| void kome::core::Progress::setStatus | ( | const char * | status, |
| const bool | bForced = false |
||
| ) |
sets status
| [in] | status | status |
| [in] | bForced | flag of drawing forced |
Definition at line 160 of file Progress.cpp.

|
protected |
end position
Definition at line 53 of file Progress.h.
|
protected |
previous update time
Definition at line 112 of file Progress.h.
|
protected |
current position
Definition at line 55 of file Progress.h.
|
protected |
previous position
Definition at line 57 of file Progress.h.
|
protected |
relative position
Definition at line 59 of file Progress.h.
|
protected |
start position
Definition at line 51 of file Progress.h.
|
protected |
status message
Definition at line 115 of file Progress.h.
|
protected |
sub progresses
Definition at line 48 of file Progress.h.
|
protected |
main timer
Definition at line 65 of file Progress.h.
|
protected |
timer array
Definition at line 68 of file Progress.h.
|
protected |
title
Definition at line 62 of file Progress.h.
1.8.6