CEDRIC  Revision_backup-2009-02
Public Member Functions | Protected Member Functions | List of all members
ConsoleProgressIndicator Class Reference

#include <ProgressIndicator.h>

Inheritance diagram for ConsoleProgressIndicator:
ProgressIndicator

Public Member Functions

 ConsoleProgressIndicator ()
 
- Public Member Functions inherited from ProgressIndicator
 ProgressIndicator (int min=0, int max=100)
 
virtual ~ProgressIndicator ()
 
bool poll (int progress)
 
void start ()
 
void finish ()
 
void step ()
 
void setRange (int min, int max)
 
virtual void setTitle (const std::string &title)
 
virtual void setLabel (const std::string &label)
 
float percentage () const
 
bool wasCanceled () const
 
int progress () const
 
int minValue () const
 
int maxValue () const
 
std::string title () const
 
std::string & title ()
 
std::string label () const
 
std::string & label ()
 

Protected Member Functions

void onStart ()
 
void onFinish ()
 
bool onPoll ()
 
- Protected Member Functions inherited from ProgressIndicator
virtual void onRangeChange (int, int)
 

Additional Inherited Members

- Protected Attributes inherited from ProgressIndicator
int m_progress
 
bool m_canceled
 
int m_minValue
 
int m_maxValue
 
std::string m_title
 
std::string m_label
 

Constructor & Destructor Documentation

ConsoleProgressIndicator::ConsoleProgressIndicator ( )
inline

Member Function Documentation

void ConsoleProgressIndicator::onFinish ( )
inlineprotectedvirtual

Implements ProgressIndicator.

bool ConsoleProgressIndicator::onPoll ( )
inlineprotectedvirtual
Returns
Returns false if user canceled, true otherwise

Implements ProgressIndicator.

References ProgressIndicator::label(), ProgressIndicator::percentage(), and ProgressIndicator::title().

void ConsoleProgressIndicator::onStart ( )
inlineprotectedvirtual

Implements ProgressIndicator.