Track changing files or directories.
static RepoStatus fromCookieFileUseMtime(const Pathname &path)
Reads the status from a cookie file but uses the files mtime.
RWCOW_pointer< Impl > _pimpl
Implementation.
static RepoStatus fromCookieFile(const Pathname &path)
Reads the status from a cookie file.
Date timestamp() const
The time the data were changed the last time.
bool empty() const
Whether the status is empty (empty checksum).
friend bool operator==(const RepoStatus &lhs, const RepoStatus &rhs)
relates: RepoStatus Whether 2 RepoStatus refer to the same content checksum
friend RepoStatus operator&&(const RepoStatus &lhs, const RepoStatus &rhs)
relates: RepoStatus Combine two RepoStatus (combined checksum and newest timestamp)
friend std::ostream & operator<<(std::ostream &str, const RepoStatus &obj)
relates: RepoStatus Stream output
void saveToCookieFile(const Pathname &path_r) const
Save the status information to a cookie file.
RepoStatus(RepoStatus &&) noexcept=default
RepoStatus(const RepoStatus &)=default
RepoStatus implementation.