libzypp
11.13.5
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
//
73
class
HistoryLogReader
74
{
75
public
:
76
typedef
function< bool( const HistoryItem::Ptr & )>
ProcessItem
;
77
78
public
:
79
HistoryLogReader
(
const
Pathname & repo_file,
80
const
ProcessItem
& callback );
81
~HistoryLogReader
();
82
88
void
readAll
(
89
const
ProgressData::ReceiverFnc
&progress =
ProgressData::ReceiverFnc
() );
90
99
void
readFrom
(
const
Date
& date,
100
const
ProgressData::ReceiverFnc
&progress =
ProgressData::ReceiverFnc
() );
101
121
void
readFromTo
(
const
Date
& fromDate,
const
Date
& toDate,
122
const
ProgressData::ReceiverFnc
&progress =
ProgressData::ReceiverFnc
() );
123
129
void
setIgnoreInvalidItems
(
bool
ignoreInvalid =
false
);
130
136
bool
ignoreInvalidItems
()
const
;
137
138
private
:
140
class
Impl
;
141
RW_pointer<Impl,rw_pointer::Scoped<Impl>
>
_pimpl
;
142
};
144
145
147
}
// namespace parser
150
}
// namespace zypp
152
153
#endif
/* ZYPP_PARSER_HISTORYLOGREADER_H_ */
zypp
parser
HistoryLogReader.h
Generated by
1.8.1