Files
qt5-legatus-legacy/Lts/Plugins/ParticipantManagement/Data/ppm_data_plugin.cpp
T
2026-08-13 18:33:10 +02:00

35 lines
1003 B
C++
Executable File

/**
* @RDE_HEADER@
* Data Plugin for ParticipantManagement
* $Id$
* $HeadURL$
* $Author$
* Created by Mike Wille, SLSE, 2016-05-30
*/
#include "ppm_data_plugin.h"
#include <ParticipantManagement/logger.h>
#include <LtsSession/lts_session_data_dds.h>
namespace ParticipantManagement
{
std::shared_ptr<DataPluginBase::Interface> DataPlugin::createDataInterface(LtsSession::LtsSessionDataDds *session)
{
std::shared_ptr<ParticipantManagement::Interface::Dtc> dtc;
std::shared_ptr<ParticipantManagement::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<ParticipantManagement::Interface::Dtc> &dtc,
const std::shared_ptr<ParticipantManagement::Interface::Ftc> &ftc)
: DataInterface()
, m_dtc(dtc)
, m_ftc(ftc)
{}
} // namespace ParticipantManagement