zypp::RepoStatus Class Reference

#include <RepoStatus.h>

List of all members.

Public Member Functions

std::string checksum () const
 Checksum of the repository.
Date timestamp () const
 timestamp of the repository.
bool empty () const
RepoStatussetChecksum (const std::string &checksum)
 set the repository checksum
RepoStatussetTimestamp (const Date &timestamp)
 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...


Detailed Description

Local facts about a repository This class represents the status of a repository on the system.

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.


Constructor & Destructor Documentation

zypp::RepoStatus::RepoStatus (  ) 

Default ctor.

Definition at line 69 of file RepoStatus.cc.

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.

Note:
construct from a non existing file will result in an empty status

Definition at line 81 of file RepoStatus.cc.

References _pimpl, and zypp::filesystem::sha1sum().

zypp::RepoStatus::~RepoStatus (  ) 

Dtor.

Definition at line 78 of file RepoStatus.cc.


Member Function Documentation

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

See also:
checksum
Parameters:
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

See also:
timestamp
Parameters:
timestamp 

Definition at line 103 of file RepoStatus.cc.

References _pimpl.

Referenced by zypp::parser::plaindir::dirStatus(), zypp::operator &&(), and zypp::cache::CacheStore::repositoryStatus().


Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const RepoStatus obj 
) [friend]

Stream output.

Definition at line 133 of file RepoStatus.cc.


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 19:23:16 2007 for libzypp by  doxygen 1.5.3