libzypp  11.13.5
Changelog.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_CHANGELOG_H
13 #define ZYPP_CHANGELOG_H
14 
15 #include <string>
16 #include <list>
17 
18 #include "zypp/Date.h"
19 
21 namespace zypp
22 {
23 
25  //
26  // CLASS NAME : ChangelogEntry
27  //
31  {
32  public:
34  ChangelogEntry( const Date & d,
35  const std::string & a,
36  const std::string & t )
37  : _date( d ), _author( a ), _text( t )
38  {};
41  {}
42  Date date() const { return _date; }
43  std::string author() const { return _author; }
44  std::string text() const { return _text; }
45 
46  private:
48  std::string _author;
49  std::string _text;
50  };
51 
53  typedef std::list<ChangelogEntry> Changelog;
54 
56  std::ostream & operator<<( std::ostream & out, const ChangelogEntry & obj );
57 
59 } // namespace zypp
61 
62 #endif // ZYPP_CHANGELOG_H