plugify
1.2.8
Loading...
Searching...
No Matches
include
plugify
assembly_loader.hpp
1
#pragma once
2
3
#include <vector>
4
5
#include "plugify/assembly.hpp"
6
7
namespace
plugify {
12
class
IAssemblyLoader
{
13
public
:
14
virtual
~IAssemblyLoader
() =
default
;
15
22
virtual
Result<AssemblyPtr>
Load
(
23
const
std::filesystem::path& path,
24
LoadFlag flags = LoadFlag::Default,
25
std::span<const std::filesystem::path> searchPaths = {}
26
) = 0;
27
33
virtual
Result<void>
Unload
(
const
AssemblyPtr& assembly) = 0;
34
};
35
36
using
AssemblyLoaderPtr = std::shared_ptr<IAssemblyLoader>;
37
}
plg::allocator
Definition
allocator.hpp:24
plugify::IAssemblyLoader
Interface for assembly loading operations.
Definition
assembly_loader.hpp:12
plugify::IAssemblyLoader::Load
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.
plugify::IAssemblyLoader::Unload
virtual Result< void > Unload(const AssemblyPtr &assembly)=0
Unload an assembly.
Generated by
1.9.8