USGS

Isis 3.0 Developer's Reference (API)

Home

Isis::Progress Class Reference
[Application Interface]

Program progress reporter. More...

#include <Progress.h>

List of all members.

Public Member Functions

 Progress ()
 Constructs a Progress object.
 ~Progress ()
 Destroys the Progress object.
void SetText (const std::string &text)
 Changes the value of the text string reported just before 0% processed.
std::string Text () const
 Returns the text to output.
void SetMaximumSteps (const int steps)
 This sets the maximum number of steps in the process.
void AddSteps (const int steps)
 If the initial step size was a guess, it can be modified using this method.
void CheckStatus ()
 Checks and updates the status.

Detailed Description

Program progress reporter.

This class is used to output the percent completion for programs in either the command line mode or the graphical user interface. Generally, this object is created within a Process derived class. Therefore you should only use this object if you are developing such a class.

Author:
2002-05-22 Jeff Anderson

Constructor & Destructor Documentation

Isis::Progress::Progress (  ) 
Isis::Progress::~Progress (  ) 

Destroys the Progress object.


Member Function Documentation

void Isis::Progress::AddSteps ( const int  steps  ) 

If the initial step size was a guess, it can be modified using this method.

For example, if you SetMaximumSteps(11) then call AddSteps(1) then the new MaximumSteps is 12. The progress bar will not go backwards (it will not drop from 10% to 5%). "steps" can be negative to remove steps.

Parameters:
steps Amount to adjust the MaximumSteps by

References _FILEINFO_, Isis::iException::Message(), and Isis::iException::Programmer.

Referenced by Isis::ImageOverlapSet::FindAllOverlaps(), and Isis::OverlapStatistics::OverlapStatistics().

void Isis::Progress::CheckStatus (  ) 
void Isis::Progress::SetMaximumSteps ( const int  steps  ) 
void Isis::Progress::SetText ( const std::string &  text  ) 
string Isis::Progress::Text (  )  const

Returns the text to output.

Generally, this in not needed except rare circumstances where an application has multiple steps and the text string needs to be saved and restored. For an example, see the Histogram method in the CubeInfo class.

Returns:
string

The documentation for this class was generated from the following files: