JobCModuleRegistry.h File Reference

#include <cassert>
#include <stdlib.h>
#include <list>
#include <map>
#include <string>
#include "JobControl/JobCModuleProxy.h"

Go to the source code of this file.

Classes

class  JobCModuleRegistry
struct  JobCModuleRegistry::Cleaner

Defines

#define JOBMODULE(CLASS, NAME, FUNC)

Define Documentation

#define JOBMODULE ( CLASS,
NAME,
FUNC   ) 
Value:
static class gs__Register__##CLASS##__ : public JobCModuleProxy { \
public:                                                           \
  gs__Register__##CLASS##__() {                                   \
    fName = NAME;                                                 \
    fFunc = FUNC;                                                 \
    JobCModuleRegistry::Instance().Register(this);                \
  }                                                               \
  JobCModule *CreateModule()       {                              \
    JobCModule* m = new CLASS();                                  \
    m->Init(NAME);                                                \
    return m;                                                     \
  }                                                               \
} gs__module__##CLASS##__proxy__

Definition at line 92 of file JobCModuleRegistry.h.


Generated on 18 Oct 2018 for loon by  doxygen 1.6.1