libzypp  10.5.0
Changelog.h
Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_CHANGELOG_H
00013 #define ZYPP_CHANGELOG_H
00014 
00015 #include <string>
00016 #include <list>
00017 
00018 #include "zypp/Date.h"
00019 
00021 namespace zypp
00022 { 
00023 
00025   //
00026   //    CLASS NAME : ChangelogEntry
00027   //
00030   class ChangelogEntry
00031   {
00032   public:
00034     ChangelogEntry( const Date & d,
00035                     const std::string & a,
00036                     const std::string & t )
00037     : _date( d ), _author( a ), _text( t )
00038     {};
00040     ~ChangelogEntry()
00041     {}
00042     Date date() const { return _date; }
00043     std::string author() const { return _author; }
00044     std::string text() const { return _text; }
00045 
00046   private:
00047     Date _date;
00048     std::string _author;
00049     std::string _text;
00050   };
00051 
00053   typedef std::list<ChangelogEntry> Changelog;
00054 
00056   std::ostream & operator<<( std::ostream & out, const ChangelogEntry & obj );
00057 
00059 } // namespace zypp
00061 
00062 #endif // ZYPP_CHANGELOG_H