mirror of
https://github.com/wiiu-env/libwupsbackend.git
synced 2024-11-13 05:25:07 +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 {
|
||||
|
||||
public:
|
||||
PluginContainer(std::shared_ptr<PluginData> data, std::shared_ptr<PluginMetaInformation> metaInfo) : pluginData(std::move(data)),
|
||||
metaInformation(std::move(metaInfo)) {
|
||||
}
|
||||
PluginContainer(std::shared_ptr<PluginData> data, std::shared_ptr<PluginMetaInformation> metaInfo);
|
||||
|
||||
[[nodiscard]] const std::shared_ptr<PluginMetaInformation> &getMetaInformation() const {
|
||||
return this->metaInformation;
|
||||
}
|
||||
[[nodiscard]] const std::shared_ptr<PluginMetaInformation> &getMetaInformation() const;
|
||||
|
||||
[[nodiscard]] const std::shared_ptr<PluginData> &getPluginData() const {
|
||||
return pluginData;
|
||||
}
|
||||
[[nodiscard]] const std::shared_ptr<PluginData> &getPluginData() const;
|
||||
|
||||
private:
|
||||
const std::shared_ptr<PluginData> pluginData;
|
||||
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