#include <InstSrcDescr.h>
Inheritance diagram for InstSrcDescr:
Public Types | |
typedef InstSrcError | Error |
typedef std::map< std::string, std::list< PkgArch > > | ArchMap |
typedef std::map< LangCode, std::string > | LabelMap |
typedef std::list< LangCode > | LinguasList |
Public Member Functions | |
InstSrcDescr () | |
virtual | ~InstSrcDescr () |
InstSrc::Type | type () const |
const Url & | url () const |
const Pathname & | product_dir () const |
bool | default_activate () const |
unsigned | default_rank () const |
const Vendor & | media_vendor () const |
const std::string & | media_id () const |
const unsigned & | media_count () const |
bool | media_doublesided () const |
const PM::LocaleString & | media_label (unsigned number_r) const |
const ProductIdent & | content_product () const |
const PkgNameEd & | content_distproduct () const |
const ProductIdent & | content_baseproduct () const |
const Vendor & | content_vendor () const |
const std::string & | content_defaultbase () const |
const ArchMap & | content_archmap () const |
const PkgRelation & | content_requires () const |
const LangCode & | content_language () const |
const LinguasList & | content_linguas () const |
const std::string & | content_label () const |
const LabelMap & | content_labelmap () const |
const std::string & | content_timezone () const |
const Pathname & | content_descrdir () const |
const Pathname & | content_datadir () const |
const std::string & | content_flags () const |
const std::string & | content_relnotesurl () const |
const std::string & | content_youurl () const |
const std::string & | content_youtype () const |
const std::string & | content_youpath () const |
Pathname | descrdir () const |
Pathname | datadir () const |
std::string | label () const |
void | set_type (InstSrc::Type val_r) |
void | set_url (const Url &val_r) |
void | set_product_dir (const Pathname &val_r) |
void | set_default_activate (bool val_r) |
void | set_default_rank (unsigned val_r) |
void | set_media_vendor (const Vendor &val_r) |
void | set_media_id (const std::string &val_r) |
void | set_media_count (unsigned val_r) |
void | set_media_doublesided (bool val_r) |
void | set_media_labels (const F_Media::LabelMap &val_r) |
void | set_content_product (const ProductIdent &val_r) |
void | set_content_distproduct (const PkgNameEd &val_r) |
void | set_content_baseproduct (const ProductIdent &val_r) |
void | set_content_vendor (const Vendor &val_r) |
void | set_content_defaultbase (const std::string &val_r) |
void | set_content_archmap (const ArchMap &val_r) |
void | set_content_requires (const PkgRelation &val_r) |
void | set_content_language (const LangCode &val_r) |
void | set_content_linguas (const LinguasList &val_r) |
void | set_content_label (const std::string &val_r) |
void | set_content_labelmap (const LabelMap &val_r) |
void | set_content_timezone (const std::string &val_r) |
void | set_content_descrdir (const Pathname &val_r) |
void | set_content_datadir (const Pathname &val_r) |
void | set_content_flags (const std::string &val_r) |
void | set_content_relnotesurl (const std::string &val_r) |
void | set_content_youurl (const std::string &val_r) |
void | set_content_youtype (const std::string &val_r) |
void | set_content_youpath (const std::string &val_r) |
bool | isBaseProduct () const |
bool | hasBaseProduct (const constInstSrcDescrPtr &base_r) const |
virtual std::ostream & | dumpOn (std::ostream &str) const |
PMError | writeCache (const Pathname &cache_dir_r) const |
PMError | writeStream (std::ostream &str) const |
Static Public Member Functions | |
bool | sameContentProduct (const constInstSrcDescrPtr &rhs, const constInstSrcDescrPtr &lhs) |
PMError | readCache (InstSrcDescrPtr &ndescr_r, const Pathname &cache_dir_r) |
PMError | readStream (InstSrcDescrPtr &ndescr_r, std::istream &str) |
Static Public Attributes | |
const unsigned | NO_RANK = unsigned(-1) |
Private Member Functions | |
REP_BODY (InstSrcDescr) | |
Private Attributes | |
InstSrc::Type | _type |
Url | _url |
Pathname | _product_dir |
bool | _default_activate |
unsigned | _default_rank |
Vendor | _media_vendor |
std::string | _media_id |
unsigned | _media_count |
bool | _media_doublesided |
F_Media::LabelMap | _media_labels |
ProductIdent | _content_product |
PkgNameEd | _content_distproduct |
ProductIdent | _content_baseproduct |
Vendor | _content_vendor |
std::string | _content_defaultbase |
ArchMap | _content_archmap |
PkgRelation | _content_requires |
LangCode | _content_language |
LinguasList | _content_linguas |
std::string | _content_label |
LabelMap | _content_labelmap |
std::string | _content_timezone |
Pathname | _content_descrdir |
Pathname | _content_datadir |
std::string | _content_flags |
std::string | _content_relnotesurl |
std::string | _content_youurl |
std::string | _content_youtype |
std::string | _content_youpath |
Static Private Attributes | |
const Pathname | _cache_file |
Keeps all information to identify and describe an installation source, but does not have knowledge about its contents (i.e the packages, selectins, etc ). See InstSrcData for the contents.
See also media-descr.html
|
|
|
default error class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Package data directory below _url |
|
|
|
|
|
Package description directory below _url |
|
Reimplemented from CountedRep. |
|
Return whether this has base product base_r. If base_r is NULL, whether this is a base product. |
|
Return whether this is a base product. (it has no baseproduct) |
|
Content label according to Y2PM::getPreferredLocale |
|
|
|
|
|
|
|
|
|
|
|
|
|
Create new InstSrcDescr reading data from cache description |
|
Used by readCache to actually read data from stream. |
|
|
|
Test for equal content_product. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Write data to cache description |
|
Used by writeCache to actually write the data to stream. |
|
Name of the cachefile to read or write. |
|
|
|
|
|
package data directory below _product_dir |
|
|
|
package description directory below _product_dir |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Should InstSrc be activated by default. |
|
Rank of this InstSrc.(0 is highest) |
|
|
|
|
|
|
|
|
|
|
|
Product dir below _url |
|
Type of InstSrc found on media. |
|
Url for media access (media's root dir, for packages) |
|
|