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
IndexCopy Class Referenceabstract

#include <indexcopy.h>

Inheritance diagram for IndexCopy:
Collaboration diagram for IndexCopy:

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

pkgTagSectionSection
 

Private Attributes

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

Constructor & Destructor Documentation

virtual IndexCopy::~IndexCopy ( )
inlinevirtual

Member Function Documentation

std::string IndexCopy::ChopDirs ( std::string  Path,
unsigned int  Depth 
)
protected
void IndexCopy::ConvertToSourceList ( std::string  CD,
std::string &  Path 
)
protected
bool IndexCopy::CopyPackages ( std::string  CDROM,
std::string  Name,
std::vector< std::string > &  List,
pkgCdromStatus log 
)
virtual bool IndexCopy::GetFile ( std::string &  Filename,
unsigned long long &  Size 
)
protectedpure virtual

Implemented in SourceCopy, and PackageCopy.

virtual const char* IndexCopy::GetFileName ( )
protectedpure virtual

Implemented in SourceCopy, and PackageCopy.

bool IndexCopy::GrabFirst ( std::string  Path,
std::string &  To,
unsigned int  Depth 
)
protected
bool IndexCopy::ReconstructChop ( unsigned long &  Chop,
std::string  Dir,
std::string  File 
)
protected
bool IndexCopy::ReconstructPrefix ( std::string &  Prefix,
std::string  OrigPath,
std::string  CD,
std::string  File 
)
protected
virtual bool IndexCopy::RewriteEntry ( FILE *  Target,
std::string  File 
)
protectedpure virtual

Implemented in SourceCopy, and PackageCopy.

virtual const char* IndexCopy::Type ( )
protectedpure virtual

Implemented in SourceCopy, and PackageCopy.

Member Data Documentation

void* IndexCopy::d
private

dpointer placeholder (for later in case we need it)

pkgTagSection* IndexCopy::Section
protected

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