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)  

IndexCopy Class Referenceabstract

#include <indexcopy.h>

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

Public Member Functions

bool CopyPackages (std::string CDROM, std::string Name, std::vector< std::string > &List, pkgCdromStatus *log)
 
 IndexCopy ()
 
virtual ~IndexCopy ()
 

Protected Member Functions

std::string ChopDirs (std::string Path, unsigned int Depth)
 
bool ReconstructPrefix (std::string &Prefix, std::string OrigPath, std::string CD, std::string File)
 
bool ReconstructChop (unsigned long &Chop, std::string Dir, std::string File)
 
void ConvertToSourceList (std::string CD, std::string &Path)
 
bool GrabFirst (std::string Path, std::string &To, unsigned int Depth)
 
virtual bool GetFile (std::string &Filename, unsigned long long &Size)=0
 
virtual bool RewriteEntry (FileFd &Target, std::string const &File)=0
 
virtual const char * GetFileName ()=0
 
virtual const char * Type ()=0
 

Protected Attributes

pkgTagSectionSection
 

Private Attributes

void *const d
 dpointer placeholder (for later in case we need it) More...
 

Detailed Description

Definition at line 26 of file indexcopy.h.

Constructor & Destructor Documentation

◆ IndexCopy()

IndexCopy ( )

Definition at line 776 of file indexcopy.cc.

◆ ~IndexCopy()

~IndexCopy ( )
virtual

Definition at line 777 of file indexcopy.cc.

Member Function Documentation

◆ ChopDirs()

string ChopDirs ( std::string  Path,
unsigned int  Depth 
)
protected

Definition at line 249 of file indexcopy.cc.

References I.

Referenced by CopyPackages(), and ReconstructChop().

◆ ConvertToSourceList()

void ConvertToSourceList ( std::string  CD,
std::string &  Path 
)
protected

Definition at line 340 of file indexcopy.cc.

References APT::Configuration::checkArchitecture(), I, and stringcmp().

Referenced by CopyPackages().

◆ CopyPackages()

◆ GetFile()

virtual bool GetFile ( std::string &  Filename,
unsigned long long &  Size 
)
protectedpure virtual

Implemented in PackageCopy, and SourceCopy.

Referenced by CopyPackages().

◆ GetFileName()

virtual const char* GetFileName ( )
protectedpure virtual

Implemented in PackageCopy, and SourceCopy.

Referenced by CopyPackages().

◆ GrabFirst()

bool GrabFirst ( std::string  Path,
std::string &  To,
unsigned int  Depth 
)
protected

Definition at line 394 of file indexcopy.cc.

References I.

Referenced by ReconstructPrefix().

◆ ReconstructChop()

bool ReconstructChop ( unsigned long &  Chop,
std::string  Dir,
std::string  File 
)
protected

Definition at line 300 of file indexcopy.cc.

References ChopDirs().

Referenced by CopyPackages().

◆ ReconstructPrefix()

bool ReconstructPrefix ( std::string &  Prefix,
std::string  OrigPath,
std::string  CD,
std::string  File 
)
protected

Definition at line 269 of file indexcopy.cc.

References _config, and GrabFirst().

Referenced by CopyPackages().

◆ RewriteEntry()

virtual bool RewriteEntry ( FileFd Target,
std::string const &  File 
)
protectedpure virtual

Implemented in PackageCopy, and SourceCopy.

Referenced by CopyPackages().

◆ Type()

virtual const char* Type ( )
protectedpure virtual

Implemented in PackageCopy, and SourceCopy.

Referenced by CopyPackages().

Member Data Documentation

◆ d

void* const d
private

dpointer placeholder (for later in case we need it)

Definition at line 29 of file indexcopy.h.

◆ Section


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