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