libzypp 17.31.23
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
21namespace 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
Single entry in a change log.
Definition: Changelog.h:31
~ChangelogEntry()
Dtor.
Definition: Changelog.h:40
std::string text() const
Definition: Changelog.h:44
Date date() const
Definition: Changelog.h:42
ChangelogEntry(const Date &d, const std::string &a, const std::string &t)
Default ctor.
Definition: Changelog.h:34
std::string _text
Definition: Changelog.h:49
std::string _author
Definition: Changelog.h:48
std::string author() const
Definition: Changelog.h:43
std::ostream & operator<<(std::ostream &out, const ChangelogEntry &obj)
Store and operate on date (time_t).
Definition: Date.h:33
unsigned short a
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
std::list< ChangelogEntry > Changelog
List of ChangelogEntry.
Definition: Changelog.h:53