libzypp
17.25.6
|
Track changing files or directories. More...
#include <RepoStatus.h>
Classes | |
struct | Impl |
RepoStatus implementation. More... | |
Public Member Functions | |
RepoStatus () | |
Default ctor. More... | |
RepoStatus (const Pathname &path_r) | |
Compute status for single file or directory (recursively) More... | |
RepoStatus (const RepoInfo &info_r) | |
Compute status of a RepoInfo to track changes requiring a refresh. More... | |
RepoStatus (std::string checksum_r, Date timestamp_r) | |
Explicitly specify checksum string and timestamp to use. More... | |
~RepoStatus () | |
Dtor. More... | |
void | saveToCookieFile (const Pathname &path_r) const |
Save the status information to a cookie file. More... | |
bool | empty () const |
Whether the status is empty (empty checksum) More... | |
Date | timestamp () const |
The time the data were changed the last time. More... | |
Static Public Member Functions | |
static RepoStatus | fromCookieFile (const Pathname &path) |
Reads the status from a cookie file. More... | |
Private Attributes | |
RWCOW_pointer< Impl > | _pimpl |
Implementation. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &str, const RepoStatus &obj) |
RepoStatus | operator&& (const RepoStatus &lhs, const RepoStatus &rhs) |
bool | operator== (const RepoStatus &lhs, const RepoStatus &rhs) |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const RepoStatus &obj) |
Stream output. More... | |
RepoStatus | operator&& (const RepoStatus &lhs, const RepoStatus &rhs) |
Combine two RepoStatus (combined checksum and newest timestamp) More... | |
bool | operator== (const RepoStatus &lhs, const RepoStatus &rhs) |
Whether 2 RepoStatus refer to the same content checksum. More... | |
bool | operator!= (const RepoStatus &lhs, const RepoStatus &rhs) |
Whether 2 RepoStatus refer to different content checksums. More... | |
Track changing files or directories.
Compute timestamp and checksum for individual files or directories (recursively) to track changing content.
The timestamp most probably denotes the time the data were changed the last time, that's why it is exposed.
The checksum however is an implementation detail and of no use outside this class. operator== tells if the checksums of two rRepoStatus are the same.
Definition at line 40 of file RepoStatus.h.
zypp::RepoStatus::RepoStatus | ( | ) |
Default ctor.
Definition at line 155 of file RepoStatus.cc.
|
explicit |
Compute status for single file or directory (recursively)
Definition at line 159 of file RepoStatus.cc.
|
explicit |
Compute status of a RepoInfo to track changes requiring a refresh.
Definition at line 178 of file RepoStatus.cc.
zypp::RepoStatus::RepoStatus | ( | std::string | checksum_r, |
Date | timestamp_r | ||
) |
Explicitly specify checksum string and timestamp to use.
Definition at line 184 of file RepoStatus.cc.
zypp::RepoStatus::~RepoStatus | ( | ) |
Dtor.
Definition at line 190 of file RepoStatus.cc.
|
static |
Reads the status from a cookie file.
Definition at line 193 of file RepoStatus.cc.
void zypp::RepoStatus::saveToCookieFile | ( | const Pathname & | path_r | ) | const |
Save the status information to a cookie file.
Exception | if the file can't be saved |
Definition at line 211 of file RepoStatus.cc.
bool zypp::RepoStatus::empty | ( | ) | const |
Whether the status is empty (empty checksum)
Definition at line 221 of file RepoStatus.cc.
Date zypp::RepoStatus::timestamp | ( | ) | const |
The time the data were changed the last time.
Definition at line 224 of file RepoStatus.cc.
|
friend |
Definition at line 227 of file RepoStatus.cc.
|
friend |
Definition at line 230 of file RepoStatus.cc.
|
friend |
Definition at line 237 of file RepoStatus.cc.
|
related |
Stream output.
Definition at line 227 of file RepoStatus.cc.
|
related |
Combine two RepoStatus (combined checksum and newest timestamp)
Definition at line 230 of file RepoStatus.cc.
|
related |
Whether 2 RepoStatus refer to the same content checksum.
Definition at line 237 of file RepoStatus.cc.
|
related |
Whether 2 RepoStatus refer to different content checksums.
Definition at line 104 of file RepoStatus.h.
|
private |