Interface for assembly loading operations.
More...
#include <assembly_loader.hpp>
|
virtual Result< AssemblyPtr > | Load (const std::filesystem::path &path, LoadFlag flags=LoadFlag::Default, std::span< const std::filesystem::path > searchPaths={})=0 |
| Load an assembly from file.
|
|
virtual Result< void > | Unload (const AssemblyPtr &assembly)=0 |
| Unload an assembly.
|
|
Interface for assembly loading operations.
Definition at line 12 of file assembly_loader.hpp.
◆ Load()
virtual Result< AssemblyPtr > plugify::IAssemblyLoader::Load |
( |
const std::filesystem::path & |
path, |
|
|
LoadFlag |
flags = LoadFlag::Default , |
|
|
std::span< const std::filesystem::path > |
searchPaths = {} |
|
) |
| |
|
pure virtual |
Load an assembly from file.
- Parameters
-
path | Path to the assembly file |
flags | Loading flags |
- Returns
- Loaded assembly or error
◆ Unload()
virtual Result< void > plugify::IAssemblyLoader::Unload |
( |
const AssemblyPtr & |
assembly | ) |
|
|
pure virtual |
Unload an assembly.
- Parameters
-
assembly | Assembly to unload |
- Returns
- Success or error
The documentation for this interface was generated from the following file: