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
pkgTagSection Class Reference

#include <tagfile.h>

Collaboration diagram for pkgTagSection:

Public Member Functions

 pkgTagSection ()
 
virtual ~pkgTagSection ()
 
unsigned int Count () const
 
bool Exists (const char *const Tag)
 
bool Find (const char *Tag, const char *&Start, const char *&End) const
 
bool Find (const char *Tag, unsigned &Pos) const
 
bool FindFlag (const char *Tag, unsigned long &Flags, unsigned long Flag) const
 
signed int FindI (const char *Tag, signed long Default=0) const
 
std::string FindS (const char *Tag) const
 
unsigned long long FindULL (const char *Tag, unsigned long long const &Default=0) const
 
void Get (const char *&Start, const char *&Stop, unsigned int I) const
 
void GetSection (const char *&Start, const char *&Stop) const
 
bool operator!= (const pkgTagSection &rhs)
 
bool operator== (const pkgTagSection &rhs)
 
bool Scan (const char *Start, unsigned long MaxLength)
 
unsigned long size () const
 
void Trim ()
 
virtual void TrimRecord (bool BeforeRecord, const char *&End)
 

Static Public Member Functions

static bool const FindFlag (unsigned long &Flags, unsigned long Flag, const char *Start, const char *Stop)
 

Protected Attributes

const char * Stop
 

Static Private Member Functions

static unsigned long AlphaHash (const char *Text, const char *End=0)
 

Private Attributes

unsigned int AlphaIndexes [0x100]
 
void * d
 
unsigned int Indexes [256]
 
const char * Section
 
unsigned int TagCount
 

Constructor & Destructor Documentation

pkgTagSection::pkgTagSection ( )
inline
virtual pkgTagSection::~pkgTagSection ( )
inlinevirtual

Member Function Documentation

static unsigned long pkgTagSection::AlphaHash ( const char *  Text,
const char *  End = 0 
)
inlinestaticprivate

Referenced by Exists().

Here is the caller graph for this function:

unsigned int pkgTagSection::Count ( ) const
inline

References TagCount.

bool pkgTagSection::Exists ( const char *const  Tag)
inline

References AlphaHash(), and AlphaIndexes.

Here is the call graph for this function:

bool pkgTagSection::Find ( const char *  Tag,
const char *&  Start,
const char *&  End 
) const
bool pkgTagSection::Find ( const char *  Tag,
unsigned &  Pos 
) const
bool pkgTagSection::FindFlag ( const char *  Tag,
unsigned long &  Flags,
unsigned long  Flag 
) const
static bool const pkgTagSection::FindFlag ( unsigned long &  Flags,
unsigned long  Flag,
const char *  Start,
const char *  Stop 
)
static
signed int pkgTagSection::FindI ( const char *  Tag,
signed long  Default = 0 
) const
std::string pkgTagSection::FindS ( const char *  Tag) const
unsigned long long pkgTagSection::FindULL ( const char *  Tag,
unsigned long long const &  Default = 0 
) const
void pkgTagSection::Get ( const char *&  Start,
const char *&  Stop,
unsigned int  I 
) const
inline

References Indexes, and Section.

void pkgTagSection::GetSection ( const char *&  Start,
const char *&  Stop 
) const
inline

References Section, and Stop.

Referenced by debSrcRecordParser::AsStr().

Here is the caller graph for this function:

bool pkgTagSection::operator!= ( const pkgTagSection rhs)
inline

References Section.

bool pkgTagSection::operator== ( const pkgTagSection rhs)
inline

References Section.

bool pkgTagSection::Scan ( const char *  Start,
unsigned long  MaxLength 
)
unsigned long pkgTagSection::size ( ) const
inline

References Section, and Stop.

Referenced by debListParser::Size().

Here is the caller graph for this function:

void pkgTagSection::Trim ( )
virtual void pkgTagSection::TrimRecord ( bool  BeforeRecord,
const char *&  End 
)
virtual

Member Data Documentation

unsigned int pkgTagSection::AlphaIndexes[0x100]
private

Referenced by Exists().

void* pkgTagSection::d
private
unsigned int pkgTagSection::Indexes[256]
private

Referenced by Get().

const char* pkgTagSection::Section
private
const char* pkgTagSection::Stop
protected

Referenced by GetSection(), and size().

unsigned int pkgTagSection::TagCount
private

Referenced by Count().


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