PluginHost functionality: loading, hosting, registering, destroying, and enumerating plugins. More...
Classes | |
| class | PluginSpecificRegistrationContext |
| Class providing the external interface of a registration context backing a single plugin. More... | |
| class | PluginSpecificRegistrationContextImpl |
| Internal class backing the context of registrations performed by a single plugin. More... | |
| class | RegistrationContext |
| Class responsible for hosting plugins, along with their registration and destruction. More... | |
Typedefs | |
| typedef shared_ptr < PluginSpecificRegistrationContextImpl > | PluginRegPtr |
| Pointer with ownership semantics for cleanup of plugins. More... | |
| typedef std::vector< std::string > | SearchPath |
| typedef std::vector< std::string > | FileList |
Functions | |
| SearchPath | getPluginSearchPath () |
| Find a place where to look for plugins. More... | |
| FileList | getAllFilesWithExt (SearchPath const &dirPath, const std::string &ext) |
| Get list of files inside the directory with given extension. | |
| std::string | findPlugin (SearchPath const &searchPaths, const std::string &pluginName) |
| Given the name of a plugin, find the full path to the plugin library. More... | |
PluginHost functionality: loading, hosting, registering, destroying, and enumerating plugins.
| typedef shared_ptr<PluginSpecificRegistrationContextImpl> osvr::pluginhost::PluginRegPtr |
Pointer with ownership semantics for cleanup of plugins.
Definition at line 33 of file PluginRegPtr.h.
| SearchPath osvr::pluginhost::getPluginSearchPath | ( | ) |
Find a place where to look for plugins.
This will become our return value.
This will become our return value.
Definition at line 47 of file SearchPath.cpp.
| std::string osvr::pluginhost::findPlugin | ( | SearchPath const & | searchPaths, |
| const std::string & | pluginName | ||
| ) |
Given the name of a plugin, find the full path to the plugin library.
Must be a regular file
Needs right extension
If the name is right or has the manual load suffix, this is a good one.
Must be a regular file
Needs right extension
If the name is right or has the manual load suffix, this is a good one.
Definition at line 151 of file SearchPath.cpp.