libapt-pkg-dev  v0.9.7.5ubuntu5.4
Debian+Ubuntu APT Package Management
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OpTextProgress Class Reference

#include <progress.h>

Inheritance diagram for OpTextProgress:
Collaboration diagram for OpTextProgress:

Public Member Functions

 OpTextProgress (bool NoUpdate=false)
 
 OpTextProgress (Configuration &Config)
 
virtual ~OpTextProgress ()
 
virtual void Done ()
 
void OverallProgress (unsigned long long Current, unsigned long long Total, unsigned long long Size, const std::string &Op)
 
void Progress (unsigned long long Current)
 
void SubProgress (unsigned long long SubTotal, const std::string &Op="", float const Percent=-1)
 

Protected Member Functions

bool CheckChange (float Interval=0.7)
 
virtual void Update ()
 
void Write (const char *S)
 

Protected Attributes

unsigned long LastLen
 
bool MajorChange
 
bool NoDisplay
 
bool NoUpdate
 
std::string OldOp
 
std::string Op
 
float Percent
 
std::string SubOp
 

Constructor & Destructor Documentation

OpTextProgress::OpTextProgress ( bool  NoUpdate = false)
inline
OpTextProgress::OpTextProgress ( Configuration Config)
virtual OpTextProgress::~OpTextProgress ( )
inlinevirtual

References Done().

Here is the call graph for this function:

Member Function Documentation

bool OpProgress::CheckChange ( float  Interval = 0.7)
protectedinherited
virtual void OpTextProgress::Done ( )
virtual

Reimplemented from OpProgress.

Referenced by ~OpTextProgress().

Here is the caller graph for this function:

void OpProgress::OverallProgress ( unsigned long long  Current,
unsigned long long  Total,
unsigned long long  Size,
const std::string &  Op 
)
inherited
void OpProgress::Progress ( unsigned long long  Current)
inherited
void OpProgress::SubProgress ( unsigned long long  SubTotal,
const std::string &  Op = "",
float const  Percent = -1 
)
inherited
virtual void OpTextProgress::Update ( )
protectedvirtual

Reimplemented from OpProgress.

void OpTextProgress::Write ( const char *  S)
protected

Member Data Documentation

unsigned long OpTextProgress::LastLen
protected
bool OpProgress::MajorChange
protectedinherited
bool OpTextProgress::NoDisplay
protected
bool OpTextProgress::NoUpdate
protected
std::string OpTextProgress::OldOp
protected
std::string OpProgress::Op
protectedinherited
float OpProgress::Percent
protectedinherited
std::string OpProgress::SubOp
protectedinherited

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