libzypp
17.34.1
RepoStatus.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
12
#ifndef ZYPP2_REPOSTATUS_H
13
#define ZYPP2_REPOSTATUS_H
14
15
#include <iosfwd>
16
#include <
zypp/base/PtrTypes.h
>
17
#include <
zypp/CheckSum.h
>
18
#include <
zypp/Date.h
>
19
21
namespace
zypp
22
{
23
24
class
RepoInfo;
25
40
class
ZYPP_API
RepoStatus
41
{
42
friend
std::ostream &
operator<<
( std::ostream &
str
,
const
RepoStatus
& obj );
43
friend
RepoStatus
operator&&
(
const
RepoStatus
& lhs,
const
RepoStatus
& rhs );
44
friend
bool
operator==
(
const
RepoStatus
& lhs,
const
RepoStatus
& rhs );
45
46
public
:
48
RepoStatus
();
57
explicit
RepoStatus
(
const
Pathname
& path_r );
58
60
explicit
RepoStatus
(
const
RepoInfo
& info_r );
61
63
RepoStatus
( std::string checksum_r,
Date
timestamp_r );
64
66
~
RepoStatus
();
67
68
RepoStatus
(
const
RepoStatus
&) =
default
;
69
RepoStatus
(
RepoStatus
&&) noexcept =
default
;
70
RepoStatus
&operator=(
const
RepoStatus
&) =
default
;
71
RepoStatus
&operator=(
RepoStatus
&&) noexcept =
default
;
72
73
public
:
79
static
RepoStatus
fromCookieFile(
const
Pathname
& path );
80
89
static
RepoStatus
fromCookieFileUseMtime(
const
Pathname
& path );
90
95
void
saveToCookieFile(
const
Pathname
& path_r )
const
;
96
97
public
:
99
bool
empty()
const
;
100
102
Date
timestamp()
const
;
103
104
public
:
105
struct
Impl
;
106
private
:
107
RWCOW_pointer<Impl>
_pimpl
;
108
};
110
112
std::ostream &
operator<<
( std::ostream &
str
,
const
RepoStatus
& obj )
ZYPP_API
;
113
115
RepoStatus
operator&&
(
const
RepoStatus
& lhs,
const
RepoStatus
& rhs )
ZYPP_API
;
116
118
bool
operator==
(
const
RepoStatus
& lhs,
const
RepoStatus
& rhs )
ZYPP_API
;
119
121
inline
bool
operator!=
(
const
RepoStatus
& lhs,
const
RepoStatus
& rhs )
122
{
return
! ( lhs == rhs ); }
123
125
}
// namespace zypp
127
#endif // ZYPP2_REPOSTATUS_H
PtrTypes.h
str
String related utilities and Regular expression matching.
zypp::operator<<
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
Definition:
SerialNumber.cc:52
zypp::RepoInfo
What is known about a repository.
Definition:
RepoInfo.h:71
zypp::operator==
bool operator==(const SetRelation::Enum &lhs, const SetCompare &rhs)
Definition:
SetRelationMixin.h:84
CheckSum.h
zypp::Date
Store and operate on date (time_t).
Definition:
Date.h:32
zypp::ZYPP_API
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition:
ResTraits.h:93
zypp::RepoStatus::operator!=
bool operator!=(const RepoStatus &lhs, const RepoStatus &rhs)
Definition:
RepoStatus.h:121
zypp::RepoStatus::Impl
RepoStatus implementation.
Definition:
RepoStatus.cc:57
zypp::RepoStatus::_pimpl
RWCOW_pointer< Impl > _pimpl
Implementation.
Definition:
RepoStatus.h:105
zypp::RepoStatus
Track changing files or directories.
Definition:
RepoStatus.h:40
zypp::operator &&
RepoStatus operator &&(const RepoStatus &lhs, const RepoStatus &rhs)
Definition:
RepoStatus.cc:243
zypp::filesystem::Pathname
Pathname.
Definition:
Pathname.h:46
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition:
Application.cc:19
zypp::RWCOW_pointer< Impl >
Date.h
zypp
RepoStatus.h
Generated by
1.8.14