class HSUProgress

*-- Author : Marcin Jaskula

Function Members (Methods)

public:
HSUProgress(Int_t iMax = 100)
HSUProgress(const HSUProgress&)
virtual~HSUProgress()
static TClass*Class()
voidFinal()
Bool_tGetFullTimerOn()
Int_tGetLast()
Int_tGetMaxValue()
Char_tGetProgressChar()
Bool_tGetProgressOn()
Float_tGetProgressReal()
const Char_t*GetSpinChars()
Bool_tGetSpinOn()
Float_tGetSpinReal()
Bool_tGetTimerOn()
Float_tGetTimerReal()
virtual TClass*IsA() const
voidNext(Int_t iSteps = 1)
HSUProgress&operator=(const HSUProgress&)
voidReset()
voidRestart()
voidSetFullTimerOn(Bool_t b)
voidSetMaxValue(Int_t i)
voidSetProgressChar(Char_t c)
voidSetProgressEvents(Int_t i)
voidSetProgressOn(Bool_t b)
voidSetProgressPer(Float_t f)
voidSetSpinChars(const Char_t* pStr)
voidSetSpinChars(Int_t iType)
voidSetSpinEvents(Int_t i)
voidSetSpinOn(Bool_t b)
voidSetSpinPer(Float_t f)
voidSetTimerEvents(Int_t i)
voidSetTimerOn(Bool_t b)
voidSetTimerPer(Float_t f)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

private:
Bool_tm_bFullTimerprint full time info at the end
Bool_tm_bProgressprint progress bar
Bool_tm_bProgressInPerm_fProgressSet in percents
Bool_tm_bSpinspin option
Bool_tm_bSpinInPerm_fSpinSet in percents or events
Bool_tm_bTimerprint timer value
Bool_tm_bTimerInPerm_fTimerSet in percents
Bool_tm_bWasOutOfRangeflag if the progress was out of range
Char_tm_cProgressChara character for the progress bar
Float_tm_fProgressRealhow often print progress / events
Float_tm_fProgressSethow often print progress
Float_tm_fSpinRealhow often spin in events
Float_tm_fSpinSethow often spin
Float_tm_fTimerRealhow often print timer info in events
Float_tm_fTimerSethow often print timer info
Int_tm_iLastcurrent number
Int_tm_iMaxmax numer of envents
Int_tm_iSpinLenlength of the m_psSpinChars
TStringm_psSpinCharslist of spin's characters
TStopwatchtTimertimer for time info

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

HSUProgress(Int_t iMax)
 Constructor in which a maximum number of steps may be set.
 The default value of iMax = 100
void Reset()
 Reset all parameters to the default values
~HSUProgress()
 An empty destructor
void Restart(void)
 Reset the counter
void SetSpinPer(Float_t f)
 How often the spin changes - in per cent of the iMax
void SetSpinEvents(Int_t i)
 How often the spin changes - in events
void SetSpinChars(const Char_t *pStr)
 Set the string of characters used by spin
void SetSpinChars(Int_t iType)
 Set the string of characters used by spin from two defaults:
 0 - ".oOo"
 1 - "-\\|/"
Float_t GetSpinReal(void)
 How often (in events) spin changes
void SetProgressPer(Float_t f)
 How often the progress bar changes - in per cent
void SetProgressEvents(Int_t i)
 How often the progress bar changes - in events
Float_t GetProgressReal(void)
 How often (in events) progress bar changes
void SetTimerPer(Float_t f)
 How often the timer info appears - in per cent
void SetTimerEvents(Int_t i)
 How often the timer info appears - in events
Float_t GetTimerReal(void)
 How often (in events) the timer info appears
void Next(Int_t iSteps = 1)
 Execute the progress for the next step
 Default iSteps = 1
void Final(void)
 Print the final line of the progress bar
HSUProgress(Int_t iMax = 100)
void SetMaxValue(Int_t i)
{ m_iMax = i; }
Int_t GetMaxValue(void)
{ return m_iMax; }
Int_t GetLast(void)
{ return m_iLast; }
void SetSpinOn(Bool_t b)
{ m_bSpin = b; }
Bool_t GetSpinOn(void)
{ return m_bSpin; }
const Char_t* GetSpinChars(void)
{ return m_psSpinChars.Data(); }
void SetProgressOn(Bool_t b)
{ m_bProgress = b; }
Bool_t GetProgressOn(void)
{ return m_bProgress; }
Char_t GetProgressChar(void)
{ return m_cProgressChar; }
void SetProgressChar(Char_t c)
{ m_cProgressChar = c; }
void SetTimerOn(Bool_t b)
{ m_bTimer = b; }
Bool_t GetTimerOn(void)
{ return m_bTimer; }
void SetFullTimerOn(Bool_t b)
{ m_bFullTimer = b; }
Bool_t GetFullTimerOn(void)
{ return m_bFullTimer; }

Last change: Sat May 22 13:13:04 2010
Last generated: 2010-05-22 13:13

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.