libzypp  17.32.4
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  //
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  {};
42  {}
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
~ChangelogEntry()
Dtor.
Definition: Changelog.h:41
ChangelogEntry(const Date &d, std::string a, std::string t)
Default ctor.
Definition: Changelog.h:35
Single entry in a change log.
Definition: Changelog.h:31
std::list< ChangelogEntry > Changelog
List of ChangelogEntry.
Definition: Changelog.h:54
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
Definition: SerialNumber.cc:52
Definition: Arch.h:363
std::string _author
Definition: Changelog.h:49
Date date() const
Definition: Changelog.h:43
Store and operate on date (time_t).
Definition: Date.h:32
std::string text() const
Definition: Changelog.h:45
unsigned short a
std::string author() const
Definition: Changelog.h:44
Easy-to use interface to the ZYPP dependency resolver.
Definition: Application.cc:19
std::string _text
Definition: Changelog.h:50