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