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)  

pkgTagFile Class Reference

#include <tagfile.h>

Collaboration diagram for pkgTagFile:

Public Types

enum  Flags { STRICT = 0 , SUPPORT_COMMENTS = 1 << 0 }

Public Member Functions

bool Step (pkgTagSection &Section)
unsigned long Offset ()
bool Jump (pkgTagSection &Tag, unsigned long long Offset)
void Init (FileFd *const F, pkgTagFile::Flags const Flags, unsigned long long Size=32 *1024)
void Init (FileFd *const F, unsigned long long const Size=32 *1024)
 pkgTagFile (FileFd *const F, pkgTagFile::Flags const Flags, unsigned long long Size=32 *1024)
 pkgTagFile (FileFd *const F, unsigned long long Size=32 *1024)
virtual ~pkgTagFile ()

Private Member Functions

APT_HIDDEN bool Fill ()
APT_HIDDEN bool Resize ()
APT_HIDDEN bool Resize (unsigned long long const newSize)

Private Attributes

pkgTagFilePrivate *const d

Detailed Description

prepares a deb822 formatted file for parsing via pkgTagSection. The default mode tries to be as fast as possible and assumes perfectly valid (machine generated) files like Packages. Support for comments e.g. needs to be enabled explicitly.

Definition at line 173 of file tagfile.h.

Member Enumeration Documentation

◆ Flags

enum Flags

Definition at line 187 of file tagfile.h.

Constructor & Destructor Documentation

◆ pkgTagFile() [1/2]

pkgTagFile ( FileFd *const  F,
pkgTagFile::Flags const  Flags,
unsigned long long  Size = 32*1024 

Definition at line 118 of file tagfile.cc.

References Init().

◆ pkgTagFile() [2/2]

pkgTagFile ( FileFd *const  F,
unsigned long long  Size = 32*1024 

Definition at line 123 of file tagfile.cc.

◆ ~pkgTagFile()

~pkgTagFile ( )

Definition at line 157 of file tagfile.cc.

References d.

Member Function Documentation

◆ Fill()

◆ Init() [1/2]

◆ Init() [2/2]

void Init ( FileFd *const  F,
unsigned long long const  Size = 32*1024 

Definition at line 151 of file tagfile.cc.

References Init(), and STRICT.

◆ Jump()

◆ Offset()

◆ Resize() [1/2]

bool Resize ( )

Definition at line 173 of file tagfile.cc.

References d, and pkgTagFilePrivate::Size.

Referenced by Fill(), and Step().

◆ Resize() [2/2]

bool Resize ( unsigned long long const  newSize)

◆ Step()

Member Data Documentation

◆ d

pkgTagFilePrivate* const d

Definition at line 175 of file tagfile.h.

Referenced by Fill(), Init(), Jump(), Offset(), Resize(), Step(), and ~pkgTagFile().

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