1 #include "../../src/terralib/Defines.h" 6 #if TE_PLATFORM == TE_PLATFORMCODE_MSWINDOWS 14 #if TE_PLATFORM == TE_PLATFORMCODE_MSWINDOWS 18 #define TOTAL_STEPS 3000 22 #define TOTAL_STEPS_INTERNAL 500 33 #if TE_PLATFORM == TE_PLATFORMCODE_MSWINDOWS 34 omp_set_num_threads(omp_get_num_procs());
35 #pragma omp parallel for 41 #if TE_PLATFORM == TE_PLATFORMCODE_MSWINDOWS 52 taskInternal.
setMessage(
"Console Progress Internal Task");
58 #if TE_PLATFORM == TE_PLATFORMCODE_MSWINDOWS void ConsoleSleeperMultiThread()
void useMultiThread(bool flag)
Used to define if task is running in thread mode.
void setMessage(const std::string &message)
Set the task message.
This class can be used to inform the progress of a task.
void useTimer(bool flag)
Used to define if task use progress timer information.
This class can be used to inform the progress of a task.
These routines show how to use the progress bar.
bool isActive() const
Verify if the task is active.
void setTotalSteps(int value)
Set the task total stepes.
#define TOTAL_STEPS_INTERNAL
void pulse()
Calls setCurrentStep() function using getCurrentStep() + 1.