libzypp  17.25.1
zypp::target::rpm::BinHeader Class Reference

#include <BinHeader.h>

Inheritance diagram for zypp::target::rpm::BinHeader:

Classes

class  intList
 
class  stringList
 

Public Types

typedef intrusive_ptr< BinHeaderPtr
 
typedef intrusive_ptr< const BinHeaderconstPtr
 
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. More...
 
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
 
std::string string_val (tag tag_r) const
 
std::string format (const char *fmt) 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<<. More...
 
- Public Member Functions inherited from zypp::base::ReferenceCounted
 ReferenceCounted ()
 Default ctor. More...
 
 ReferenceCounted (const ReferenceCounted &rhs)
 Copy ctor. More...
 
virtual ~ReferenceCounted ()
 Dtor. More...
 
ReferenceCountedoperator= (const ReferenceCounted &)
 Assignment. More...
 
unsigned refCount () const
 Return reference counter value. More...
 
void ref () const
 Add a reference. More...
 
void unref () const
 Release a reference. More...
 

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. More...
 
static void release (const ReferenceCounted *ptr_r)
 Called by zypp::intrusive_ptr to add a reference. More...
 
- Protected Member Functions inherited from zypp::base::ReferenceCounted
virtual void ref_to (unsigned) const
 Trigger derived classes after refCount was increased. More...
 
virtual void unref_to (unsigned) const
 Trigger derived classes after refCount was decreased. More...
 

Detailed Description

Definition at line 42 of file BinHeader.h.

Member Typedef Documentation

◆ Ptr

◆ constPtr

Definition at line 49 of file BinHeader.h.

◆ tag

Definition at line 51 of file BinHeader.h.

Constructor & Destructor Documentation

◆ BinHeader() [1/2]

zypp::target::rpm::BinHeader::BinHeader ( Header  h_r = 0)

Definition at line 155 of file BinHeader.cc.

◆ BinHeader() [2/2]

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.

◆ ~BinHeader()

zypp::target::rpm::BinHeader::~BinHeader ( )
virtual

Definition at line 191 of file BinHeader.cc.

Member Function Documentation

◆ assertHeader()

bool zypp::target::rpm::BinHeader::assertHeader ( )
private

Definition at line 205 of file BinHeader.cc.

◆ empty()

bool zypp::target::rpm::BinHeader::empty ( ) const
inline

Definition at line 77 of file BinHeader.h.

◆ has_tag()

bool zypp::target::rpm::BinHeader::has_tag ( tag  tag_r) const

Definition at line 227 of file BinHeader.cc.

◆ int_list()

unsigned zypp::target::rpm::BinHeader::int_list ( tag  tag_r,
intList lst_r 
) const

Definition at line 240 of file BinHeader.cc.

◆ string_list()

unsigned zypp::target::rpm::BinHeader::string_list ( tag  tag_r,
stringList lst_r 
) const

Definition at line 279 of file BinHeader.cc.

◆ int_val()

int zypp::target::rpm::BinHeader::int_val ( tag  tag_r) const

Definition at line 310 of file BinHeader.cc.

◆ string_val()

std::string zypp::target::rpm::BinHeader::string_val ( tag  tag_r) const

Definition at line 353 of file BinHeader.cc.

◆ format()

std::string zypp::target::rpm::BinHeader::format ( const char *  fmt) const

Definition at line 376 of file BinHeader.cc.

◆ stringList_val()

std::list< std::string > zypp::target::rpm::BinHeader::stringList_val ( tag  tag_r) const

Definition at line 393 of file BinHeader.cc.

◆ dumpOn()

std::ostream & zypp::target::rpm::BinHeader::dumpOn ( std::ostream &  str) const
virtual

Overload to realize std::ostream & operator<<.

Reimplemented from zypp::base::ReferenceCounted.

Reimplemented in zypp::target::rpm::RpmHeader.

Definition at line 417 of file BinHeader.cc.

Member Data Documentation

◆ _h

Header zypp::target::rpm::BinHeader::_h
private

Definition at line 55 of file BinHeader.h.


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