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)  

metaIndex Class Referenceabstract

#include <metaindex.h>

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

Classes

struct  checkSum
 

Public Member Functions

std::string GetURI () const
 
std::string GetDist () const
 
const char * GetType () const
 
TriState GetTrusted () const
 
std::string GetSignedBy () const
 
std::string GetOrigin () const
 
std::string GetLabel () const
 
std::string GetVersion () const
 
std::string GetCodename () const
 
std::string GetSuite () const
 
std::string GetReleaseNotes () const
 
signed short GetDefaultPin () const
 
bool GetSupportsAcquireByHash () const
 
time_t GetValidUntil () const
 
time_t GetDate () const
 
virtual time_t GetNotBefore () const =0
 
std::string GetExpectedDist () const
 
bool CheckDist (std::string const &MaybeDist) const
 
virtual std::string Describe () const
 
virtual std::string ArchiveURI (std::string const &File) const =0
 
virtual bool GetIndexes (pkgAcquire *Owner, bool const &GetAll=false)=0
 
virtual std::vector< IndexTargetGetIndexTargets () const =0
 
virtual std::vector< pkgIndexFile * > * GetIndexFiles ()=0
 
virtual bool IsTrusted () const =0
 
virtual bool Load (std::string const &Filename, std::string *const ErrorText)=0
 
virtual metaIndexUnloadedClone () const =0
 
void swapLoad (metaIndex *const OldMetaIndex)
 
checkSumLookup (std::string const &MetaKey) const
 
bool Exists (std::string const &MetaKey) const
 tests if a checksum for this file is available More...
 
std::vector< std::string > MetaKeys () const
 
TriState GetLoadedSuccessfully () const
 
virtual pkgCache::RlsFileIterator FindInCache (pkgCache &Cache, bool const ModifyCheck) const
 
virtual bool Merge (pkgCacheGenerator &Gen, OpProgress *Prog) const
 
 metaIndex (std::string const &URI, std::string const &Dist, char const *const Type)
 
virtual ~metaIndex ()
 
virtual bool IsArchitectureSupported (std::string const &arch) const
 
virtual bool IsArchitectureAllSupportedFor (IndexTarget const &target) const
 
virtual bool HasSupportForComponent (std::string const &component) const
 

Protected Attributes

std::vector< pkgIndexFile * > * Indexes
 
const char * Type
 
std::string URI
 
std::string Dist
 
TriState Trusted
 
std::string SignedBy
 
std::string Suite
 
std::string Codename
 
std::string Origin
 
std::string Label
 
std::string Version
 
signed short DefaultPin
 
std::string ReleaseNotes
 
time_t Date
 
time_t ValidUntil
 
bool SupportsAcquireByHash
 
std::map< std::string, checkSum * > Entries
 
TriState LoadedSuccessfully
 

Private Attributes

metaIndexPrivate *const d
 

Detailed Description

Definition at line 20 of file metaindex.h.

Constructor & Destructor Documentation

◆ metaIndex()

metaIndex ( std::string const &  URI,
std::string const &  Dist,
char const *const  Type 
)

Definition at line 32 of file metaindex.cc.

◆ ~metaIndex()

~metaIndex ( )
virtual

Definition at line 40 of file metaindex.cc.

References d, Entries, I, and Indexes.

Member Function Documentation

◆ ArchiveURI()

virtual std::string ArchiveURI ( std::string const &  File) const
pure virtual

Implemented in debReleaseIndex.

◆ CheckDist()

bool CheckDist ( std::string const &  MaybeDist) const

Definition at line 73 of file metaindex.cc.

Referenced by pkgAcqMetaBase::VerifyVendor().

◆ Describe()

std::string Describe ( ) const
virtual

Reimplemented in debReleaseIndex.

Definition at line 17 of file metaindex.cc.

Referenced by BuildCache().

◆ Exists()

APT_PURE bool Exists ( std::string const &  MetaKey) const

tests if a checksum for this file is available

Definition at line 100 of file metaindex.cc.

Referenced by BuildCache(), and pkgAcqMetaClearSig::QueueIndexes().

◆ FindInCache()

pkgCache::RlsFileIterator FindInCache ( pkgCache Cache,
bool const  ModifyCheck 
) const
virtual

Reimplemented in debReleaseIndex.

Definition at line 22 of file metaindex.cc.

References pkgCache< Str, Itr >::RlsFileIterator().

Referenced by BuildCache().

◆ GetCodename()

APT_PURE std::string GetCodename ( ) const

Definition at line 63 of file metaindex.cc.

References Codename.

Referenced by pkgAcqMetaBase::VerifyVendor().

◆ GetDate()

APT_PURE time_t GetDate ( ) const

Definition at line 69 of file metaindex.cc.

References Date.

Referenced by pkgAcqBaseIndex::Failed(), and pkgAcqMetaBase::VerifyVendor().

◆ GetDefaultPin()

APT_PURE signed short GetDefaultPin ( ) const

Definition at line 66 of file metaindex.cc.

References DefaultPin.

Referenced by pkgAcqMetaBase::VerifyVendor().

◆ GetDist()

APT_PURE std::string GetDist ( ) const

Definition at line 56 of file metaindex.cc.

References Dist.

◆ GetExpectedDist()

APT_PURE std::string GetExpectedDist ( ) const

Definition at line 71 of file metaindex.cc.

References Dist.

Referenced by pkgAcqMetaBase::VerifyVendor().

◆ GetIndexes()

virtual bool GetIndexes ( pkgAcquire Owner,
bool const &  GetAll = false 
)
pure virtual

Implemented in debReleaseIndex.

◆ GetIndexFiles()

virtual std::vector<pkgIndexFile *>* GetIndexFiles ( )
pure virtual

Implemented in debReleaseIndex.

◆ GetIndexTargets()

virtual std::vector<IndexTarget> GetIndexTargets ( ) const
pure virtual

Implemented in debReleaseIndex.

Referenced by pkgAcqMetaClearSig::QueueIndexes().

◆ GetLabel()

APT_PURE std::string GetLabel ( ) const

Definition at line 61 of file metaindex.cc.

References Label.

Referenced by debReleaseIndex::Load(), and pkgAcqMetaBase::VerifyVendor().

◆ GetLoadedSuccessfully()

APT_PURE metaIndex::TriState GetLoadedSuccessfully ( ) const

Definition at line 70 of file metaindex.cc.

References LoadedSuccessfully.

Referenced by pkgAcqTransactionItem::HashesRequired().

◆ GetNotBefore()

virtual time_t GetNotBefore ( ) const
pure virtual

Implemented in debReleaseIndex.

Referenced by pkgAcqMetaBase::VerifyVendor().

◆ GetOrigin()

APT_PURE std::string GetOrigin ( ) const

Definition at line 60 of file metaindex.cc.

References Origin.

Referenced by pkgAcqMetaBase::VerifyVendor().

◆ GetReleaseNotes()

APT_PURE std::string GetReleaseNotes ( ) const

Definition at line 65 of file metaindex.cc.

References ReleaseNotes.

Referenced by pkgAcqMetaBase::VerifyVendor().

◆ GetSignedBy()

APT_PURE std::string GetSignedBy ( ) const

Definition at line 59 of file metaindex.cc.

References SignedBy.

Referenced by pkgAcqMetaSig::Custom600Headers(), and pkgAcqMetaClearSig::Custom600Headers().

◆ GetSuite()

APT_PURE std::string GetSuite ( ) const

Definition at line 64 of file metaindex.cc.

References Suite.

Referenced by pkgAcqMetaBase::VerifyVendor().

◆ GetSupportsAcquireByHash()

APT_PURE bool GetSupportsAcquireByHash ( ) const

Definition at line 67 of file metaindex.cc.

References SupportsAcquireByHash.

Referenced by pkgAcqTransactionItem::AcquireByHash().

◆ GetTrusted()

APT_PURE metaIndex::TriState GetTrusted ( ) const

Definition at line 58 of file metaindex.cc.

References Trusted.

◆ GetType()

APT_PURE const char * GetType ( ) const

Definition at line 57 of file metaindex.cc.

References Type.

Referenced by debSLTypeDebian::GetDebReleaseIndexBy().

◆ GetURI()

APT_PURE std::string GetURI ( ) const

Definition at line 55 of file metaindex.cc.

References URI.

◆ GetValidUntil()

APT_PURE time_t GetValidUntil ( ) const

Definition at line 68 of file metaindex.cc.

References ValidUntil.

Referenced by pkgAcqMetaBase::VerifyVendor().

◆ GetVersion()

APT_PURE std::string GetVersion ( ) const

Definition at line 62 of file metaindex.cc.

References Version.

Referenced by pkgAcqMetaBase::VerifyVendor().

◆ HasSupportForComponent()

bool HasSupportForComponent ( std::string const &  component) const
virtual

Reimplemented in debReleaseIndex.

Definition at line 144 of file metaindex.cc.

Referenced by pkgAcqMetaClearSig::QueueIndexes().

◆ IsArchitectureAllSupportedFor()

bool IsArchitectureAllSupportedFor ( IndexTarget const &  target) const
virtual

Reimplemented in debReleaseIndex.

Definition at line 139 of file metaindex.cc.

Referenced by pkgAcqMetaClearSig::QueueIndexes().

◆ IsArchitectureSupported()

bool IsArchitectureSupported ( std::string const &  arch) const
virtual

Reimplemented in debReleaseIndex.

Definition at line 134 of file metaindex.cc.

Referenced by pkgAcqMetaClearSig::QueueIndexes().

◆ IsTrusted()

virtual bool IsTrusted ( ) const
pure virtual

Implemented in debReleaseIndex.

◆ Load()

virtual bool Load ( std::string const &  Filename,
std::string *const  ErrorText 
)
pure virtual

◆ Lookup()

APT_PURE metaIndex::checkSum * Lookup ( std::string const &  MetaKey) const

Definition at line 92 of file metaindex.cc.

Referenced by GetExpectedHashesFromFor(), and SigVerify::Verify().

◆ Merge()

bool Merge ( pkgCacheGenerator Gen,
OpProgress Prog 
) const
virtual

Reimplemented in debReleaseIndex.

Definition at line 27 of file metaindex.cc.

References pkgCacheGenerator::SelectReleaseFile().

Referenced by BuildCache().

◆ MetaKeys()

std::vector< std::string > MetaKeys ( ) const

Definition at line 105 of file metaindex.cc.

References Entries, and I.

Referenced by SigVerify::CopyAndVerify().

◆ swapLoad()

void swapLoad ( metaIndex *const  OldMetaIndex)

◆ UnloadedClone()

virtual metaIndex* UnloadedClone ( ) const
pure virtual
Returns
a new metaIndex object based on this one, but without information from Load

Implemented in debReleaseIndex.

Referenced by LoadLastMetaIndexParser().

Member Data Documentation

◆ Codename

std::string Codename
protected

Definition at line 46 of file metaindex.h.

Referenced by GetCodename(), debReleaseIndex::Load(), and swapLoad().

◆ d

metaIndexPrivate* const d
private

Definition at line 34 of file metaindex.h.

Referenced by ~metaIndex().

◆ Date

time_t Date
protected

Definition at line 52 of file metaindex.h.

Referenced by GetDate(), debReleaseIndex::Load(), and swapLoad().

◆ DefaultPin

signed short DefaultPin
protected

Definition at line 50 of file metaindex.h.

Referenced by GetDefaultPin(), debReleaseIndex::Load(), and swapLoad().

◆ Dist

◆ Entries

std::map<std::string, checkSum *> Entries
protected

Definition at line 55 of file metaindex.h.

Referenced by debReleaseIndex::Load(), MetaKeys(), swapLoad(), and ~metaIndex().

◆ Indexes

std::vector<pkgIndexFile *>* Indexes
protected

Definition at line 36 of file metaindex.h.

Referenced by debReleaseIndex::GetIndexFiles(), and ~metaIndex().

◆ Label

std::string Label
protected

Definition at line 48 of file metaindex.h.

Referenced by GetLabel(), debReleaseIndex::Load(), and swapLoad().

◆ LoadedSuccessfully

TriState LoadedSuccessfully
protected

Definition at line 56 of file metaindex.h.

Referenced by GetLoadedSuccessfully(), debReleaseIndex::Load(), and swapLoad().

◆ Origin

std::string Origin
protected

Definition at line 47 of file metaindex.h.

Referenced by GetOrigin(), debReleaseIndex::Load(), and swapLoad().

◆ ReleaseNotes

std::string ReleaseNotes
protected

Definition at line 51 of file metaindex.h.

Referenced by GetReleaseNotes(), and debReleaseIndex::Load().

◆ SignedBy

std::string SignedBy
protected

◆ Suite

std::string Suite
protected

Definition at line 45 of file metaindex.h.

Referenced by GetSuite(), debReleaseIndex::Load(), and swapLoad().

◆ SupportsAcquireByHash

bool SupportsAcquireByHash
protected

Definition at line 54 of file metaindex.h.

Referenced by GetSupportsAcquireByHash(), debReleaseIndex::Load(), and swapLoad().

◆ Trusted

◆ Type

◆ URI

◆ ValidUntil

time_t ValidUntil
protected

Definition at line 53 of file metaindex.h.

Referenced by GetValidUntil(), debReleaseIndex::Load(), and swapLoad().

◆ Version

std::string Version
protected

Definition at line 49 of file metaindex.h.

Referenced by GetVersion(), debReleaseIndex::Load(), and swapLoad().


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