#include <OutputProcessor.h>

Public Member Functions | |
| ProgressBar (const string &id, CallbackProgressBar callback) | |
| virtual | ~ProgressBar () |
| virtual void | reset () |
| virtual void | finish () |
| virtual void | process (const string &txt, bool stderr) |
| void | setMaxValue (unsigned val) |
| unsigned | getMaxValue () const |
| void | setCurValue (unsigned val) |
| unsigned | getCurValue () const |
Protected Attributes | |
| const string | id |
| const CallbackProgressBar | callback |
| bool | first |
Private Attributes | |
| unsigned long | max |
| unsigned long | cur |
| storage::ProgressBar::ProgressBar | ( | const string & | id, | |
| CallbackProgressBar | callback | |||
| ) | [inline] |
| virtual storage::ProgressBar::~ProgressBar | ( | ) | [inline, virtual] |
| virtual void storage::ProgressBar::reset | ( | ) | [inline, virtual] |
| virtual void storage::ProgressBar::finish | ( | ) | [inline, virtual] |
| virtual void storage::ProgressBar::process | ( | const string & | txt, | |
| bool | stderr | |||
| ) | [inline, virtual] |
Implements storage::OutputProcessor.
Reimplemented in storage::Mke2fsProgressBar, storage::ReiserProgressBar, and storage::DasdfmtProgressBar.
| void storage::ProgressBar::setMaxValue | ( | unsigned | val | ) | [inline] |
| unsigned storage::ProgressBar::getMaxValue | ( | ) | const [inline] |
References max.
Referenced by storage::DasdfmtProgressBar::process(), and storage::Mke2fsProgressBar::process().
| void storage::ProgressBar::setCurValue | ( | unsigned | val | ) |
References callback, cur, first, id, max, and y2mil.
Referenced by finish(), storage::DasdfmtProgressBar::process(), storage::ReiserProgressBar::process(), and storage::Mke2fsProgressBar::process().
| unsigned storage::ProgressBar::getCurValue | ( | ) | const [inline] |
References cur.
const string storage::ProgressBar::id [protected] |
Referenced by setCurValue().
const CallbackProgressBar storage::ProgressBar::callback [protected] |
Referenced by setCurValue().
bool storage::ProgressBar::first [protected] |
unsigned long storage::ProgressBar::max [private] |
Referenced by finish(), getMaxValue(), setCurValue(), and setMaxValue().
unsigned long storage::ProgressBar::cur [private] |
Referenced by getCurValue(), reset(), and setCurValue().
1.5.6