mta::ProgressObjectReporter Class Reference

Use this derived class to report to a progress object. More...

#include <MultiThreadedAlgorithm.h>

Inheritance diagram for mta::ProgressObjectReporter:

Inheritance graph

List of all members.

Public Member Functions

 ProgressObjectReporter (std::string baseMessage, Progress *pProgress)
virtual ~ProgressObjectReporter ()
void reportProgress (int percent)
void reportError (const std::string &text)


Detailed Description

Use this derived class to report to a progress object.

Definition at line 483 of file MultiThreadedAlgorithm.h.


Constructor & Destructor Documentation

mta::ProgressObjectReporter::ProgressObjectReporter ( std::string  baseMessage,
Progress pProgress 
)

Constructor.

Parameters:
baseMessage The base message used when constructing a message.
pProgress Progress object to report. If this is NULL, no Progress will receive reports.

Definition at line 494 of file MultiThreadedAlgorithm.h.

virtual mta::ProgressObjectReporter::~ProgressObjectReporter (  )  [virtual]

Destructor.

Definition at line 503 of file MultiThreadedAlgorithm.h.


Member Function Documentation

void mta::ProgressObjectReporter::reportProgress ( int  percent  )  [virtual]

Report progress percent.

Parameters:
percent The percent completion.

Implements mta::ProgressReporter.

void mta::ProgressObjectReporter::reportError ( const std::string &  text  )  [virtual]

Report an error.

Parameters:
text The error message.

Implements mta::ProgressReporter.


Software Development Kit - Opticks 4.9.0 Build 16218