#include <job.hh>

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 |
class MyJob {
public:
class IO { ... };
IOSource<IO> io;
MyJob(IO* ioPtr, ...) : io(), ... { io.addListener(ioPtr); ... }
};
| 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.
| bool IOSource< SomeIO >::empty | ( | ) | const [inline] |
1.5.6