Mania++
 All Classes Functions Variables Pages
Public Member Functions | Private Attributes | List of all members
PluginHandler Class Reference

Public Member Functions

 PluginHandler (std::map< std::string, PluginInfo > *pluginList)
 Handler constructor. More...
 
bool IsLoaded (std::string pluginName, std::string minVersion="")
 Checks if plugin is loaded (and is proper version). More...
 
boost::any CallMethod (std::string pluginName, std::string methodName, boost::any params)
 Calls method on a different plugin. More...
 

Private Attributes

std::map< std::string,
PluginInfo > * 
plugins
 Pointer to the plugin list.
 

Constructor & Destructor Documentation

PluginHandler::PluginHandler ( std::map< std::string, PluginInfo > *  pluginList)

Handler constructor.

Parameters
pluginListPointer to the controllers pluginlist.

Member Function Documentation

boost::any PluginHandler::CallMethod ( std::string  pluginName,
std::string  methodName,
boost::any  params 
)

Calls method on a different plugin.

Parameters
pluginNameName of the plugin.
methodNameName of the method.
paramsParameters for the method.
bool PluginHandler::IsLoaded ( std::string  pluginName,
std::string  minVersion = "" 
)

Checks if plugin is loaded (and is proper version).

Parameters
pluginNameName of the plugin.
minVersionMinimum version of the plugin (optional).

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