The BackendLoader class is a definition of a backend loader.
More...
#include <knp/framework/backend_loader.h>
|
std::shared_ptr< core::Backend > | load (const std::filesystem::path &backend_path) |
| Load backend.
|
|
typedef | std::shared_ptr (BackendCreateFunction)() |
| Function type that returns a backend instance.
|
|
|
static bool | is_backend (const std::filesystem::path &backend_path) |
| Check if the specified path points to a backend.
|
|
|
std::function< BackendCreateFunction > | make_creator (const std::filesystem::path &backend_path) |
| Create a backend loader that will load and create a backend instance.
|
|
The BackendLoader class is a definition of a backend loader.
Definition at line 42 of file backend_loader.h.
◆ is_backend()
static bool knp::framework::BackendLoader::is_backend |
( |
const std::filesystem::path & | backend_path | ) |
|
|
static |
Check if the specified path points to a backend.
- Parameters
-
backend_path | path to backend. |
- Returns
true
if the library pointed by backend_path
is a backend.
◆ load()
std::shared_ptr< core::Backend > knp::framework::BackendLoader::load |
( |
const std::filesystem::path & | backend_path | ) |
|
Load backend.
- Parameters
-
backend_path | path to backend. |
- Returns
- shared pointer to Backend object.
◆ make_creator()
std::function< BackendCreateFunction > knp::framework::BackendLoader::make_creator |
( |
const std::filesystem::path & | backend_path | ) |
|
|
protected |
Create a backend loader that will load and create a backend instance.
- Parameters
-
backend_path | path to backend. |
- Returns
- pointer to the backend creation function.
◆ std::shared_ptr()
typedef knp::framework::BackendLoader::std::shared_ptr |
( |
BackendCreateFunction | | ) |
|
Function type that returns a backend instance.
- Returns
- shared pointer to Backend object.
The documentation for this class was generated from the following file: