- training_area_telegrams.cpp: Fixed QJsonObject initializer syntax (Qt6 requires {{}} not ({}))
- training_area_telegrams.cpp: Fixed fromJson() methods to access m_* members directly
- training_area_telegrams.cpp: Fixed brace mismatches in multiple toJson() methods
- training_area_telegrams.h: Changed Header struct to public members for consistency
- tx_mixin.cpp: Fixed getEquipmentNumber() template for direct member access
- lts_coordinate.cpp: Added missing #include <iomanip>
- MIGRATION_STATUS.md: Added migration progress tracking document
C++17 constraint enforced due to RTI Connext DDS 7.7.0 incompatibility with C++20+
Build status: BUILD_RTI=OFF successful (0 errors, warnings only)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
51 lines
984 B
C++
Executable File
51 lines
984 B
C++
Executable File
|
|
|
|
|
|
#include "gna_data_plugin.h"
|
|
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <LtsSession/lts_session_data_dds.h>
|
|
|
|
#include <QtCore/QDebug>
|
|
|
|
|
|
namespace GuezNasat
|
|
{
|
|
std::shared_ptr<DataPluginBase::Interface> DataPlugin::createDataInterface(LtsSession::LtsSessionDataDds *session)
|
|
{
|
|
std::shared_ptr<GuezNasat::Interface::Dtc> dtc;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool bGlobal = false;
|
|
|
|
if (!session->createTopicClient(dtc, false, 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)
|
|
{}
|
|
|
|
}
|