zypp::target::rpm::BinHeader Class Reference

#include <BinHeader.h>

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

zypp::base::ReferenceCounted NonCopyable zypp::target::rpm::RpmHeader List of all members.

Public Types

typedef intrusive_ptr< BinHeaderPtr
typedef intrusive_ptr< const
BinHeader
constPtr
typedef int32_t tag

Public Member Functions

 BinHeader (Header h_r=0)
 BinHeader (BinHeader::Ptr &rhs)
 Dangerous!<

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
std::string string_val (tag tag_r) 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<<.

Private Member Functions

bool assertHeader ()

Private Attributes

Header _h

Classes

class  intList
class  stringList

Detailed Description

Definition at line 37 of file BinHeader.h.


Member Typedef Documentation

typedef intrusive_ptr<BinHeader> zypp::target::rpm::BinHeader::Ptr
 

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

Definition at line 42 of file BinHeader.h.

typedef intrusive_ptr<const BinHeader> zypp::target::rpm::BinHeader::constPtr
 

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

Definition at line 44 of file BinHeader.h.

typedef int32_t zypp::target::rpm::BinHeader::tag
 

Definition at line 46 of file BinHeader.h.


Constructor & Destructor Documentation

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

Definition at line 102 of file BinHeader.cc.

References _h.

zypp::target::rpm::BinHeader::BinHeader BinHeader::Ptr rhs  ) 
 

Dangerous!<

This one takes the header out of rhs and leaves rhs empty.

Definition at line 116 of file BinHeader.cc.

References _h, and INT.

zypp::target::rpm::BinHeader::~BinHeader  )  [virtual]
 

Definition at line 134 of file BinHeader.cc.

References _h.


Member Function Documentation

bool zypp::target::rpm::BinHeader::assertHeader  )  [private]
 

Definition at line 147 of file BinHeader.cc.

References _h, and INT.

bool zypp::target::rpm::BinHeader::empty  )  const [inline]
 

Definition at line 72 of file BinHeader.h.

References _h.

Referenced by has_tag(), int_list(), int_val(), string_list(), string_val(), and stringList_val().

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

Definition at line 167 of file BinHeader.cc.

References _h, and empty().

Referenced by zypp::target::rpm::RpmHeader::isSrc().

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

Definition at line 180 of file BinHeader.cc.

References _h, empty(), INT, zypp::target::rpm::BinHeader::intList::set(), and zypp::solver::detail::type.

Referenced by zypp::target::rpm::RpmHeader::tag_changelog(), zypp::target::rpm::RpmHeader::tag_du(), zypp::target::rpm::RpmHeader::tag_fileinfos(), and zypp::target::rpm::RpmHeader::tag_filenames().

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

Definition at line 217 of file BinHeader.cc.

References _h, empty(), INT, zypp::target::rpm::BinHeader::stringList::set(), and zypp::solver::detail::type.

Referenced by stringList_val(), zypp::target::rpm::RpmHeader::tag_changelog(), zypp::target::rpm::RpmHeader::tag_du(), zypp::target::rpm::RpmHeader::tag_fileinfos(), and zypp::target::rpm::RpmHeader::tag_filenames().

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

Definition at line 248 of file BinHeader.cc.

References _h, empty(), INT, and zypp::solver::detail::type.

Referenced by zypp::target::rpm::RpmHeader::tag_archivesize(), zypp::target::rpm::RpmHeader::tag_buildtime(), zypp::target::rpm::RpmHeader::tag_installtime(), and zypp::target::rpm::RpmHeader::tag_size().

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

Definition at line 288 of file BinHeader.cc.

References _h, empty(), INT, and zypp::solver::detail::type.

Referenced by zypp::target::rpm::RpmHeader::tag_arch(), zypp::target::rpm::RpmHeader::tag_buildhost(), zypp::target::rpm::RpmHeader::tag_description(), zypp::target::rpm::RpmHeader::tag_distribution(), zypp::target::rpm::RpmHeader::tag_epoch(), zypp::target::rpm::RpmHeader::tag_group(), zypp::target::rpm::RpmHeader::tag_license(), zypp::target::rpm::RpmHeader::tag_name(), zypp::target::rpm::RpmHeader::tag_os(), zypp::target::rpm::RpmHeader::tag_packager(), zypp::target::rpm::RpmHeader::tag_postin(), zypp::target::rpm::RpmHeader::tag_postun(), zypp::target::rpm::RpmHeader::tag_prein(), zypp::target::rpm::RpmHeader::tag_preun(), zypp::target::rpm::RpmHeader::tag_release(), zypp::target::rpm::RpmHeader::tag_sourcerpm(), zypp::target::rpm::RpmHeader::tag_summary(), zypp::target::rpm::RpmHeader::tag_url(), zypp::target::rpm::RpmHeader::tag_vendor(), and zypp::target::rpm::RpmHeader::tag_version().

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

Definition at line 322 of file BinHeader.cc.

References empty(), and string_list().

virtual 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.


Member Data Documentation

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

Definition at line 50 of file BinHeader.h.

Referenced by assertHeader(), BinHeader(), empty(), has_tag(), int_list(), int_val(), string_list(), string_val(), and ~BinHeader().


The documentation for this class was generated from the following files:
Generated on Thu Jul 6 00:07:35 2006 for zypp by  doxygen 1.4.6