OpendTect  6.6
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TextStreamProgressMeter Class Reference

Textual progress indicator for batch programs. More...

Inheritance diagram for TextStreamProgressMeter:
[legend]

Public Member Functions

 TextStreamProgressMeter (od_ostream &, unsigned short rowlen=cDefaultRowLen())
 
 ~TextStreamProgressMeter ()
 
int64_t nrDone () const
 
void operator++ ()
 
void printMessage (const uiString &)
 
void reset ()
 
void setFinished ()
 
void setMessage (const uiString &)
 
void setName (const char *)
 
void setNrDone (int64_t)
 
void setStarted ()
 
void setTotalNr (int64_t t)
 
void skipProgress (bool yn)
 
- Public Member Functions inherited from ProgressMeter
virtual ~ProgressMeter ()
 
virtual void setNrDoneText (const uiString &)
 

Static Public Member Functions

static int cDefaultRowLen ()
 
static int cNrCharsPerRow ()
 

Protected Member Functions

void addProgress (int)
 
void annotate (bool)
 

Protected Attributes

unsigned char distcharidx_
 
bool finished_
 
bool inited_
 
int64_t lastannotatednrdone_
 
Threads::Lock lock_
 
uiString message_
 
BufferString name_
 
int64_t nrdone_
 
int64_t nrdoneperchar_
 
int nrdotsonline_
 
int oldtime_
 
unsigned short rowlen_
 
bool skipprog_
 
od_ostreamstrm_
 
int64_t totalnr_
 

Detailed Description

Textual progress indicator for batch programs.

<>

Constructor & Destructor Documentation

◆ TextStreamProgressMeter()

TextStreamProgressMeter::TextStreamProgressMeter ( od_ostream ,
unsigned short  rowlen = cDefaultRowLen() 
)

◆ ~TextStreamProgressMeter()

TextStreamProgressMeter::~TextStreamProgressMeter ( )

Member Function Documentation

◆ addProgress()

void TextStreamProgressMeter::addProgress ( int  )
protected

◆ annotate()

void TextStreamProgressMeter::annotate ( bool  )
protected

◆ cDefaultRowLen()

static int TextStreamProgressMeter::cDefaultRowLen ( )
inlinestatic

◆ cNrCharsPerRow()

static int TextStreamProgressMeter::cNrCharsPerRow ( )
inlinestatic

◆ nrDone()

int64_t TextStreamProgressMeter::nrDone ( ) const
inlinevirtual

Reimplemented from ProgressMeter.

◆ operator++()

void TextStreamProgressMeter::operator++ ( )
virtual

Implements ProgressMeter.

◆ printMessage()

void TextStreamProgressMeter::printMessage ( const uiString )

This setting will not reset unless you call it.

◆ reset()

void TextStreamProgressMeter::reset ( )

◆ setFinished()

void TextStreamProgressMeter::setFinished ( )
virtual

Reimplemented from ProgressMeter.

◆ setMessage()

void TextStreamProgressMeter::setMessage ( const uiString )
virtual

Reimplemented from ProgressMeter.

◆ setName()

void TextStreamProgressMeter::setName ( const char *  )
virtual

Reimplemented from ProgressMeter.

◆ setNrDone()

void TextStreamProgressMeter::setNrDone ( int64_t  )
virtual

Reimplemented from ProgressMeter.

◆ setStarted()

void TextStreamProgressMeter::setStarted ( )
virtual

Reimplemented from ProgressMeter.

◆ setTotalNr()

void TextStreamProgressMeter::setTotalNr ( int64_t  t)
inlinevirtual

Reimplemented from ProgressMeter.

◆ skipProgress()

void TextStreamProgressMeter::skipProgress ( bool  yn)
inlinevirtual

Force to skip progress info.

Reimplemented from ProgressMeter.

Member Data Documentation

◆ distcharidx_

unsigned char TextStreamProgressMeter::distcharidx_
protected

◆ finished_

bool TextStreamProgressMeter::finished_
protected

◆ inited_

bool TextStreamProgressMeter::inited_
protected

◆ lastannotatednrdone_

int64_t TextStreamProgressMeter::lastannotatednrdone_
protected

◆ lock_

Threads::Lock TextStreamProgressMeter::lock_
protected

◆ message_

uiString TextStreamProgressMeter::message_
protected

◆ name_

BufferString TextStreamProgressMeter::name_
protected

◆ nrdone_

int64_t TextStreamProgressMeter::nrdone_
protected

◆ nrdoneperchar_

int64_t TextStreamProgressMeter::nrdoneperchar_
protected

◆ nrdotsonline_

int TextStreamProgressMeter::nrdotsonline_
protected

◆ oldtime_

int TextStreamProgressMeter::oldtime_
protected

◆ rowlen_

unsigned short TextStreamProgressMeter::rowlen_
protected

◆ skipprog_

bool TextStreamProgressMeter::skipprog_
protected

◆ strm_

od_ostream& TextStreamProgressMeter::strm_
protected

◆ totalnr_

int64_t TextStreamProgressMeter::totalnr_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022