libzypp  11.13.5
HistoryLogReader.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
9 
13 #ifndef ZYPP_PARSER_HISTORYLOGREADER_H_
14 #define ZYPP_PARSER_HISTORYLOGREADER_H_
15 
16 #include "zypp/base/PtrTypes.h"
17 #include "zypp/ProgressData.h"
18 #include "zypp/Pathname.h"
19 
20 #include "zypp/HistoryLogData.h"
21 
23 namespace zypp
24 {
25 
26  class Date;
27 
29  namespace parser
30  {
31 
32 
34  //
35  // CLASS NAME: HistoryLogReader
36  //
74  {
75  public:
76  typedef function< bool( const HistoryItem::Ptr & )> ProcessItem;
77 
78  public:
79  HistoryLogReader( const Pathname & repo_file,
80  const ProcessItem & callback );
82 
88  void readAll(
90 
99  void readFrom( const Date & date,
101 
121  void readFromTo( const Date & fromDate, const Date & toDate,
123 
129  void setIgnoreInvalidItems( bool ignoreInvalid = false );
130 
136  bool ignoreInvalidItems() const;
137 
138  private:
140  class Impl;
142  };
144 
145 
147 } // namespace parser
150 } // namespace zypp
152 
153 #endif /* ZYPP_PARSER_HISTORYLOGREADER_H_ */