- BUILD_RTI conditional compilation für RTI Connext DDS dependencies - Namespace fixes in core_dtc.h (Core:: → DDS::Core::) - CMakeLists.txt: BUILD_RTI option und conditional dependencies - Handler minelayer: namespace closing mit BUILD_RTI guard - Build erfolgreich mit BUILD_RTI=OFF validiert Signed-off-by: Torsten Wierschin <torsten.wierschin@life-maps.com>
47 lines
1.3 KiB
C++
Executable File
47 lines
1.3 KiB
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <PluginInterfaces/data_plugin_interface.h>
|
|
#include <Plugins/NotificationManagement/nom_data_plugin_interface.h>
|
|
|
|
|
|
namespace NotificationManagement
|
|
{
|
|
|
|
class DataPlugin final : public DataPluginBase::Plugin
|
|
{
|
|
Q_PLUGIN_METADATA(IID "data:3:nom")
|
|
|
|
Q_OBJECT
|
|
public:
|
|
DataPlugin() = default;
|
|
~DataPlugin() = default;
|
|
|
|
QString pluginName() const override { return QStringLiteral("NotificationManagement"); }
|
|
std::shared_ptr<DataPluginBase::Interface> createDataInterface(LtsSession::LtsSessionDataDds *session) override;
|
|
bool availableInPartition(IDL::PartitionType partition) const override
|
|
{
|
|
return partition == IDL::PartitionType::Exercise ||
|
|
partition == IDL::PartitionType::Global;
|
|
}
|
|
};
|
|
|
|
|
|
class DataInterfaceImpl final : public DataInterface
|
|
{
|
|
public:
|
|
DataInterfaceImpl(const std::shared_ptr<NotificationManagement::Interface::Dtc> &dtc,
|
|
const std::shared_ptr<NotificationManagement::Interface::Ftc> &ftc);
|
|
|
|
std::shared_ptr<NotificationManagement::Interface::Dtc> getDtc() override { return m_dtc; }
|
|
std::shared_ptr<NotificationManagement::Interface::Ftc> getFtc() override { return m_ftc; }
|
|
|
|
private:
|
|
std::shared_ptr<NotificationManagement::Interface::Dtc> m_dtc;
|
|
std::shared_ptr<NotificationManagement::Interface::Ftc> m_ftc;
|
|
};
|
|
|
|
}
|