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
22
namespace
zypp
23
{
24
26
//
27
// CLASS NAME : ChangelogEntry
28
//
31
class
ChangelogEntry
32
{
33
public
:
35
ChangelogEntry
(
const
Date
&
d
,
36
std::string
a
,
37
std::string
t
)
38
:
_date
(
d
),
_author
(
std
::move(
a
)),
_text
(
std
::move(
t
))
39
{};
41
~ChangelogEntry
()
42
{}
43
Date
date
()
const
{
return
_date
; }
44
std::string
author
()
const
{
return
_author
; }
45
std::string
text
()
const
{
return
_text
; }
46
47
private
:
48
Date
_date
;
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
zypp::AutoDispose
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Definition
AutoDispose.h:95
zypp::ChangelogEntry
Single entry in a change log.
Definition
Changelog.h:32
zypp::ChangelogEntry::~ChangelogEntry
~ChangelogEntry()
Dtor.
Definition
Changelog.h:41
zypp::ChangelogEntry::text
std::string text() const
Definition
Changelog.h:45
zypp::ChangelogEntry::date
Date date() const
Definition
Changelog.h:43
zypp::ChangelogEntry::_text
std::string _text
Definition
Changelog.h:50
zypp::ChangelogEntry::_author
std::string _author
Definition
Changelog.h:49
zypp::ChangelogEntry::ChangelogEntry
ChangelogEntry(const Date &d, std::string a, std::string t)
Default ctor.
Definition
Changelog.h:35
zypp::ChangelogEntry::author
std::string author() const
Definition
Changelog.h:44
zypp::ChangelogEntry::_date
Date _date
Definition
Changelog.h:48
zypp::ChangelogEntry::operator<<
std::ostream & operator<<(std::ostream &out, const ChangelogEntry &obj)
zypp::Date
Store and operate on date (time_t).
Definition
Date.h:33
a
unsigned short a
Definition
mediablocklist.cc:126
std
Definition
Arch.h:364
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition
CodePitfalls.doc:2
zypp::Changelog
std::list< ChangelogEntry > Changelog
List of ChangelogEntry.
Definition
Changelog.h:54
zypp
Changelog.h
Generated by
1.10.0