irccd
3.0.3
|
Special plugin loader for unit tests. More...
#include <test_plugin_loader.hpp>
Public Member Functions | |
auto | open (std::string_view id, std::string_view file) -> std::shared_ptr< daemon::plugin > override |
auto | find (std::string_view id) -> std::shared_ptr< daemon::plugin > override |
![]() | |
plugin_loader (std::vector< std::string > directories={}, std::vector< std::string > extensions={}) noexcept | |
virtual | ~plugin_loader ()=default |
virtual auto | is_supported (std::string_view path) noexcept -> bool |
Special plugin loader for unit tests.
This class reimplements the functions find and open to return special plugin objects.
The following names are supported:
|
overridevirtual |
Search for a plugin named by this id.
id | the plugin id |
plugin_error | on errors |
Reimplemented from irccd::daemon::plugin_loader.
|
overridevirtual |
Try to open the plugin specified by path.
The implementation must test if the plugin is suitable for opening, by testing extension for example.
id | the plugin identifier |
file | the file path |
plugin_error | on errors |
Implements irccd::daemon::plugin_loader.