Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TaskInProgress Class Reference

Base class for tasks. The user creates a task object each time he wants to track the progress of some action. More...

#include <TaskProgressManager.hpp>

Inheritance diagram for TaskInProgress:

Inheritance graph
[legend]
Collaboration diagram for TaskInProgress:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual double Progress () const
virtual string ProgressLabel () const
 TaskInProgress (const string &_name, TaskProgressManager *_manager=defaultTaskProgressManager)

Protected Member Functions

void AutoKill ()

Protected Attributes

TaskProgressManagermanager
double refTime
string name
double startTime
double lastReport

Private Attributes

int id

Static Private Attributes

static int idcount = 0

Friends

class TaskProgressManager

Detailed Description

Base class for tasks. The user creates a task object each time he wants to track the progress of some action.

On creation the task is automatically registered to th TaskProgressManager. On destruction the task is automatically deleted from the TaskProgressManager. This means it's use is very simple (1-line)

Definition at line 44 of file TaskProgressManager.hpp.


The documentation for this class was generated from the following files:
Generated on Fri Jun 17 13:36:20 2005 for ImLib3D by  doxygen 1.4.2