Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

PkgChangelog Class Reference

Helper class providing changelog information. More...

#include <PkgChangelog.h>

List of all members.

Public Types

typedef std::list< Entry
>::iterator 
iterator
typedef std::list< Entry
>::reverse_iterator 
reverse_iterator
typedef std::list< Entry
>::const_iterator 
const_iterator
typedef std::list< Entry
>::const_reverse_iterator 
const_reverse_iterator

Public Member Functions

 PkgChangelog ()
 ~PkgChangelog ()
void push_back (const Entry &e_r)
void push_front (const Entry &e_r)
unsigned size () const
iterator begin ()
iterator end ()
reverse_iterator rbegin ()
reverse_iterator rend ()
const_iterator begin () const
const_iterator end () const
const_reverse_iterator rbegin () const
const_reverse_iterator rend () const
std::list< std::string > asStringList () const

Private Attributes

std::list< Entry_entries

Friends

std::ostream & operator<< (std::ostream &str, const PkgChangelog &obj)


Detailed Description

Helper class providing changelog information.

PkgChangelog contains a std::list<PkgChangelog::Entry>. Each Entry consists of date, author and text, as derived from a rpmlib header. Text is expected to be the preformated changes entry with all lines delimited by '
'.

A conversion std::list<std::string> asStringList() is provided. The list returned contains the changelog line by line, fromated the same way 'rpm -q --changelog' would do.


Member Typedef Documentation

typedef std::list<Entry>::const_iterator PkgChangelog::const_iterator
 

typedef std::list<Entry>::const_reverse_iterator PkgChangelog::const_reverse_iterator
 

typedef std::list<Entry>::iterator PkgChangelog::iterator
 

typedef std::list<Entry>::reverse_iterator PkgChangelog::reverse_iterator
 


Constructor & Destructor Documentation

PkgChangelog::PkgChangelog  )  [inline]
 

Constructor

PkgChangelog::~PkgChangelog  )  [inline]
 

Destructor


Member Function Documentation

list< string > PkgChangelog::asStringList  )  const
 

The list returned contains the changelog line by line, fromated the same way 'rpm -q --changelog' would do.

const_iterator PkgChangelog::begin  )  const [inline]
 

Forward const iterator pointing to the first entry (if any)

iterator PkgChangelog::begin  )  [inline]
 

Forward iterator pointing to the first entry (if any)

const_iterator PkgChangelog::end  )  const [inline]
 

Forward const iterator pointing behind the last entry.

iterator PkgChangelog::end  )  [inline]
 

Forward iterator pointing behind the last entry.

void PkgChangelog::push_back const Entry e_r  )  [inline]
 

Append a new entry

void PkgChangelog::push_front const Entry e_r  )  [inline]
 

Prepend a new entry

const_reverse_iterator PkgChangelog::rbegin  )  const [inline]
 

Reverse const iterator pointing to the last entry (if any)

reverse_iterator PkgChangelog::rbegin  )  [inline]
 

Reverse iterator pointing to the last entry (if any)

const_reverse_iterator PkgChangelog::rend  )  const [inline]
 

Reverse const iterator pointing before the first entry.

reverse_iterator PkgChangelog::rend  )  [inline]
 

Reverse iterator pointing before the first entry.

unsigned PkgChangelog::size  )  const [inline]
 

Number of entries


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  str,
const PkgChangelog obj
[friend]
 

Print changelog fromatedthe same way 'rpm -q --changelog' would do.


Member Data Documentation

std::list<Entry> PkgChangelog::_entries [private]
 

Entry list.


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 14:30:32 2007 for yast2-packagemanager by doxygen 1.3.6