Cat
Classes | Macros
DLL.h File Reference
#include <string>
#include <vector>
#include <unistd.h>
#include <dlfcn.h>
#include "StatusCode.h"
#include "Tools.h"
#include "Element.h"
#include "Processus.h"

Go to the source code of this file.

Classes

class  DLL
 

Macros

#define DECLARE_DLL(x)   extern "C" void x##_dll( DLL* dll )
 
#define DECLARE_ELEMENT(x, y)   dll->addElement (#x,#y);
 
#define DECLARE_PROCESSUS(x, y)   dll->addProcessus (#x,#y);
 
#define DECLARE_OBJECT(x, y)   dll->addObject (#x,#y);
 
#define FACTORY(type, x)
 

Macro Definition Documentation

◆ DECLARE_DLL

#define DECLARE_DLL (   x)    extern "C" void x##_dll( DLL* dll )

Definition at line 23 of file DLL.h.

◆ DECLARE_ELEMENT

#define DECLARE_ELEMENT (   x,
 
)    dll->addElement (#x,#y);

Definition at line 26 of file DLL.h.

Referenced by DECLARE_DLL().

◆ DECLARE_OBJECT

#define DECLARE_OBJECT (   x,
 
)    dll->addObject (#x,#y);

Definition at line 32 of file DLL.h.

◆ DECLARE_PROCESSUS

#define DECLARE_PROCESSUS (   x,
 
)    dll->addProcessus (#x,#y);

Definition at line 29 of file DLL.h.

Referenced by DECLARE_DLL().

◆ FACTORY

#define FACTORY (   type,
 
)
Value:
extern "C" type* x##_create() { \
return (new x) ; \
} \
extern "C" void x##_destroy(type* p) { \
delete p; \
}

Definition at line 43 of file DLL.h.

Referenced by DECLARE_DLL().