libzypp 17.31.23
|
#include <target/rpm/BinHeader.h>
Classes | |
class | intList |
class | stringList |
Public Types | |
typedef intrusive_ptr< BinHeader > | Ptr |
typedef intrusive_ptr< const BinHeader > | constPtr |
typedef rpmTag | tag |
Public Member Functions | |
BinHeader (Header h_r=0) | |
BinHeader (BinHeader::Ptr &rhs) | |
Dangerous!<\B> This one takes the header out of rhs and leaves rhs empty. | |
virtual | ~BinHeader () |
bool | empty () const |
bool | has_tag (tag tag_r) const |
unsigned | int_list (tag tag_r, intList &lst_r) const |
unsigned | string_list (tag tag_r, stringList &lst_r) const |
int | int_val (tag tag_r) const |
ByteArray | blob_val (tag tag_r) const |
std::string | string_val (tag tag_r) const |
std::string | format (const char *fmt) const |
Header | get () const |
std::list< std::string > | stringList_val (tag tag_r) const |
virtual std::ostream & | dumpOn (std::ostream &str) const |
Overload to realize std::ostream & operator<<. | |
Public Member Functions inherited from zypp::base::ReferenceCounted | |
ReferenceCounted () | |
Default ctor. | |
ReferenceCounted (const ReferenceCounted &rhs) | |
Copy ctor. | |
virtual | ~ReferenceCounted () |
Dtor. | |
ReferenceCounted & | operator= (const ReferenceCounted &) |
Assignment. | |
unsigned | refCount () const |
Return reference counter value. | |
void | ref () const |
Add a reference. | |
void | unref () const |
Release a reference. | |
Private Member Functions | |
bool | assertHeader () |
Private Attributes | |
Header | _h |
Additional Inherited Members | |
Static Public Member Functions inherited from zypp::base::ReferenceCounted | |
static void | add_ref (const ReferenceCounted *ptr_r) |
Called by zypp::intrusive_ptr to add a reference. | |
static void | release (const ReferenceCounted *ptr_r) |
Called by zypp::intrusive_ptr to add a reference. | |
Protected Member Functions inherited from zypp::base::ReferenceCounted | |
virtual std::ostream & | dumpOn (std::ostream &str) const |
Overload to realize std::ostream & operator<<. | |
virtual void | ref_to (unsigned) const |
Trigger derived classes after refCount was increased. | |
virtual void | unref_to (unsigned) const |
Trigger derived classes after refCount was decreased. | |
Related Functions inherited from zypp::base::ReferenceCounted | |
void | intrusive_ptr_add_ref (const ReferenceCounted *ptr_r) |
intrusive_ptr hook to add_ref. | |
void | intrusive_ptr_release (const ReferenceCounted *ptr_r) |
intrusive_ptr hook to release. | |
std::ostream & | operator<< (std::ostream &str, const ReferenceCounted &obj) |
Stream output. | |
Definition at line 43 of file BinHeader.h.
Definition at line 48 of file BinHeader.h.
typedef intrusive_ptr<const BinHeader> zypp::target::rpm::BinHeader::constPtr |
Definition at line 50 of file BinHeader.h.
typedef rpmTag zypp::target::rpm::BinHeader::tag |
Definition at line 52 of file BinHeader.h.
zypp::target::rpm::BinHeader::BinHeader | ( | Header | h_r = 0 | ) |
Definition at line 155 of file BinHeader.cc.
zypp::target::rpm::BinHeader::BinHeader | ( | BinHeader::Ptr & | rhs | ) |
Dangerous!<\B> This one takes the header out of rhs and leaves rhs empty.
Definition at line 170 of file BinHeader.cc.
|
virtual |
Definition at line 191 of file BinHeader.cc.
|
private |
Definition at line 205 of file BinHeader.cc.
|
inline |
Definition at line 78 of file BinHeader.h.
Definition at line 227 of file BinHeader.cc.
Definition at line 240 of file BinHeader.cc.
unsigned zypp::target::rpm::BinHeader::string_list | ( | tag | tag_r, |
stringList & | lst_r | ||
) | const |
Definition at line 279 of file BinHeader.cc.
int zypp::target::rpm::BinHeader::int_val | ( | tag | tag_r | ) | const |
Definition at line 310 of file BinHeader.cc.
Definition at line 345 of file BinHeader.cc.
std::string zypp::target::rpm::BinHeader::string_val | ( | tag | tag_r | ) | const |
Definition at line 375 of file BinHeader.cc.
std::string zypp::target::rpm::BinHeader::format | ( | const char * | fmt | ) | const |
Definition at line 398 of file BinHeader.cc.
Header zypp::target::rpm::BinHeader::get | ( | ) | const |
Definition at line 407 of file BinHeader.cc.
std::list< std::string > zypp::target::rpm::BinHeader::stringList_val | ( | tag | tag_r | ) | const |
Definition at line 420 of file BinHeader.cc.
|
virtual |
Overload to realize std::ostream & operator<<.
Reimplemented from zypp::base::ReferenceCounted.
Reimplemented in zypp::target::rpm::RpmHeader.
Definition at line 444 of file BinHeader.cc.
|
private |
Definition at line 60 of file BinHeader.h.