jigdo API

job/job.hh File Reference

A job is a certain task - just the application logic, *no* user interface. More...

#include <config.h>
#include <debug.hh>
#include <ilist.hh>
#include <string>

Go to the source code of this file.


Namespaces

namespace  Job

Classes

class  Job::IO
 Base class for interaction between the outside world and the job. More...
class  IOSource< SomeIO >
 In your job class, use the template to generate a public member:. More...

Defines

#define IOSOURCE_SEND(_ioClass, _ioObj, _functionName, _args)
#define IOSOURCE_SENDc(_ioClass, _ioObj, _functionName, _args)
#define IOSOURCE_SENDt(_ioClass, _ioObj, _functionName, _args)

Detailed Description

A job is a certain task - just the application logic, *no* user interface.

All interaction with the rest of the system (input/output, user interaction) happens via an IO object.


Define Documentation

#define IOSOURCE_SEND ( _ioClass,
_ioObj,
_functionName,
_args   ) 

Value:

do { \
    IList<_ioClass>& _listeners = (_ioObj).listeners(); \
    IList<_ioClass>::iterator _i = _listeners.begin(), _e = _listeners.end(); \
    while (_i != _e) { \
      _ioClass* _listObj = &*_i; ++_i; _listObj->_functionName _args; \
    } \
  } while (false)

Referenced by Job::MakeImageDl::generateError(), and Job::CachedUrl::run().

#define IOSOURCE_SENDc ( _ioClass,
_ioObj,
_functionName,
_args   ) 

Value:

do { \
    const IList<_ioClass>& _listeners = (_ioObj).listeners(); \
    IList<_ioClass>::const_iterator _i = _listeners.begin(), \
                                    _e = _listeners.end(); \
    while (_i != _e) { \
      _ioClass* _listObj = &*_i; ++_i; _listObj->_functionName _args; \
    } \
  } while (false)

#define IOSOURCE_SENDt ( _ioClass,
_ioObj,
_functionName,
_args   ) 

Value:

do { \
    IList<_ioClass>& _listeners = (_ioObj).listeners(); \
    typename IList<_ioClass>::iterator _i = _listeners.begin(), \
                                       _e = _listeners.end(); \
    while (_i != _e) { \
      _ioClass* _listObj = &*_i; ++_i; _listObj->_functionName _args; \
    } \
  } while (false)

Referenced by IOSource< Job::MakeImageDl::IO >::~IOSource().


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