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).
68 lines
2.4 KiB
C++
Executable File
68 lines
2.4 KiB
C++
Executable File
|
|
|
|
#pragma once
|
|
|
|
#if BUILD_RTI
|
|
|
|
#include <ProjectDataManagement/pdm_dtc.h>
|
|
#include <QtCore/QMap>
|
|
#include <QtCore/QHash>
|
|
#include "aes.hpp"
|
|
#include "logger.h"
|
|
|
|
namespace TrainingAreaBase
|
|
{
|
|
class MainHandler;
|
|
|
|
class PdmHandler
|
|
{
|
|
|
|
public:
|
|
explicit PdmHandler(MainHandler *mainHandler);
|
|
|
|
bool init();
|
|
|
|
std::shared_ptr<ProjectDataManagement::Interface::Dtc> dtc() const { return m_dtcPdm; }
|
|
|
|
ProjectDataManagement::ChargeType chargeTypeFromId(int chargeTypeId);
|
|
|
|
ProjectDataManagement::GearClass gearClassFromChargeTypeId(int chargeTypeId);
|
|
ProjectDataManagement::RadioGroup radioGroup(int radioGroupId);
|
|
ProjectDataManagement::BuildingChargeEffect buildingChargeEffect(int chargeTypeId);
|
|
int vulnerabilityKindId(int tasVulnerabilityKindId, int equipmentNumber);
|
|
QMap<int, ProjectDataManagement::RadioGroup> radioGroups ();
|
|
|
|
int chargeTypeIdFromGearAndChargeTasCode(int gearTasCode, int chargeTasCode);
|
|
int gearTypeIdFromTasGearTasCode(int gearTasCode);
|
|
int legacyChargeTypeIgniterType(int chargeTypeId, int igniterTypeId, int igniterFunctionId);
|
|
|
|
double impactRadius(const AreaEffectSimulation::ChargeStruct &chargeStruct) const;
|
|
double impactEdgeLength(const AreaEffectSimulation::ChargeStruct &chargeStruct) const;
|
|
bool isSmartChargeType(const AreaEffectSimulation::ChargeStruct &chargeStruct) const;
|
|
bool isIedChargeType(const AreaEffectSimulation::ChargeStruct &chargeStruct) const;
|
|
bool isReactivatableChargeType(const AreaEffectSimulation::ChargeStruct &chargeStruct) const;
|
|
bool isIndirect(int chargeTypeId) const;
|
|
int hazardDistance(const AreaEffectSimulation::ChargeStruct &chargeStruct) const;
|
|
bool isLaserGuidable(const AreaEffectSimulation::ChargeStruct &chargeStruct) const;
|
|
bool isUasDroppable(const AreaEffectSimulation::ChargeStruct &chargeStruct) const;
|
|
|
|
public:
|
|
bool initializePdm();
|
|
private:
|
|
NGL::INGLLogger &m_logger;
|
|
bool m_initialized;
|
|
std::shared_ptr<ProjectDataManagement::Interface::Dtc> m_dtcPdm;
|
|
QMap<int, ProjectDataManagement::ChargeType> m_chargeTypes;
|
|
QMap<int, ProjectDataManagement::GearType> m_gearTypes;
|
|
QMap<int, ProjectDataManagement::GearTypeChargeType> m_gearTypeChargeTypes;
|
|
QMap<int, ProjectDataManagement::RadioGroup> m_radioGroups;
|
|
QMap<int, ProjectDataManagement::BuildingChargeEffect> m_buildingChargeEffects;
|
|
|
|
QHash<int, ProjectDataManagement::VulnerabilityKind> m_vulnerabilityKinds;
|
|
QHash<int, int> m_vulnerabilityKindFallback;
|
|
MainHandler *m_mainHandler;
|
|
};
|
|
}
|
|
|
|
#endif // BUILD_RTI
|