diff --git a/include/wups_backend/PluginContainer.h b/include/wups_backend/PluginContainer.h index 77c0e10..3c440a1 100644 --- a/include/wups_backend/PluginContainer.h +++ b/include/wups_backend/PluginContainer.h @@ -28,18 +28,13 @@ namespace WUPSBackend { class PluginContainer { public: - PluginContainer(std::shared_ptr data, std::shared_ptr metaInfo) : pluginData(std::move(data)), - metaInformation(std::move(metaInfo)) { - } + PluginContainer(std::shared_ptr data, std::shared_ptr metaInfo); - [[nodiscard]] const std::shared_ptr &getMetaInformation() const { - return this->metaInformation; - } + [[nodiscard]] const std::shared_ptr &getMetaInformation() const; - [[nodiscard]] const std::shared_ptr &getPluginData() const { - return pluginData; - } + [[nodiscard]] const std::shared_ptr &getPluginData() const; + private: const std::shared_ptr pluginData; const std::shared_ptr metaInformation; }; diff --git a/source/PluginContainer.cpp b/source/PluginContainer.cpp new file mode 100644 index 0000000..6fc99a3 --- /dev/null +++ b/source/PluginContainer.cpp @@ -0,0 +1,17 @@ +#include + + +using namespace WUPSBackend; + + +PluginContainer::PluginContainer(std::shared_ptr data, std::shared_ptr metaInfo) : pluginData(std::move(data)), + metaInformation(std::move(metaInfo)) { +} + +[[nodiscard]] const std::shared_ptr &PluginContainer::getMetaInformation() const { + return this->metaInformation; +} + +[[nodiscard]] const std::shared_ptr &PluginContainer::getPluginData() const { + return pluginData; +}