apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

OpProgress Class Reference

#include <progress.h>

Inheritance diagram for OpProgress:
[legend]
Collaboration diagram for OpProgress:
[legend]

Public Member Functions

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

Protected Member Functions

bool CheckChange (float Interval=0.7)
 
virtual void Update ()
 

Protected Attributes

std::string Op
 
std::string SubOp
 
float Percent
 
bool MajorChange
 

Private Attributes

unsigned long long Current
 
unsigned long long Total
 
unsigned long long Size
 
unsigned long long SubTotal
 
float LastPercent
 
struct timeval LastTime
 
std::string LastOp
 
std::string LastSubOp
 

Friends

class OpTextProgress
 

Detailed Description

Definition at line 29 of file progress.h.

Constructor & Destructor Documentation

◆ OpProgress()

Definition at line 32 of file progress.cc.

References LastTime.

◆ ~OpProgress()

virtual ~OpProgress ( )
inlinevirtual

Definition at line 63 of file progress.h.

Member Function Documentation

◆ CheckChange()

bool CheckChange ( float  Interval = 0.7)
protected

Definition at line 93 of file progress.cc.

References _config, LastOp, LastPercent, LastSubOp, LastTime, MajorChange, Op, Percent, and SubOp.

Referenced by OpTextProgress::Update().

◆ Done()

◆ OverallProgress()

◆ Progress()

◆ SubProgress()

◆ Update()

virtual void Update ( )
inlineprotectedvirtual

Reimplemented in OpTextProgress.

Definition at line 52 of file progress.h.

Referenced by OverallProgress(), Progress(), and SubProgress().

Friends And Related Function Documentation

◆ OpTextProgress

friend class OpTextProgress
friend

Definition at line 31 of file progress.h.

Member Data Documentation

◆ Current

unsigned long long Current
private

Definition at line 32 of file progress.h.

Referenced by OverallProgress(), Progress(), SubProgress(), and OpTextProgress::Update().

◆ LastOp

std::string LastOp
private

Definition at line 40 of file progress.h.

Referenced by CheckChange().

◆ LastPercent

float LastPercent
private

Definition at line 36 of file progress.h.

Referenced by CheckChange().

◆ LastSubOp

std::string LastSubOp
private

Definition at line 41 of file progress.h.

Referenced by CheckChange().

◆ LastTime

struct timeval LastTime
private

Definition at line 36 of file progress.h.

Referenced by CheckChange(), and OpProgress().

◆ MajorChange

bool MajorChange
protected

Definition at line 49 of file progress.h.

Referenced by CheckChange(), and OpTextProgress::Update().

◆ Op

std::string Op
protected

Definition at line 45 of file progress.h.

Referenced by CheckChange(), OverallProgress(), SubProgress(), and OpTextProgress::Update().

◆ Percent

float Percent
protected

◆ Size

unsigned long long Size
private

Definition at line 34 of file progress.h.

Referenced by OverallProgress(), Progress(), and SubProgress().

◆ SubOp

std::string SubOp
protected

Definition at line 46 of file progress.h.

Referenced by CheckChange(), OverallProgress(), and SubProgress().

◆ SubTotal

unsigned long long SubTotal
private

Definition at line 35 of file progress.h.

Referenced by Progress(), and SubProgress().

◆ Total

unsigned long long Total
private

Definition at line 33 of file progress.h.

Referenced by OverallProgress(), Progress(), SubProgress(), and OpTextProgress::Update().


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