TrainingAreaBase: - Add BUILD_RTI guards to dds_handler.cpp (entire file) - Add BUILD_RTI guards to recv_from_dds_aes.h for tab_db.h include - Add BUILD_RTI guards to main_handler.h for tab_db.h include - Remove duplicate m_logger declaration in main_handler.h - Add stub headers for RTI types (tab_db_stub.hpp, tab_enums_stub.hpp, etc.) VideoOverlayManagement: - Fix member initialization order in handler_overlays.h - Fix member initialization order in avs_interface.h - Fix member initialization order in main_handler.h - Change logger.cpp include from NGLLogger.h to INGLLogger.h - Add BUILD_RTI guard to handler_overlays.cpp for RTI signal connection Plugins: - Migrate QDesktopWidget → QScreen in Light/Dark style plugins - Fix CMakeLists.txt for SituationReplayManagement (BUILD_RTI guards) - Fix CMakeLists.txt for CombatNetRadio (Qt6::Core linking) - Remove QDesktopWidget includes in multiple plugin files Infrastructure: - Remove duplicate INGLLogger.h include directory - Add stub headers for ProjectDataManagement (pdm.hpp, etc.) - Add stub headers for RoutingServiceNG BUILD_RTI=OFF build now compiles successfully (1112 targets).
66 lines
1.3 KiB
C++
Executable File
66 lines
1.3 KiB
C++
Executable File
/**
|
|
* DdsHandler for VideoOverlayManagement
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by hjl, SLSE, 2016-07-06
|
|
*/
|
|
#pragma once
|
|
|
|
#include "logger.h"
|
|
|
|
#if BUILD_RTI
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#endif
|
|
|
|
namespace Core
|
|
{
|
|
class Pacemaker;
|
|
}
|
|
|
|
namespace VideoOverlayManagement
|
|
{
|
|
class DdsHandler final
|
|
{
|
|
public:
|
|
#if BUILD_RTI
|
|
DdsHandler(int domainId, int exerciseId);
|
|
#else
|
|
DdsHandler(int domainId, int exerciseId)
|
|
: m_logger(NGL::getMemoryLogger())
|
|
{
|
|
Q_UNUSED(domainId); Q_UNUSED(exerciseId);
|
|
}
|
|
#endif
|
|
~DdsHandler() = default;
|
|
|
|
#if BUILD_RTI
|
|
bool init(const QStringList &qosFileList = QStringList());
|
|
#else
|
|
bool init(const QStringList &qosFileList = QStringList()) { Q_UNUSED(qosFileList); return true; }
|
|
#endif
|
|
|
|
#if BUILD_RTI
|
|
std::shared_ptr<Core::Pacemaker> pacemaker() const
|
|
{
|
|
return m_pacemaker;
|
|
}
|
|
std::shared_ptr<DDSConnector::DdsConnector> dds() const
|
|
{
|
|
return m_ddsConnector;
|
|
}
|
|
#else
|
|
std::shared_ptr<Core::Pacemaker> pacemaker() const { return nullptr; }
|
|
void* dds() const { return nullptr; }
|
|
#endif
|
|
|
|
private:
|
|
NGL::INGLLogger &m_logger;
|
|
#if BUILD_RTI
|
|
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnector;
|
|
std::shared_ptr<Core::Pacemaker> m_pacemaker;
|
|
#endif
|
|
};
|
|
|
|
} // namespace VideoOverlayManagement
|