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)  

OpTextProgress Class Reference

#include <progress.h>

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

Public Member Functions

virtual void Done () APT_OVERRIDE
 
 OpTextProgress (bool NoUpdate=false)
 
 OpTextProgress (Configuration &Config)
 
virtual ~OpTextProgress ()
 
- Public Member Functions inherited from OpProgress
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)
 
 OpProgress ()
 
virtual ~OpProgress ()
 

Protected Member Functions

virtual void Update () APT_OVERRIDE
 
void Write (const char *S)
 
- Protected Member Functions inherited from OpProgress
bool CheckChange (float Interval=0.7)
 

Protected Attributes

std::string OldOp
 
bool NoUpdate
 
bool NoDisplay
 
unsigned long LastLen
 
- Protected Attributes inherited from OpProgress
std::string Op
 
std::string SubOp
 
float Percent
 
bool MajorChange
 

Detailed Description

Definition at line 66 of file progress.h.

Constructor & Destructor Documentation

◆ OpTextProgress() [1/2]

OpTextProgress ( bool  NoUpdate = false)
inlineexplicit

Definition at line 81 of file progress.h.

◆ OpTextProgress() [2/2]

OpTextProgress ( Configuration Config)
explicit

Definition at line 140 of file progress.cc.

References NoDisplay, and NoUpdate.

◆ ~OpTextProgress()

virtual ~OpTextProgress ( )
inlinevirtual

Definition at line 84 of file progress.h.

Member Function Documentation

◆ Done()

void Done ( )
virtual

Reimplemented from OpProgress.

Definition at line 152 of file progress.cc.

References NoDisplay, NoUpdate, OldOp, and Write().

Referenced by FullTextSearch().

◆ Update()

void Update ( )
protectedvirtual

◆ Write()

void Write ( const char *  S)
protected

Definition at line 221 of file progress.cc.

References I, and LastLen.

Referenced by Done(), and Update().

Member Data Documentation

◆ LastLen

unsigned long LastLen
protected

Definition at line 73 of file progress.h.

Referenced by Write().

◆ NoDisplay

bool NoDisplay
protected

Definition at line 72 of file progress.h.

Referenced by Done(), OpTextProgress(), and Update().

◆ NoUpdate

bool NoUpdate
protected

Definition at line 71 of file progress.h.

Referenced by Done(), OpTextProgress(), and Update().

◆ OldOp

std::string OldOp
protected

Definition at line 70 of file progress.h.

Referenced by Done(), and Update().


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