Split up the PluginContainer class into two files

This commit is contained in:
Maschell 2023-02-17 12:07:58 +01:00
parent 994f6d4773
commit b97c944dd6
2 changed files with 21 additions and 9 deletions

View File

@ -28,18 +28,13 @@ namespace WUPSBackend {
class PluginContainer { class PluginContainer {
public: public:
PluginContainer(std::shared_ptr<PluginData> data, std::shared_ptr<PluginMetaInformation> metaInfo) : pluginData(std::move(data)), PluginContainer(std::shared_ptr<PluginData> data, std::shared_ptr<PluginMetaInformation> metaInfo);
metaInformation(std::move(metaInfo)) {
}
[[nodiscard]] const std::shared_ptr<PluginMetaInformation> &getMetaInformation() const { [[nodiscard]] const std::shared_ptr<PluginMetaInformation> &getMetaInformation() const;
return this->metaInformation;
}
[[nodiscard]] const std::shared_ptr<PluginData> &getPluginData() const { [[nodiscard]] const std::shared_ptr<PluginData> &getPluginData() const;
return pluginData;
}
private:
const std::shared_ptr<PluginData> pluginData; const std::shared_ptr<PluginData> pluginData;
const std::shared_ptr<PluginMetaInformation> metaInformation; const std::shared_ptr<PluginMetaInformation> metaInformation;
}; };

View File

@ -0,0 +1,17 @@
#include <wups_backend/PluginContainer.h>
using namespace WUPSBackend;
PluginContainer::PluginContainer(std::shared_ptr<PluginData> data, std::shared_ptr<PluginMetaInformation> metaInfo) : pluginData(std::move(data)),
metaInformation(std::move(metaInfo)) {
}
[[nodiscard]] const std::shared_ptr<PluginMetaInformation> &PluginContainer::getMetaInformation() const {
return this->metaInformation;
}
[[nodiscard]] const std::shared_ptr<PluginData> &PluginContainer::getPluginData() const {
return pluginData;
}