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)  

IndexTarget Class Reference

Information about an index file. More...

#include <indexfile.h>

Collaboration diagram for IndexTarget:
[legend]

Public Types

enum  OptionKeys {
  SITE , RELEASE , COMPONENT , LANGUAGE ,
  ARCHITECTURE , BASE_URI , REPO_URI , CREATED_BY ,
  TARGET_OF , FILENAME , EXISTING_FILENAME , PDIFFS ,
  COMPRESSIONTYPES , DEFAULTENABLED , SOURCESENTRY , BY_HASH ,
  KEEPCOMPRESSEDAS , FALLBACK_OF , IDENTIFIER , ALLOW_INSECURE ,
  ALLOW_WEAK , ALLOW_DOWNGRADE_TO_INSECURE , INRELEASE_PATH
}
 

Public Member Functions

 IndexTarget (std::string const &MetaKey, std::string const &ShortDesc, std::string const &LongDesc, std::string const &URI, bool const IsOptional, bool const KeepCompressed, std::map< std::string, std::string > const &Options)
 
std::string Option (OptionKeys const Key) const
 
bool OptionBool (OptionKeys const Key) const
 
std::string Format (std::string format) const
 

Public Attributes

std::string URI
 A URI from which the index file can be downloaded. More...
 
std::string Description
 A description of the index file. More...
 
std::string ShortDesc
 A shorter description of the index file. More...
 
std::string MetaKey
 The key by which this index file should be looked up within the meta index file. More...
 
bool IsOptional
 Is it okay if the file isn't found in the meta index. More...
 
bool KeepCompressed
 If the file is downloaded compressed, do not unpack it. More...
 
std::map< std::string, std::string > Options
 options with which this target was created Prefer the usage of Option if at all possible. Beware: Not all of these options are intended for public use More...
 

Detailed Description

Information about an index file.

Definition at line 37 of file indexfile.h.

Member Enumeration Documentation

◆ OptionKeys

enum OptionKeys
Enumerator
SITE 
RELEASE 
COMPONENT 
LANGUAGE 
ARCHITECTURE 
BASE_URI 
REPO_URI 
CREATED_BY 
TARGET_OF 
FILENAME 
EXISTING_FILENAME 
PDIFFS 
COMPRESSIONTYPES 
DEFAULTENABLED 
SOURCESENTRY 
BY_HASH 
KEEPCOMPRESSEDAS 
FALLBACK_OF 
IDENTIFIER 
ALLOW_INSECURE 
ALLOW_WEAK 
ALLOW_DOWNGRADE_TO_INSECURE 
INRELEASE_PATH 

Definition at line 69 of file indexfile.h.

Constructor & Destructor Documentation

◆ IndexTarget()

IndexTarget ( std::string const &  MetaKey,
std::string const &  ShortDesc,
std::string const &  LongDesc,
std::string const &  URI,
bool const  IsOptional,
bool const  KeepCompressed,
std::map< std::string, std::string > const &  Options 
)

Definition at line 89 of file indexfile.cc.

Member Function Documentation

◆ Format()

std::string Format ( std::string  format) const

Definition at line 156 of file indexfile.cc.

References FILENAME, and SubstVar().

◆ Option()

◆ OptionBool()

bool OptionBool ( OptionKeys const  Key) const

Definition at line 151 of file indexfile.cc.

References StringToBool().

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

Member Data Documentation

◆ Description

◆ IsOptional

bool IsOptional

Is it okay if the file isn't found in the meta index.

Definition at line 55 of file indexfile.h.

Referenced by pkgAcqIndex::Custom600Headers(), pkgAcqIndex::Failed(), and pkgAcqMetaClearSig::QueueIndexes().

◆ KeepCompressed

bool KeepCompressed

If the file is downloaded compressed, do not unpack it.

Definition at line 58 of file indexfile.h.

Referenced by GetKeepCompressedFileName(), and pkgAcqIndex::StageDownloadDone().

◆ MetaKey

std::string MetaKey

◆ Options

std::map<std::string, std::string> Options

options with which this target was created Prefer the usage of Option if at all possible. Beware: Not all of these options are intended for public use

Definition at line 63 of file indexfile.h.

Referenced by pkgAcqMetaClearSig::QueueIndexes().

◆ ShortDesc

◆ URI


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