37 lines
984 B
C++
Executable File
37 lines
984 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Data Plugin for CentralEffectSimulation
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Astrid Mueller, SGAS, 2017-08-09
|
|
*/
|
|
|
|
#include "cmo_data_plugin.h"
|
|
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <LtsSession/lts_session_data_dds.h>
|
|
|
|
namespace ComponentMonitor
|
|
{
|
|
std::shared_ptr<DataPluginBase::Interface> DataPlugin::createDataInterface(LtsSession::LtsSessionDataDds *session)
|
|
{
|
|
std::shared_ptr<ComponentMonitor::Interface::Dtc> dtc;
|
|
std::shared_ptr<ComponentMonitor::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<ComponentMonitor::Interface::Dtc> &dtc
|
|
, const std::shared_ptr<ComponentMonitor::Interface::Ftc> &ftc)
|
|
: DataInterface()
|
|
, m_dtc(dtc)
|
|
, m_ftc(ftc)
|
|
{}
|
|
|
|
|
|
} // namespace ComponentMonitor
|