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)  

pkgSourceList::Type Class Referenceabstract

#include <sourcelist.h>

Inheritance diagram for pkgSourceList::Type:
[legend]
Collaboration diagram for pkgSourceList::Type:
[legend]

Public Member Functions

bool FixupURI (std::string &URI) const
 
virtual bool ParseStanza (std::vector< metaIndex * > &List, pkgTagSection &Tags, unsigned int const stanza_n, FileFd &Fd)
 
virtual bool ParseLine (std::vector< metaIndex * > &List, const char *Buffer, unsigned int const CurLine, std::string const &File) const
 
virtual bool CreateItem (std::vector< metaIndex * > &List, std::string const &URI, std::string const &Dist, std::string const &Section, std::map< std::string, std::string > const &Options) const =0
 
 Type (char const *const Name, char const *const Label)
 
virtual ~Type ()
 

Static Public Member Functions

static TypeGetType (const char *Type) APT_PURE
 

Public Attributes

char const *const Name
 
char const *const Label
 

Static Public Attributes

static Type ** GlobalList = ItmList
 
static unsigned long GlobalListLen = 0
 

Detailed Description

Definition at line 49 of file sourcelist.h.

Constructor & Destructor Documentation

◆ Type()

Type ( char const *const  Name,
char const *const  Label 
)

Definition at line 59 of file sourcelist.cc.

References GlobalListLen, and ItmList.

◆ ~Type()

~Type ( )
virtual

Definition at line 64 of file sourcelist.cc.

Member Function Documentation

◆ CreateItem()

virtual bool CreateItem ( std::vector< metaIndex * > &  List,
std::string const &  URI,
std::string const &  Dist,
std::string const &  Section,
std::map< std::string, std::string > const &  Options 
) const
pure virtual

Implemented in debSLTypeDeb, and debSLTypeDebSrc.

◆ FixupURI()

bool FixupURI ( std::string &  URI) const

Definition at line 80 of file sourcelist.cc.

References _config, URI::empty(), and SubstVar().

◆ GetType()

pkgSourceList::Type * GetType ( const char *  Type)
static

Definition at line 69 of file sourcelist.cc.

References I.

Referenced by pkgSourceList::ParseFileDeb822(), and pkgSourceList::ParseFileOldStyle().

◆ ParseLine()

bool ParseLine ( std::vector< metaIndex * > &  List,
const char *  Buffer,
unsigned int const  CurLine,
std::string const &  File 
) const
virtual

Definition at line 194 of file sourcelist.cc.

References _config, ParseQuoteWord(), strprintf(), and SubstVar().

Referenced by pkgSourceList::ParseFileOldStyle().

◆ ParseStanza()

bool ParseStanza ( std::vector< metaIndex * > &  List,
pkgTagSection Tags,
unsigned int const  stanza_n,
FileFd Fd 
)
virtual

Member Data Documentation

◆ GlobalList

pkgSourceList::Type ** GlobalList = ItmList
static

Definition at line 54 of file sourcelist.h.

Referenced by ShowHelp().

◆ GlobalListLen

unsigned long GlobalListLen = 0
static

Definition at line 55 of file sourcelist.h.

Referenced by ShowHelp(), and Type().

◆ Label

char const* const Label

Definition at line 59 of file sourcelist.h.

Referenced by ShowHelp().

◆ Name

char const* const Name

Definition at line 58 of file sourcelist.h.

Referenced by ShowHelp().


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