zypp::OnMediaLocation Class Reference

Describes a path on a certain media amongs as the information required to download it, like its media number, checksum and size. More...

#include <OnMediaLocation.h>

List of all members.

Public Member Functions

 OnMediaLocation ()
 Default ctor indicating no media access.
 OnMediaLocation (const Pathname &filename_r, unsigned medianr_r=1)
 Ctor taking a filename and media number (defaults to 1).
unsigned medianr () const
const Pathname & filename () const
const CheckSum & checksum () const
const ByteCount & downloadSize () const
const ByteCount & openSize () const
const CheckSum & openChecksum () const
OnMediaLocation & unsetLocation ()
 Unset filename and set medianr to 0.
OnMediaLocation & setLocation (const Pathname &val_r, unsigned mediaNumber_r=1)
 Set filename and media number (defaults to 1).
OnMediaLocation & setDownloadSize (const ByteCount &val_r)
 Set the files size.
OnMediaLocation & setChecksum (const CheckSum &val_r)
 Set the files checksum.
OnMediaLocation & setOpenSize (const ByteCount &val_r)
 Set the files open (uncompressed) size.
OnMediaLocation & setOpenChecksum (const CheckSum &val_r)
 Set the files open (uncompressed) checksum.
ZYPP_DEPRECATED
OnMediaLocation & 
xsetMedianr (unsigned val_r)
ZYPP_DEPRECATED
OnMediaLocation & 
xsetFilename (const Pathname &val_r)
OnMediaLocation & changeMedianr (unsigned val_r)
 Individual manipulation of medianr.
OnMediaLocation & changeFilename (const Pathname &val_r)
 Individual manipulation of filename.

Private Attributes

unsigned _medianr
Pathname _filename
CheckSum _checksum
ByteCount _downloadsize
ByteCount _opendownloadsize
CheckSum _openchecksum

Friends

std::ostream & operator<< (std::ostream &str, const OnMediaLocation &obj)
 Stream output.


Detailed Description

Describes a path on a certain media amongs as the information required to download it, like its media number, checksum and size.

It does not specify the URI of the file.

Media number 0 usually indicates no media access.

Definition at line 37 of file OnMediaLocation.h.


Constructor & Destructor Documentation

zypp::OnMediaLocation::OnMediaLocation (  )  [inline]

Default ctor indicating no media access.

Definition at line 43 of file OnMediaLocation.h.

zypp::OnMediaLocation::OnMediaLocation ( const Pathname &  filename_r,
unsigned  medianr_r = 1 
) [inline]

Ctor taking a filename and media number (defaults to 1).

Definition at line 48 of file OnMediaLocation.h.


Member Function Documentation

unsigned zypp::OnMediaLocation::medianr (  )  const [inline]

Definition at line 54 of file OnMediaLocation.h.

References _medianr.

Referenced by zypp::detail::SrcPackageImplIf::mediaNr(), zypp::detail::PackageImplIf::mediaNr(), zypp::operator<<(), and zypp::MediaSetAccess::provideFile().

const Pathname& zypp::OnMediaLocation::filename (  )  const [inline]

Definition at line 55 of file OnMediaLocation.h.

References _filename.

Referenced by zypp::detail::ScriptImplIf::doAvailable(), zypp::repo::doProvideScript(), zypp::repo::doProvideSrcPackage(), zypp::operator<<(), zypp::repo::RepoMediaAccess::provideFile(), zypp::MediaSetAccess::provideFile(), zypp::repo::yum::Downloader::repomd_Callback(), zypp::parser::yum::RepoParser::Impl::repomd_CB(), zypp::repo::PackageProvider::tryDelta(), zypp::repo::PackageProvider::tryPatch(), and zypp::detail::ScriptImplIf::undoAvailable().

const CheckSum& zypp::OnMediaLocation::checksum (  )  const [inline]

Definition at line 56 of file OnMediaLocation.h.

References _checksum.

Referenced by zypp::Package::checksum(), zypp::Fetcher::Impl::enqueueDigested(), zypp::operator<<(), and zypp::repo::RepoMediaAccess::provideFile().

const ByteCount& zypp::OnMediaLocation::downloadSize (  )  const [inline]

Definition at line 57 of file OnMediaLocation.h.

References _downloadsize.

Referenced by zypp::detail::SrcPackageImplIf::downloadSize(), zypp::detail::PackageImplIf::downloadSize(), zypp::operator<<(), zypp::repo::PackageProvider::tryDelta(), and zypp::repo::PackageProvider::tryPatch().

const ByteCount& zypp::OnMediaLocation::openSize (  )  const [inline]

Definition at line 58 of file OnMediaLocation.h.

References _opendownloadsize.

const CheckSum& zypp::OnMediaLocation::openChecksum (  )  const [inline]

Definition at line 59 of file OnMediaLocation.h.

References _openchecksum.

OnMediaLocation& zypp::OnMediaLocation::unsetLocation (  )  [inline]

Unset filename and set medianr to 0.

Definition at line 63 of file OnMediaLocation.h.

References _filename, and _medianr.

OnMediaLocation& zypp::OnMediaLocation::setLocation ( const Pathname &  val_r,
unsigned  mediaNumber_r = 1 
) [inline]

Set filename and media number (defaults to 1).

Definition at line 67 of file OnMediaLocation.h.

References _filename, and _medianr.

Referenced by zypp::parser::yum::RepomdFileReader::Impl::consumeNode(), and zypp::parser::yum::PatchesFileReader::Impl::consumeNode().

OnMediaLocation& zypp::OnMediaLocation::setDownloadSize ( const ByteCount &  val_r  )  [inline]

Set the files size.

Definition at line 72 of file OnMediaLocation.h.

References _downloadsize.

Referenced by zypp::target::rpm::RPMPackageImpl::RPMPackageImpl().

OnMediaLocation& zypp::OnMediaLocation::setChecksum ( const CheckSum &  val_r  )  [inline]

Set the files checksum.

Definition at line 76 of file OnMediaLocation.h.

References _checksum.

Referenced by zypp::parser::yum::RepomdFileReader::Impl::consumeNode(), zypp::parser::yum::PatchesFileReader::Impl::consumeNode(), and zypp::repo::susetags::Downloader::download().

OnMediaLocation& zypp::OnMediaLocation::setOpenSize ( const ByteCount &  val_r  )  [inline]

Set the files open (uncompressed) size.

Definition at line 80 of file OnMediaLocation.h.

References _opendownloadsize.

OnMediaLocation& zypp::OnMediaLocation::setOpenChecksum ( const CheckSum &  val_r  )  [inline]

Set the files open (uncompressed) checksum.

Definition at line 84 of file OnMediaLocation.h.

References _openchecksum.

ZYPP_DEPRECATED OnMediaLocation& zypp::OnMediaLocation::xsetMedianr ( unsigned  val_r  )  [inline]

Deprecated:
use setLocation or changeMedianr

Definition at line 89 of file OnMediaLocation.h.

References changeMedianr().

ZYPP_DEPRECATED OnMediaLocation& zypp::OnMediaLocation::xsetFilename ( const Pathname &  val_r  )  [inline]

Deprecated:
use setLocation or changeFilename

Definition at line 92 of file OnMediaLocation.h.

References changeFilename().

OnMediaLocation& zypp::OnMediaLocation::changeMedianr ( unsigned  val_r  )  [inline]

Individual manipulation of medianr.

Using setLocation is prefered.

Definition at line 98 of file OnMediaLocation.h.

References _medianr.

Referenced by xsetMedianr().

OnMediaLocation& zypp::OnMediaLocation::changeFilename ( const Pathname &  val_r  )  [inline]

Individual manipulation of filename.

Using setLocation is prefered.

Definition at line 104 of file OnMediaLocation.h.

References _filename.

Referenced by xsetFilename().


Friends And Related Function Documentation

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

Stream output.

Definition at line 28 of file OnMediaLocation.cc.


Member Data Documentation

unsigned zypp::OnMediaLocation::_medianr [private]

Definition at line 108 of file OnMediaLocation.h.

Referenced by changeMedianr(), medianr(), setLocation(), and unsetLocation().

Pathname zypp::OnMediaLocation::_filename [private]

Definition at line 109 of file OnMediaLocation.h.

Referenced by changeFilename(), filename(), setLocation(), and unsetLocation().

CheckSum zypp::OnMediaLocation::_checksum [private]

Definition at line 110 of file OnMediaLocation.h.

Referenced by checksum(), and setChecksum().

ByteCount zypp::OnMediaLocation::_downloadsize [private]

Definition at line 111 of file OnMediaLocation.h.

Referenced by downloadSize(), and setDownloadSize().

ByteCount zypp::OnMediaLocation::_opendownloadsize [private]

Definition at line 112 of file OnMediaLocation.h.

Referenced by openSize(), and setOpenSize().

CheckSum zypp::OnMediaLocation::_openchecksum [private]

Definition at line 113 of file OnMediaLocation.h.

Referenced by openChecksum(), and setOpenChecksum().


The documentation for this class was generated from the following file:
Generated on Sun Oct 14 22:31:01 2007 for libzypp by  doxygen 1.5.3