41 lines
1.0 KiB
C++
Executable File
41 lines
1.0 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Data Plugin for effect management.
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Filip Biedziak, SLSE, 2020-07-29
|
|
*/
|
|
|
|
#include "efm_data_plugin.h"
|
|
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <LtsSession/lts_session_data_dds.h>
|
|
#include <PluginInterfaces/data_plugin_interface.h>
|
|
|
|
|
|
namespace EffectManagement
|
|
{
|
|
|
|
std::shared_ptr<DataPluginBase::Interface> DataPlugin::createDataInterface(LtsSession::LtsSessionDataDds *session)
|
|
{
|
|
std::shared_ptr<SoundManagement::Interface::Dtc> dtc;
|
|
std::shared_ptr<SoundManagement::Interface::Ftc> ftc;
|
|
|
|
if (!session->createTopicClient(dtc, ftc, true, true))
|
|
return std::shared_ptr<DataPluginBase::Interface>();
|
|
|
|
return std::make_shared<DataInterfaceImpl>(dtc, ftc);
|
|
}
|
|
|
|
|
|
DataInterfaceImpl::DataInterfaceImpl(const std::shared_ptr<SoundManagement::Interface::Dtc> &dtc,
|
|
const std::shared_ptr<SoundManagement::Interface::Ftc> &ftc)
|
|
: DataInterface()
|
|
, m_dtc(dtc)
|
|
, m_ftc(ftc)
|
|
{
|
|
}
|
|
|
|
} // namespace EffectManagement
|