35 lines
943 B
C++
Executable File
35 lines
943 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Data Plugin for NotificationManangement
|
|
*
|
|
* Created by Mike Lennart Wille, ESZS, 2025-06-17
|
|
*/
|
|
|
|
#include "nom_data_plugin.h"
|
|
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <LtsSession/lts_session_data_dds.h>
|
|
|
|
|
|
namespace NotificationManagement
|
|
{
|
|
|
|
std::shared_ptr<DataPluginBase::Interface> DataPlugin::createDataInterface(LtsSession::LtsSessionDataDds *session)
|
|
{
|
|
std::shared_ptr<Interface::Dtc> dtc;
|
|
std::shared_ptr<Interface::Ftc> ftc;
|
|
if (!session->createTopicClient(dtc, ftc))
|
|
return std::shared_ptr<DataPluginBase::Interface>();
|
|
return std::make_shared<DataInterfaceImpl>(dtc, ftc);
|
|
}
|
|
|
|
|
|
DataInterfaceImpl::DataInterfaceImpl(const std::shared_ptr<NotificationManagement::Interface::Dtc> &dtc,
|
|
const std::shared_ptr<NotificationManagement::Interface::Ftc> &ftc)
|
|
: DataInterface()
|
|
, m_dtc(dtc)
|
|
, m_ftc(ftc)
|
|
{}
|
|
|
|
} // namespace NotificationManagement
|