Simulacrum  1.2
Namespaces | Macros | Typedefs | Functions
splugins.cpp File Reference
#include <map>
#include "splugins.h"
#include <Toolbox/sysInfo/sysInfo.h>
#include <Toolbox/SFile/sfile.h>
#include <Toolbox/SURI/suri.h>
#include <Toolbox/SLogger/slogger.h>
#include <Core/sresource.h>
#include <Core/salgorithm.h>
#include <dlfcn.h>
Include dependency graph for splugins.cpp:

Namespaces

 Simulacrum
 

Macros

#define LOADEDOBJ   void*
 
#define LOADOBJ(x)   dlopen(x,RTLD_NOW|RTLD_GLOBAL)
 
#define LOADERROR   dlerror()
 
#define UNLOADOBJ(x)   dlclose(x)
 
#define SYMREF   void*
 
#define SYMLOOKUP(x, y)   dlsym(x,y)
 

Typedefs

typedef int(* abifunc_t) (void)
 
typedef void(* regfunc_t) (SPluginManager *)
 
typedef std::map< std::string, std::map< std::string, SPluginFactory * > > pstore_t
 
typedef std::map< std::string, SPluginFactory * > pstorelist_t
 
typedef std::map< std::string, LOADEDOBJpobjlist_t
 

Functions

int loadLuaResources (SPluginManager &plugman, const std::string &source="")
 
int loadLuaAlgorithms (SPluginManager &plugman, const std::string &source="")
 

Macro Definition Documentation

◆ LOADEDOBJ

#define LOADEDOBJ   void*

◆ LOADERROR

#define LOADERROR   dlerror()

◆ LOADOBJ

#define LOADOBJ (   x)    dlopen(x,RTLD_NOW|RTLD_GLOBAL)

◆ SYMLOOKUP

#define SYMLOOKUP (   x,
 
)    dlsym(x,y)

◆ SYMREF

#define SYMREF   void*

◆ UNLOADOBJ

#define UNLOADOBJ (   x)    dlclose(x)

Typedef Documentation

◆ abifunc_t

typedef int(* abifunc_t) (void)

◆ pobjlist_t

typedef std::map<std::string,LOADEDOBJ> pobjlist_t

◆ pstore_t

typedef std::map<std::string,std::map<std::string,SPluginFactory*> > pstore_t

◆ pstorelist_t

typedef std::map<std::string,SPluginFactory*> pstorelist_t

◆ regfunc_t

typedef void(* regfunc_t) (SPluginManager *)

Function Documentation

◆ loadLuaAlgorithms()

int loadLuaAlgorithms ( SPluginManager plugman,
const std::string &  source = "" 
)

◆ loadLuaResources()

int loadLuaResources ( SPluginManager plugman,
const std::string &  source = "" 
)
Simulacrum Project