2024-08-04 16:42:24 +02:00
|
|
|
#pragma once
|
2024-12-29 17:43:28 +01:00
|
|
|
|
2024-08-04 16:42:24 +02:00
|
|
|
#include <memory>
|
|
|
|
|
2024-12-29 17:43:28 +01:00
|
|
|
class PluginData;
|
|
|
|
|
2024-08-04 16:42:24 +02:00
|
|
|
class PluginLoadWrapper {
|
|
|
|
public:
|
|
|
|
PluginLoadWrapper(std::shared_ptr<PluginData> pluginData, const bool linkAndLoad) : mPluginData(std::move(pluginData)), mIsLoadAndLink(linkAndLoad) {
|
|
|
|
}
|
|
|
|
|
|
|
|
[[nodiscard]] const std::shared_ptr<PluginData> &getPluginData() const {
|
|
|
|
return mPluginData;
|
|
|
|
}
|
|
|
|
|
|
|
|
[[nodiscard]] bool isLoadAndLink() const {
|
|
|
|
return mIsLoadAndLink;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::shared_ptr<PluginData> mPluginData;
|
|
|
|
bool mIsLoadAndLink = false;
|
|
|
|
};
|