ProgressTrackerDelegate< T > Class Template Reference

An implementation of ProgressTracker that delegates to a method in an object. More...

#include <ProgressTracker.h++>

Inheritance diagram for ProgressTrackerDelegate< T >:
Inheritance graph
[legend]
Collaboration diagram for ProgressTrackerDelegate< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ProgressTrackerDelegate (T *object, void(T::*func)(int, const String &))
 Construct a new ProgressTrackerDelegate for an object.

Protected Member Functions

void updateProgress (int percent, const String &status=String::null)
 Notify the tracker of an update in the progress of a task.

Detailed Description

template<class T>
class ccxx::ProgressTrackerDelegate< T >

An implementation of ProgressTracker that delegates to a method in an object.

Author:
Mark Lindner

Constructor & Destructor Documentation

ProgressTrackerDelegate ( T *  object,
void(T::*)(int, const String &)  func 
) [inline]

Construct a new ProgressTrackerDelegate for an object.

Parameters:
object The object.
func A member function (method) in the object which will serve as the progress tracker.

Member Function Documentation

void updateProgress ( int  percent,
const String status = String::null 
) [inline, protected, virtual]

Notify the tracker of an update in the progress of a task.

Parameters:
percent The percentage of the task that has been completed. A negative value indicates indeterminate progress.
status An optional status message.

Implements ProgressTracker.


The documentation for this class was generated from the following file:
Generated on Fri Sep 3 23:49:36 2010 for libcommonc++ by  doxygen 1.6.3