libzypp 17.37.17
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/Globals.h>
20#include <zypp/Date.h>
21
23namespace zypp
24{
25
27 //
28 // CLASS NAME : ChangelogEntry
29 //
33 {
34 public:
36 ChangelogEntry( const Date & d,
37 std::string a,
38 std::string t )
39 : _date( d ), _author(std::move( a )), _text(std::move( t ))
40 {};
41
44 Date date() const { return _date; }
45 std::string author() const { return _author; }
46 std::string text() const { return _text; }
47
48 private:
50 std::string _author;
51 std::string _text;
52 };
53
55 using Changelog = std::list<ChangelogEntry>;
56
58 std::ostream & operator<<( std::ostream & out, const ChangelogEntry & obj ) ZYPP_API;
59
61} // namespace zypp
63
64#endif // ZYPP_CHANGELOG_H
std::string text() const
Definition Changelog.h:46
Date date() const
Definition Changelog.h:44
std::string _text
Definition Changelog.h:51
std::string _author
Definition Changelog.h:50
ChangelogEntry(const Date &d, std::string a, std::string t)
Default ctor.
Definition Changelog.h:36
std::ostream & operator<<(std::ostream &out, const ChangelogEntry &obj) ZYPP_API
std::string author() const
Definition Changelog.h:45
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.
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition Arch.h:247
std::list< ChangelogEntry > Changelog
List of ChangelogEntry.
Definition Changelog.h:55