#include <RepoStatus.h>
Public Member Functions | |
| std::string | checksum () const |
| Checksum of the repository. | |
| Date | timestamp () const |
| timestamp of the repository. | |
| bool | empty () const |
| RepoStatus & | setChecksum (const std::string &checksum) |
| set the repository checksum | |
| RepoStatus & | setTimestamp (const Date ×tamp) |
| set the repository timestamp | |
| RepoStatus () | |
| Default ctor. | |
| RepoStatus (const Pathname &file) | |
| ~RepoStatus () | |
| Dtor. | |
Private Attributes | |
| RWCOW_pointer< Impl > | _pimpl |
| Pointer to implementation. | |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const RepoStatus &obj) |
| Stream output. | |
Classes | |
| struct | Impl |
| RepoStatus implementation. More... | |
Anything that is not provided on the metadata files, like the timestamp of the downloaded metadata, and its checksum.
Definition at line 37 of file RepoStatus.h.
| zypp::RepoStatus::RepoStatus | ( | ) |
| zypp::RepoStatus::RepoStatus | ( | const Pathname & | file | ) |
Status from a single file As most repository state is represented by the status of the index file, you can construct the status from a file.
Definition at line 81 of file RepoStatus.cc.
References _pimpl, and zypp::filesystem::sha1sum().
| zypp::RepoStatus::~RepoStatus | ( | ) |
| string zypp::RepoStatus::checksum | ( | ) | const |
Checksum of the repository.
Usually the checksum of the index, but any checksum that changes when the repository changes in any way is sufficient.
Definition at line 109 of file RepoStatus.cc.
References _pimpl.
Referenced by zypp::RepoManager::buildCache(), zypp::RepoManager::checkIfToRefreshMetadata(), zypp::operator &&(), and zypp::RepoManager::refreshMetadata().
| Date zypp::RepoStatus::timestamp | ( | ) | const |
timestamp of the repository.
If the repository changes, it has to be updated as well with the new timestamp.
Definition at line 112 of file RepoStatus.cc.
References _pimpl.
Referenced by zypp::RepoManager::checkIfToRefreshMetadata(), and zypp::operator &&().
| bool zypp::RepoStatus::empty | ( | ) | const |
Is the status empty? An empty status means that the status was not calculated.
Definition at line 92 of file RepoStatus.cc.
References _pimpl.
Referenced by zypp::RepoManager::buildCache().
| RepoStatus& zypp::RepoStatus::setChecksum | ( | const std::string & | checksum | ) |
set the repository checksum
| checksum |
Referenced by zypp::parser::plaindir::dirStatus(), zypp::operator &&(), and zypp::cache::CacheStore::repositoryStatus().
| RepoStatus & zypp::RepoStatus::setTimestamp | ( | const Date & | timestamp | ) |
set the repository timestamp
| timestamp |
Definition at line 103 of file RepoStatus.cc.
References _pimpl.
Referenced by zypp::parser::plaindir::dirStatus(), zypp::operator &&(), and zypp::cache::CacheStore::repositoryStatus().
| std::ostream & operator<< | ( | std::ostream & | str, | |
| const RepoStatus & | obj | |||
| ) | [friend] |
RWCOW_pointer<Impl> zypp::RepoStatus::_pimpl [private] |
Pointer to implementation.
Definition at line 103 of file RepoStatus.h.
Referenced by checksum(), empty(), zypp::operator<<(), RepoStatus(), setTimestamp(), and timestamp().
1.5.3