jigdo API
Job::MakeImageDl::Child Class Reference
Each Child object stands for one DataSource (i.e. SingleUrl/CachedUrl) which the MakeImageDl starts as a "child download" of itself. More...
#include <makeimagedl.hh>

Public Member Functions | |
~Child () | |
MakeImageDl * | master () const |
DataSource * | source () const |
void | deleteSource () |
Delete source object; subsequently, source()==0. | |
Child (MakeImageDl *m, ChildList *listHead, DataSource *src, const MD5 *expectedContent) | |
Only to be called by MakeImageDl and its helper classes (JigdoIO). | |
Friends | |
class | MakeImageDl |
Detailed Description
Each Child object stands for one DataSource (i.e. SingleUrl/CachedUrl) which the MakeImageDl starts as a "child download" of itself.The Child maintains a private pointer to a DataSource. It also listens to what happens to the DataSource and informs the parent MakeImageDl e.g. of succeeded downloads.
Used to store additional information which the MakeImageDl needs, e.g. the filename in the cache.
The ctor and dtor automatically add/remove the Child in its master MakeImageDl's list of children. Careful, this class derives twice from IListBase, once via ChildListBase, once via Job::DataSource::IO.
Constructor & Destructor Documentation
Job::MakeImageDl::Child::~Child | ( | ) | [inline] |
References deleteSource(), and Paranoid.
Job::MakeImageDl::Child::Child | ( | MakeImageDl * | m, | |
ChildList * | listHead, | |||
DataSource * | src, | |||
const MD5 * | expectedContent | |||
) | [inline] |
Only to be called by MakeImageDl and its helper classes (JigdoIO).
- Returns:
- The JigdoIO or similar owned by this object. null after init
- Parameters:
-
m Master MakeImageDl listHead Pointer to master->children src SingleUrl or other source of downloaded data expectedContent null if no md5sum known, or non-null ptr to expected checksum; is copied away.
References Paranoid, and IList< T >::push_back().
Member Function Documentation
MakeImageDl* Job::MakeImageDl::Child::master | ( | ) | const [inline] |
Job::DataSource * Job::MakeImageDl::Child::source | ( | ) | const [inline] |
- Returns:
- The SingleUrl/CachedUrl owned by this object.
Referenced by Job::MakeImageDl::childFailed(), Job::MakeImageDl::MakeImageDl(), memData(), Job::JigdoIO::source(), testLoop(), testMinimal(), testNoMD5(), and testSimple().
void Job::MakeImageDl::Child::deleteSource | ( | ) | [inline] |
Friends And Related Function Documentation
friend class MakeImageDl [friend] |
The documentation for this class was generated from the following files:
- job/makeimagedl.hh
- job/jigdo-io-test.cc
- job/makeimagedl.cc
Generated on Tue Sep 23 14:27:43 2008 for jigdo by
