Simulacrum  1.2
Public Member Functions | Static Public Member Functions | List of all members
Simulacrum::SPluginManager Class Reference

#include <splugins.h>

Collaboration diagram for Simulacrum::SPluginManager:
Collaboration graph

Public Member Functions

 SPluginManager ()
 
 ~SPluginManager ()
 
bool isLoaded () const
 
int loadAll (const std::string &source="")
 
void clearAll ()
 
bool addPlugin (const std::string &path)
 
void addPlugin (SPluginFactory *)
 
bool removePlugin (const std::string &ptypename, const std::string &pluginname)
 
std::vector< std::string > pluginTypes () const
 
std::vector< std::string > plugins (const std::string &ptypename) const
 
bool hasPlugin (const std::string &ptypename, const std::string &pluginname)
 
splugininst_t getPluginInstance (const std::string &ptypename, const std::string &pluginname)
 
template<class plugin_t >
std::vector< std::string > plugins ()
 
template<class plugin_t >
bool hasPlugin (const std::string &pname)
 
template<class plugin_t >
plugin_t * getPluginInstance (const std::string &pname)
 

Static Public Member Functions

static SPluginManagerglobal ()
 
static std::string pluginsPath ()
 
static std::string includesPath ()
 

Constructor & Destructor Documentation

◆ SPluginManager()

SPluginManager::SPluginManager ( )

◆ ~SPluginManager()

SPluginManager::~SPluginManager ( )

Member Function Documentation

◆ addPlugin() [1/2]

bool SPluginManager::addPlugin ( const std::string &  path)

◆ addPlugin() [2/2]

void SPluginManager::addPlugin ( SPluginFactory newplugin)

◆ clearAll()

void SPluginManager::clearAll ( )

◆ getPluginInstance() [1/2]

template<class plugin_t >
plugin_t* Simulacrum::SPluginManager::getPluginInstance ( const std::string &  pname)
inline

◆ getPluginInstance() [2/2]

splugininst_t SPluginManager::getPluginInstance ( const std::string &  ptypename,
const std::string &  pluginname 
)

◆ global()

SPluginManager & SPluginManager::global ( )
static

◆ hasPlugin() [1/2]

template<class plugin_t >
bool Simulacrum::SPluginManager::hasPlugin ( const std::string &  pname)
inline

◆ hasPlugin() [2/2]

bool SPluginManager::hasPlugin ( const std::string &  ptypename,
const std::string &  pluginname 
)

◆ includesPath()

std::string SPluginManager::includesPath ( )
static

◆ isLoaded()

bool SPluginManager::isLoaded ( ) const

◆ loadAll()

int SPluginManager::loadAll ( const std::string &  source = "")

◆ plugins() [1/2]

template<class plugin_t >
std::vector< std::string > Simulacrum::SPluginManager::plugins ( )
inline

◆ plugins() [2/2]

std::vector< std::string > SPluginManager::plugins ( const std::string &  ptypename) const

◆ pluginsPath()

std::string SPluginManager::pluginsPath ( )
static

◆ pluginTypes()

std::vector< std::string > SPluginManager::pluginTypes ( ) const

◆ removePlugin()

bool SPluginManager::removePlugin ( const std::string &  ptypename,
const std::string &  pluginname 
)

The documentation for this class was generated from the following files:
Simulacrum Project