shiva::dll
Last updated
Last updated
This class allows you to store plugin creation symbols through its template CreatorSignature parameter. Through this class you are able to retrieve the number of plugins, apply a functor on each of the symbols (as creates the plugin for example).
Return value
Example
Notes
This function allows you to load symbols from the template to create the object. The symbols are loaded recursively from the folder you specified in the object's constructor.
If one of the symbols could not be correctly loaded the function does not stop and proceeds to load the next plugin. If when browsing folders a corrupted file is spotted the function switch to loading the next plugin.
Return value
Example
Template parameters
Example
Notes
This function applies the functor as a parameter to each of the symbols that were previously loaded by the load_all_symbols function.
Example
check if the path passed in parameter is a shared library
Functions Name
Description
load all symbols for plugins creation from the plugins_directory
return the number of plugins
apply a functor on each symbols
Possible name
Description
success
boolean
true if all the symbols of all the libraries have been correctly loaded
false if a symbol from one of the libraries was not loaded
false if the plugins_directory doesn't exist
Possible name
Description
nb_plugins
size_t
numbers of plugins
Name
Description
functor
TFunctor
represents the functor to apply on each of the loaded symbols.
Functions Name
Description
check if a specific path is a shared library
Name
Description
path
fs::path
the path to be tested
Possible name
Description
result
boolean
true if the path is a shared_library
false otherwise