1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/Changelog.h
12 #ifndef ZYPP_CHANGELOG_H
13 #define ZYPP_CHANGELOG_H
21 ///////////////////////////////////////////////////////////////////
23 { /////////////////////////////////////////////////////////////////
25 ///////////////////////////////////////////////////////////////////
27 // CLASS NAME : ChangelogEntry
29 /** Single entry in a change log
35 ChangelogEntry( const Date & d,
36 const std::string & a,
37 const std::string & t )
38 : _date( d ), _author( a ), _text( t )
43 Date date() const { return _date; }
44 std::string author() const { return _author; }
45 std::string text() const { return _text; }
53 typedef std::list<ChangelogEntry> Changelog;
55 inline std::ostream & operator<<( std::ostream & out,
56 const ChangelogEntry & obj )
58 out << obj.date() << " " << obj.author() << endl << obj.text() << endl;
63 ///////////////////////////////////////////////////////////////////
65 ///////////////////////////////////////////////////////////////////
67 #endif // ZYPP_CHANGELOG_H