Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+56
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* Data Plugin for AlarmManagement
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Patric Karwat, SLSE, 2016-10-05
|
||||
*/
|
||||
|
||||
#include "gna_data_plugin.h"
|
||||
|
||||
#include <DDS/DDSConnector/dds_connector.h>
|
||||
#include <LtsSession/lts_session_data_dds.h>
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
namespace GuezNasat
|
||||
{
|
||||
std::shared_ptr<DataPluginBase::Interface> DataPlugin::createDataInterface(LtsSession::LtsSessionDataDds *session)
|
||||
{
|
||||
std::shared_ptr<GuezNasat::Interface::Dtc> dtc;
|
||||
|
||||
// Unfortunately, it´s not really clear, which dtc we need: global or not.
|
||||
// 30.01.2020, r49714 -> CE: bGlobal == true: if (!session->createTopicClient(dtc, ftc, true))
|
||||
// 14.05.2020, r51152 -> NT: bGlobal = !session->isExercisePartition(); // of for displaying NineLiner at SitMap@Exercise
|
||||
// 28.07.2020, NT:
|
||||
// ddsview@ex42: Topics "Nasat9Liner, NasatAircraft, NasatAircraftparticipant are visible
|
||||
// NineLine are missing at snapshot and Replay ->
|
||||
// 28.07.2020: rXXXXX -> NT_ bGlobal == false
|
||||
|
||||
//bool bGlobal = !session->isExercisePartition();
|
||||
bool bGlobal = false;
|
||||
|
||||
if (!session->createTopicClient(dtc, false, bGlobal))
|
||||
{
|
||||
// qCritical() << " createTopicClient failed, bGlobal=" << bGlobal;
|
||||
return std::shared_ptr<DataPluginBase::Interface>();
|
||||
}
|
||||
|
||||
std::shared_ptr<GuezNasat::Interface::Ftc> ftc;
|
||||
if (!session->createTopicClient(ftc))
|
||||
return std::shared_ptr<DataPluginBase::Interface>();
|
||||
ftc->enableAll();
|
||||
|
||||
return std::make_shared<DataInterfaceImpl>(dtc, ftc);
|
||||
}
|
||||
|
||||
DataInterfaceImpl::DataInterfaceImpl(const std::shared_ptr<GuezNasat::Interface::Dtc> &dtc,
|
||||
const std::shared_ptr<GuezNasat::Interface::Ftc> &ftc)
|
||||
: DataInterface()
|
||||
, m_dtc(dtc)
|
||||
, m_ftc(ftc)
|
||||
{}
|
||||
|
||||
} // namespace GuezNasat
|
||||
Reference in new issue
Block a user