Choreonoid  1.8
Public Types | Public Member Functions | Static Public Member Functions | List of all members
cnoid::PluginManager Class Reference

#include <PluginManager.h>

Public Types

enum  PluginStatus {
  NOT_LOADED, LOADED, ACTIVE, FINALIZED,
  UNLOADED, INVALID, CONFLICT
}
 

Public Member Functions

 ~PluginManager ()
 
void doStartupLoading (const char *pluginPathList)
 
void scanPluginFilesInPathList (const std::string &pathList)
 
void scanPluginFilesInDirectoyOfExecFile ()
 
void scanPluginFiles (const std::string &pathString)
 
void clearUnusedPlugins ()
 
void loadPlugins ()
 
bool finalizePlugins ()
 
int numPlugins () const
 
const std::string & pluginPath (int index) const
 
const std::string & pluginName (int index) const
 
int pluginStatus (int index) const
 
PluginfindPlugin (const std::string &name)
 
const std::string & getErrorMessage (const std::string &name)
 
bool loadPlugin (int index)
 
bool unloadPlugin (int index)
 
bool unloadPlugin (const std::string &name)
 
bool reloadPlugin (const std::string &name)
 
const char * guessActualPluginName (const std::string &name)
 

Static Public Member Functions

static void initialize (ExtensionManager *ext)
 
static PluginManagerinstance ()
 
static void finalize ()
 

Member Enumeration Documentation

◆ PluginStatus

Enumerator
NOT_LOADED 
LOADED 
ACTIVE 
FINALIZED 
UNLOADED 
INVALID 
CONFLICT 

Constructor & Destructor Documentation

◆ ~PluginManager()

PluginManager::~PluginManager ( )

Member Function Documentation

◆ clearUnusedPlugins()

void PluginManager::clearUnusedPlugins ( )

◆ doStartupLoading()

void PluginManager::doStartupLoading ( const char *  pluginPathList)

◆ finalize()

void PluginManager::finalize ( )
static

◆ finalizePlugins()

bool PluginManager::finalizePlugins ( )

◆ findPlugin()

Plugin * PluginManager::findPlugin ( const std::string &  name)

◆ getErrorMessage()

const std::string & PluginManager::getErrorMessage ( const std::string &  name)

◆ guessActualPluginName()

const char * PluginManager::guessActualPluginName ( const std::string &  name)

◆ initialize()

void PluginManager::initialize ( ExtensionManager ext)
static

◆ instance()

PluginManager * PluginManager::instance ( )
static

◆ loadPlugin()

bool PluginManager::loadPlugin ( int  index)

◆ loadPlugins()

void PluginManager::loadPlugins ( )

◆ numPlugins()

int PluginManager::numPlugins ( ) const

◆ pluginName()

const std::string & PluginManager::pluginName ( int  index) const

◆ pluginPath()

const std::string & PluginManager::pluginPath ( int  index) const

◆ pluginStatus()

int PluginManager::pluginStatus ( int  index) const

◆ reloadPlugin()

bool PluginManager::reloadPlugin ( const std::string &  name)

◆ scanPluginFiles()

void PluginManager::scanPluginFiles ( const std::string &  pathString)

◆ scanPluginFilesInDirectoyOfExecFile()

void PluginManager::scanPluginFilesInDirectoyOfExecFile ( )

◆ scanPluginFilesInPathList()

void PluginManager::scanPluginFilesInPathList ( const std::string &  pathList)

This function scans plugin files in the path list.

Parameters
pathListList of the directories to scan, which is specified with the same format as the PATH environment varibale.

◆ unloadPlugin() [1/2]

bool PluginManager::unloadPlugin ( const std::string &  name)

◆ unloadPlugin() [2/2]

bool PluginManager::unloadPlugin ( int  index)

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