30 lines
632 B
C++
Executable File
30 lines
632 B
C++
Executable File
|
|
|
|
|
|
#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)
|
|
{}
|
|
|
|
|
|
}
|