jigdo API

JigdoDesc::MatchedFile Class Reference

Info about data that *was* matched by an input file. More...

#include <mkimage.hh>

Inheritance diagram for JigdoDesc::MatchedFile:

JigdoDesc JigdoDesc::WrittenFile

List of all members.


Public Member Functions

 MatchedFile (uint64 o, uint64 s, const RsyncSum64 &r, const MD5 &m)
 MatchedFile (uint64 o, uint64 s, const RsyncSum64 &r, const MD5Sum &m)
bool operator== (const JigdoDesc &x) const
Type type () const
 Entry type of JigdoDesc child class.
uint64 offset () const
uint64 size () const
 Size of image area or whole image.
const MD5md5 () const
const RsyncSum64rsync () const
virtual ostream & put (ostream &s) const
 Output human-readable summary.
template<class Iterator>
Iterator serialize (Iterator i) const
size_t serialSizeOf () const
 There are no virtual templates, so this wouldn't work: template<class Iterator> virtual Iterator serialize(Iterator i) const; .

Detailed Description

Info about data that *was* matched by an input file.

Constructor & Destructor Documentation

JigdoDesc::MatchedFile::MatchedFile ( uint64  o,
uint64  s,
const RsyncSum64 r,
const MD5 m 
) [inline]

JigdoDesc::MatchedFile::MatchedFile ( uint64  o,
uint64  s,
const RsyncSum64 r,
const MD5Sum m 
) [inline]


Member Function Documentation

bool JigdoDesc::MatchedFile::operator== ( const JigdoDesc x  )  const [inline, virtual]

Implements JigdoDesc.

Reimplemented in JigdoDesc::WrittenFile.

References md5(), offset(), and size().

Type JigdoDesc::MatchedFile::type (  )  const [inline, virtual]

Entry type of JigdoDesc child class.

Implements JigdoDesc.

Reimplemented in JigdoDesc::WrittenFile.

References JigdoDesc::MATCHED_FILE.

Referenced by JigdoDesc::listMissing().

uint64 JigdoDesc::MatchedFile::offset (  )  const [inline]

uint64 JigdoDesc::MatchedFile::size (  )  const [inline, virtual]

const RsyncSum64& JigdoDesc::MatchedFile::rsync (  )  const [inline]

ostream & JigdoDesc::MatchedFile::put ( ostream &  s  )  const [virtual]

Output human-readable summary.

Implements JigdoDesc.

Reimplemented in JigdoDesc::WrittenFile.

References md5(), offset(), rsync(), size(), and SIZE_WIDTH.

template<class Iterator>
Iterator JigdoDesc::MatchedFile::serialize ( Iterator  i  )  const [inline]

size_t JigdoDesc::MatchedFile::serialSizeOf (  )  const [inline, virtual]

There are no virtual templates, so this wouldn't work: template<class Iterator> virtual Iterator serialize(Iterator i) const; .

Implements JigdoDesc.

Reimplemented in JigdoDesc::WrittenFile.


The documentation for this class was generated from the following files:

Generated on Tue Sep 23 14:27:42 2008 for jigdo by  doxygen 1.5.6