jigdo API
JigdoDesc::WrittenFile Class Reference
Like MatchedFile - used only in .tmp files to express that the file data was successfully written to the image. More...
#include <mkimage.hh>

Public Member Functions | |
WrittenFile (uint64 o, uint64 s, const RsyncSum64 &r, const MD5 &m) | |
bool | operator== (const JigdoDesc &x) const |
Type | type () const |
Entry type of JigdoDesc child class. | |
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
Like MatchedFile - used only in .tmp files to express that the file data was successfully written to the image.NB: Because this derives from MatchedFile and because of the implementation of JigdoDesc::operator==, MatchedFile's and WrittenFile's will compare equal if their data fields are identical.
Constructor & Destructor Documentation
JigdoDesc::WrittenFile::WrittenFile | ( | uint64 | o, | |
uint64 | s, | |||
const RsyncSum64 & | r, | |||
const MD5 & | m | |||
) | [inline] |
Member Function Documentation
bool JigdoDesc::WrittenFile::operator== | ( | const JigdoDesc & | x | ) | const [inline, virtual] |
Reimplemented from JigdoDesc::MatchedFile.
References JigdoDesc::MatchedFile::md5(), JigdoDesc::MatchedFile::offset(), and JigdoDesc::MatchedFile::size().
Type JigdoDesc::WrittenFile::type | ( | ) | const [inline, virtual] |
Entry type of JigdoDesc child class.
Reimplemented from JigdoDesc::MatchedFile.
References JigdoDesc::WRITTEN_FILE.
ostream & JigdoDesc::WrittenFile::put | ( | ostream & | s | ) | const [virtual] |
Output human-readable summary.
Reimplemented from JigdoDesc::MatchedFile.
References JigdoDesc::MatchedFile::md5(), JigdoDesc::MatchedFile::offset(), JigdoDesc::MatchedFile::rsync(), JigdoDesc::MatchedFile::size(), and SIZE_WIDTH.
Iterator JigdoDesc::WrittenFile::serialize | ( | Iterator | i | ) | const [inline] |
Reimplemented from JigdoDesc::MatchedFile.
References JigdoDesc::MatchedFile::md5(), JigdoDesc::MatchedFile::rsync(), serialize1(), serialize6(), JigdoDesc::MatchedFile::size(), and JigdoDesc::WRITTEN_FILE.
Referenced by JigdoDescVec::put().
size_t JigdoDesc::WrittenFile::serialSizeOf | ( | ) | const [inline, virtual] |
There are no virtual templates, so this wouldn't work: template<class Iterator> virtual Iterator serialize(Iterator i) const;
.
Reimplemented from JigdoDesc::MatchedFile.
The documentation for this class was generated from the following files:
Generated on Tue Sep 23 14:27:42 2008 for jigdo by
