mirror of
https://github.com/wiiu-env/libwupsbackend.git
synced 2024-11-22 01:39:18 +01:00
Split up the PluginContainer class into two files
This commit is contained in:
parent
994f6d4773
commit
b97c944dd6
@ -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;
|
||||||
};
|
};
|
||||||
|
17
source/PluginContainer.cpp
Normal file
17
source/PluginContainer.cpp
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user