36 lines
805 B
C++
Executable File
36 lines
805 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Data Plugin for OcSituationClient
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Philipp Dassow, NLST, 2018-02-26
|
|
*/
|
|
|
|
#include "obd_data_plugin.h"
|
|
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <LtsSession/lts_session_data_dds.h>
|
|
|
|
|
|
namespace OcBaseDownload
|
|
{
|
|
|
|
std::shared_ptr<DataPluginBase::Interface> DataPlugin::createDataInterface(LtsSession::LtsSessionDataDds *session)
|
|
{
|
|
std::shared_ptr<Interface::Ftc> ftc;
|
|
if (!session->createTopicClient(ftc, true, true))
|
|
return std::shared_ptr<DataPluginBase::Interface>();
|
|
ftc->enableAll();
|
|
return std::make_shared<DataInterfaceImpl>(ftc);
|
|
}
|
|
|
|
|
|
DataInterfaceImpl::DataInterfaceImpl(const std::shared_ptr<OcBaseDownload::Interface::Ftc> &ftc)
|
|
: DataInterface()
|
|
, m_ftc(ftc)
|
|
{}
|
|
|
|
|
|
} // namespace OcBaseDownload
|