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)  

MultiCompress Class Reference

#include <multicompress.h>

Collaboration diagram for MultiCompress:


struct  Files

Public Member Functions

bool Finalize (unsigned long long &OutSize)
bool OpenOld (FileFd &Fd)
 MultiCompress (std::string const &Output, std::string const &Compress, mode_t const &Permissions, bool const &Write=true)
 ~MultiCompress ()

Static Public Member Functions

static bool GetStat (std::string const &Output, std::string const &Compress, struct stat &St)

Public Attributes

FileFd Input
unsigned long UpdateMTime

Private Member Functions

bool Child (int const &Fd)
bool Start ()
bool Die ()

Private Attributes

pid_t Outputter
mode_t Permissions

Detailed Description

Definition at line 26 of file multicompress.h.

Constructor & Destructor Documentation

◆ MultiCompress()

MultiCompress ( std::string const &  Output,
std::string const &  Compress,
mode_t const &  Permissions,
bool const &  Write = true 

◆ ~MultiCompress()

Definition at line 108 of file multicompress.cc.

References Die(), MultiCompress::Files::Next, and Outputs.

Member Function Documentation

◆ Child()

bool Child ( int const &  Fd)

◆ Die()

bool Die ( )

Definition at line 183 of file multicompress.cc.

References FileFd::Close(), ExecWait(), Input, FileFd::IsOpen(), and Outputter.

Referenced by Finalize(), and ~MultiCompress().

◆ Finalize()

bool Finalize ( unsigned long long &  OutSize)

◆ GetStat()

bool GetStat ( std::string const &  Output,
std::string const &  Compress,
struct stat &  St 

Definition at line 125 of file multicompress.cc.

References findMatchingCompressor(), APT::Configuration::getCompressors(), and I.

Referenced by DoGenerateContents().

◆ OpenOld()

◆ Start()

bool Start ( )

Definition at line 148 of file multicompress.cc.

References Child(), I, Input, FileFd::OpenDescriptor(), Outputter, SetCloseExec(), and FileFd::WriteOnly.

Referenced by MultiCompress().

Member Data Documentation

◆ Input

◆ Outputs

Files* Outputs

Definition at line 39 of file multicompress.h.

Referenced by Child(), Finalize(), MultiCompress(), OpenOld(), and ~MultiCompress().

◆ Outputter

pid_t Outputter

Definition at line 40 of file multicompress.h.

Referenced by Die(), and Start().

◆ Permissions

mode_t Permissions

Definition at line 41 of file multicompress.h.

Referenced by Child(), and Finalize().

◆ UpdateMTime

unsigned long UpdateMTime

Definition at line 51 of file multicompress.h.

Referenced by Finalize(), PackageMap::GenContents(), and MultiCompress().

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