libzypp 17.32.2
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#include <utility>
18
19#include <zypp/Date.h>
20
22namespace zypp
23{
24
26 //
27 // CLASS NAME : ChangelogEntry
28 //
32 {
33 public:
36 std::string a,
37 std::string t )
38 : _date( d ), _author(std::move( a )), _text(std::move( t ))
39 {};
43 Date date() const { return _date; }
44 std::string author() const { return _author; }
45 std::string text() const { return _text; }
46
47 private:
49 std::string _author;
50 std::string _text;
51 };
52
54 using Changelog = std::list<ChangelogEntry>;
55
57 std::ostream & operator<<( std::ostream & out, const ChangelogEntry & obj );
58
60} // namespace zypp
62
63#endif // ZYPP_CHANGELOG_H
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Definition AutoDispose.h:95
Single entry in a change log.
Definition Changelog.h:32
std::string text() const
Definition Changelog.h:45
Date date() const
Definition Changelog.h:43
std::string _text
Definition Changelog.h:50
std::string _author
Definition Changelog.h:49
ChangelogEntry(const Date &d, std::string a, std::string t)
Default ctor.
Definition Changelog.h:35
std::string author() const
Definition Changelog.h:44
std::ostream & operator<<(std::ostream &out, const ChangelogEntry &obj)
Store and operate on date (time_t).
Definition Date.h:33
unsigned short a
Definition Arch.h:364
Easy-to use interface to the ZYPP dependency resolver.
std::list< ChangelogEntry > Changelog
List of ChangelogEntry.
Definition Changelog.h:54