![]() |
Castor3D 0.12.0
Multiplatform 3D engine
|
Plug-ins cache. More...
#include <PluginCache.hpp>
Public Types | |
using | ElementT = castor3d::Plugin |
using | ElementKeyT = String |
using | ElementCacheTraitsT = castor3d::PluginCacheTraits |
using | ElementCacheT = ResourceCacheBaseT< ElementT, ElementKeyT, ElementCacheTraitsT > |
using | ElementPtrT = typename ElementCacheT::ElementPtrT |
using | ElementContT = typename ElementCacheT::ElementContT |
using | ElementInitialiserT = typename ElementCacheT::ElementInitialiserT |
using | ElementCleanerT = typename ElementCacheT::ElementCleanerT |
using | ElementMergerT = typename ElementCacheT::ElementMergerT |
Public Member Functions | |
C3D_API | ResourceCacheT (castor3d::Engine &engine) |
Constructor. More... | |
C3D_API | ~ResourceCacheT ()=default |
Destructor. More... | |
C3D_API void | clear () |
Flushes the collection. More... | |
C3D_API ElementPtrT | loadPlugin (String const &pluginName, Path const &pathFolder) noexcept |
Loads a plug-in, given the plug-in name (ex: libGlRenderSystem.dll => GlRenderSystem) More... | |
C3D_API ElementPtrT | loadPlugin (Path const &fileFullPath) noexcept |
Loads a plug-in, given the plug-in file's full path. More... | |
C3D_API castor3d::PluginStrMap | getPlugins (castor3d::PluginType type) |
Retrieves the plug-ins of given type. More... | |
C3D_API void | loadAllPlugins (Path const &folder) |
Loads all the plug-ins located in working folder. More... | |
Plug-ins cache.
using castor::ResourceCacheT< castor3d::Plugin, String, castor3d::PluginCacheTraits >::ElementCacheT = ResourceCacheBaseT< ElementT, ElementKeyT, ElementCacheTraitsT > |
using castor::ResourceCacheT< castor3d::Plugin, String, castor3d::PluginCacheTraits >::ElementCacheTraitsT = castor3d::PluginCacheTraits |
using castor::ResourceCacheT< castor3d::Plugin, String, castor3d::PluginCacheTraits >::ElementCleanerT = typename ElementCacheT::ElementCleanerT |
using castor::ResourceCacheT< castor3d::Plugin, String, castor3d::PluginCacheTraits >::ElementContT = typename ElementCacheT::ElementContT |
using castor::ResourceCacheT< castor3d::Plugin, String, castor3d::PluginCacheTraits >::ElementInitialiserT = typename ElementCacheT::ElementInitialiserT |
using castor::ResourceCacheT< castor3d::Plugin, String, castor3d::PluginCacheTraits >::ElementKeyT = String |
using castor::ResourceCacheT< castor3d::Plugin, String, castor3d::PluginCacheTraits >::ElementMergerT = typename ElementCacheT::ElementMergerT |
using castor::ResourceCacheT< castor3d::Plugin, String, castor3d::PluginCacheTraits >::ElementPtrT = typename ElementCacheT::ElementPtrT |
using castor::ResourceCacheT< castor3d::Plugin, String, castor3d::PluginCacheTraits >::ElementT = castor3d::Plugin |
C3D_API castor::ResourceCacheT< castor3d::Plugin, String, castor3d::PluginCacheTraits >::ResourceCacheT | ( | castor3d::Engine & | engine | ) |
Constructor.
[in] | engine | The engine. |
|
default |
Destructor.
C3D_API void castor::ResourceCacheT< castor3d::Plugin, String, castor3d::PluginCacheTraits >::clear | ( | ) |
Flushes the collection.
C3D_API castor3d::PluginStrMap castor::ResourceCacheT< castor3d::Plugin, String, castor3d::PluginCacheTraits >::getPlugins | ( | castor3d::PluginType | type | ) |
Retrieves the plug-ins of given type.
[in] | type | The plug-ins type |
nullptr
if not found C3D_API void castor::ResourceCacheT< castor3d::Plugin, String, castor3d::PluginCacheTraits >::loadAllPlugins | ( | Path const & | folder | ) |
Loads all the plug-ins located in working folder.
[in] | folder | The plug-ins' folder |
|
noexcept |
Loads a plug-in, given the plug-in file's full path.
[in] | fileFullPath | The plug-in file path |
nullptr
if path was incorrect or if it wasn't a valid plug-in
|
noexcept |
Loads a plug-in, given the plug-in name (ex: libGlRenderSystem.dll => GlRenderSystem)
[in] | pluginName | The plug-in name |
[in] | pathFolder | Optional path where the plug-in may be looked for |
nullptr
if name was incorrect or path was not valid