#include <RpmHeader.h>
Inheritance diagram for RpmHeader:
Public Member Functions | |
RpmHeader (Header h_r=0) | |
RpmHeader (binHeaderPtr &rhs) | |
virtual | ~RpmHeader () |
bool | isSrc () const |
PkgName | tag_name () const |
PkgEdition | tag_edition () const |
PkgArch | tag_arch () const |
Date | tag_installtime () const |
Date | tag_buildtime () const |
PMSolvable::PkgRelList_type | tag_provides (FileDeps::FileNames *freq_r=0) const |
PMSolvable::PkgRelList_type | tag_requires (FileDeps::FileNames *freq_r=0) const |
PMSolvable::PkgRelList_type | tag_conflicts (FileDeps::FileNames *freq_r=0) const |
PMSolvable::PkgRelList_type | tag_obsoletes (FileDeps::FileNames *freq_r=0) const |
FSize | tag_size () const |
FSize | tag_archivesize () const |
std::string | tag_summary () const |
std::string | tag_description () const |
std::string | tag_group () const |
std::string | tag_vendor () const |
std::string | tag_distribution () const |
std::string | tag_license () const |
std::string | tag_buildhost () const |
std::string | tag_packager () const |
std::string | tag_url () const |
std::string | tag_os () const |
std::string | tag_prein () const |
std::string | tag_postin () const |
std::string | tag_preun () const |
std::string | tag_postun () const |
std::string | tag_sourcerpm () const |
std::list< std::string > | tag_filenames () const |
PkgChangelog | tag_changelog () const |
PkgDu & | tag_du (PkgDu &dudata_r) const |
virtual std::ostream & | dumpOn (std::ostream &str) const |
Static Public Member Functions | |
constRpmHeaderPtr | readPackage (const Pathname &path, bool checkDigest=false) |
Private Member Functions | |
REP_BODY (RpmHeader) | |
PMSolvable::PkgRelList_type | PkgRelList_val (tag tag_r, FileDeps::FileNames *freq_r=0) const |
RpmHeader
provides methods to query the content of a rpm header struct retrieved from the RPM database or by reading the rpm header of a package on disk.
The rpm header contains all data associated with a package. So you probabely do not want to permanently store too many of them.
NEVER create RpmHeader
from a NULL Header
!
|
|
|
Dangerous!<> This one takes the header out of rhs and leaves rhs empty. |
|
|
|
Reimplemented from binHeader. |
|
|
|
|
|
Get an accessible packages data from disk. Returns NULL on any error. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns reference to arg |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If |
|
|
|
|
|
|
|
|
|
|
|
|