25 #ifndef INCLUDED_SearchPath_h_GUID_D9D19BF6_FEB5_4B82_17A4_C8C397C88523 26 #define INCLUDED_SearchPath_h_GUID_D9D19BF6_FEB5_4B82_17A4_C8C397C88523 29 #include <osvr/PluginHost/Export.h> 39 namespace pluginhost {
41 typedef std::vector<std::string> SearchPath;
42 typedef std::vector<std::string> FileList;
48 OSVR_PLUGINHOST_EXPORT FileList
52 OSVR_PLUGINHOST_EXPORT std::string
53 findPlugin(SearchPath
const &searchPaths,
const std::string &pluginName);
58 #endif // INCLUDED_SearchPath_h_GUID_D9D19BF6_FEB5_4B82_17A4_C8C397C88523 The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
OSVR_PLUGINHOST_EXPORT FileList getAllFilesWithExt(SearchPath const &dirPath, const std::string &ext)
Get list of files inside the directory with given extension.
Definition: SearchPath.cpp:124
OSVR_PLUGINHOST_EXPORT SearchPath getPluginSearchPath()
Find a place where to look for plugins.
Definition: SearchPath.cpp:47
OSVR_PLUGINHOST_EXPORT std::string findPlugin(SearchPath const &searchPaths, const std::string &pluginName)
Given the name of a plugin, find the full path to the plugin library.
Definition: SearchPath.cpp:151