jigdo API
Last update by Admin on 2010-05-23
IOSource< SomeIO > Class Template Reference
In your job class, use the template to generate a public member:. More...
#include <job.hh>
Inheritance diagram for IOSource< SomeIO >:

Public Member Functions | |
IOSource () | |
~IOSource () | |
Does not delete the listeners. | |
void | addListener (SomeIO &l) |
Add an IO object which listens to calls going via this IOSource. | |
const IList< SomeIO > & | listeners () const |
IList< SomeIO > & | listeners () |
bool | empty () const |
Detailed Description
template<class SomeIO>
class IOSource< SomeIO >
In your job class, use the template to generate a public member:.
class MyJob { public: class IO { ... }; IOSource<IO> io; MyJob(IO* ioPtr, ...) : io(), ... { io.addListener(ioPtr); ... } };
Constructor & Destructor Documentation
Member Function Documentation
template<class SomeIO>
void IOSource< SomeIO >::addListener | ( | SomeIO & | l | ) | [inline] |
Add an IO object which listens to calls going via this IOSource.
NB, this adds l to the *front* of the list, so it will be called before listeners that were registered earlier.
template<class SomeIO>
bool IOSource< SomeIO >::empty | ( | ) | const [inline] |
The documentation for this class was generated from the following file:
- job/job.hh
Generated on Tue Sep 23 14:27:42 2008 for jigdo by
