Qt6 Migration: DDS-Stubs, Logger-Fixes, Export-Header Korrekturen

- NGL_ADD_LIBRARY2: 87 CMakeLists.txt konvertiert für Export-Header Generierung
- 44 Export-Header Include-Pfade korrigiert (_export.h)
- 81 DDS-Stub-Header generiert (*_dtc.h, *_fts.h, *_dts.h, *_ftc.h)
- INGLLogger: Duplikat gelöscht, m_logger Member entfernt, variadische Makros
- Q_FUNC_INFO Redefinition behoben (Qt6 definiert bereits)
- FATAL_LOG Makro hinzugefügt
- InfrastructureManagement DDS-Stubs (ism.hpp, ism_enums.hpp, ism_ftc.h)
- FilterManagement DDS-Stubs (flt_ftc.h, flt_dts.h)
- AreaEffectSimulation DDS-Stubs (aes.hpp, aes_enums.hpp)
- SymbolAppearance Klasse vollständig definiert mit content() Methode
- BuildingComponentFilter Klasse definiert mit Copy-Konstruktor
- Ftc Factory: nullptr Return (abstract class)
- AesFilter Klasse in aes.hpp hinzugefügt
- Dtc Klasse in ppm.hpp mit participantChanged Signal
- AesType Enum: alle 15 At* Werte definiert
- AesEffectState_def: EsReceived hinzugefügt
- DataModification Enum: eAdded/eModified/eRemoved
- function_reply_object.h → core_types.h Include-Pfad (72 Dateien)
- Enum-Class-Streaming Template-Operator in INGLLogger.h
- ism_mounting_point.h: QImage → QtGui/QImage, QGuiApplication/QScreen
- ism_data_plugin_interface.h: QSet Include, Include-Reihenfolge
- QRegExp → QRegularExpression in tpm_js_parser.cpp
- .underlying() Aufrufe zu direktem Enum-Vergleich korrigiert
- Include-Pfade: aes.hpp in symbol_appearance_settings_impl.h und aes_display_filter_impl.h

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
torstenandCopilot committed 2026-08-19 06:06:24 +02:00
1 parent 010f91928a
commit b774f4035c
2785 files changed
+18754 -18316

No files matched your search

@@ -39,28 +39,27 @@ HandlerNasatAircraftParticipant::HandlerNasatAircraftParticipant(Initialization
, m_dts(mainHandler->dds()->dts())
, m_fts(mainHandler->dds()->fts())
, m_db(mainHandler->db())
, m_logger(getLogger("HandlerNasatAircraftParticipant"))
{
DEBUG_LOG(m_logger) << LOGFUNCTION << " START";
DEBUG_LOG(m_logger) << LOGFUNCTION << " END";
DEBUG_LOG() << Q_FUNC_INFO << " START";
DEBUG_LOG() << Q_FUNC_INFO << " END";
}
HandlerNasatAircraftParticipant::~HandlerNasatAircraftParticipant()
{
DEBUG_LOG(m_logger) << LOGFUNCTION << " START";
DEBUG_LOG() << Q_FUNC_INFO << " START";
for (const auto &data : std::as_const(m_nasatAircraftParticipants))
m_dts->removeNasatAircraftByKey(data.id());
DEBUG_LOG(m_logger) << LOGFUNCTION << " END";
DEBUG_LOG() << Q_FUNC_INFO << " END";
}
bool HandlerNasatAircraftParticipant::init()
{
DEBUG_LOG(m_logger) << LOGFUNCTION << " START";
DEBUG_LOG() << Q_FUNC_INFO << " START";
auto cb = [this](const Database::NasatAircraftParticipant & data)
{
const auto dds(fromDb(data));
DEBUG_LOG(m_logger) << "m_nasatAircraftParticipants.insert(" << dds.id() << ")";
DEBUG_LOG() << "m_nasatAircraftParticipants.insert(" << dds.id() << ")";
m_nasatAircraftParticipants.insert(dds.id(), dds);
m_dts->publish(dds);
m_mainHandler->handlerParticipant()->onNasatAircraftParticipantCreated(dds);
@@ -86,16 +85,16 @@ bool HandlerNasatAircraftParticipant::init()
dumpExercises();
});
DEBUG_LOG(m_logger) << "HandlerNasatAircraftParticipant init done";
DEBUG_LOG() << "HandlerNasatAircraftParticipant init done";
DEBUG_LOG(m_logger) << LOGFUNCTION << " START";
DEBUG_LOG() << Q_FUNC_INFO << " START";
return true;
}
void HandlerNasatAircraftParticipant::dumpNasatAircraftParticipants()
{
DEBUG_LOG(m_logger) << LOGFUNCTION << " START, size=" << m_nasatAircraftParticipants.size();
DEBUG_LOG(m_logger) << LOGFUNCTION << " --------------------------------------";
DEBUG_LOG() << Q_FUNC_INFO << " START, size=" << m_nasatAircraftParticipants.size();
DEBUG_LOG() << Q_FUNC_INFO << " --------------------------------------";
auto it = m_nasatAircraftParticipants.begin();
while (it != m_nasatAircraftParticipants.end())
@@ -103,17 +102,17 @@ void HandlerNasatAircraftParticipant::dumpNasatAircraftParticipants()
const auto &id = it.key();
const auto &nap = it.value();
DEBUG_LOG(m_logger) << LOGFUNCTION << " id=" << id << " - nap=" << nap;
DEBUG_LOG() << Q_FUNC_INFO << " id=" << id << " - nap=" << nap;
++it;
}
DEBUG_LOG(m_logger) << LOGFUNCTION << " --------------------------------------";
DEBUG_LOG(m_logger) << LOGFUNCTION << " END, size=" << m_nasatAircraftParticipants.size();
DEBUG_LOG() << Q_FUNC_INFO << " --------------------------------------";
DEBUG_LOG() << Q_FUNC_INFO << " END, size=" << m_nasatAircraftParticipants.size();
}
void HandlerNasatAircraftParticipant::dumpExercises()
{
DEBUG_LOG(m_logger) << LOGFUNCTION << " START, size=" << m_exercises.size();
DEBUG_LOG(m_logger) << LOGFUNCTION << " --------------------------------------";
DEBUG_LOG() << Q_FUNC_INFO << " START, size=" << m_exercises.size();
DEBUG_LOG() << Q_FUNC_INFO << " --------------------------------------";
auto it = m_exercises.begin();
while (it != m_exercises.end())
@@ -121,11 +120,11 @@ void HandlerNasatAircraftParticipant::dumpExercises()
const auto &id = it.key();
const auto &nasatAircraftParticipant = it.value();
DEBUG_LOG(m_logger) << LOGFUNCTION << " id=" << id << " - nasatAircraftParticipant=" << nasatAircraftParticipant;
DEBUG_LOG() << Q_FUNC_INFO << " id=" << id << " - nasatAircraftParticipant=" << nasatAircraftParticipant;
++it;
}
DEBUG_LOG(m_logger) << LOGFUNCTION << " --------------------------------------";
DEBUG_LOG(m_logger) << LOGFUNCTION << " END, size=" << m_exercises.size();
DEBUG_LOG() << Q_FUNC_INFO << " --------------------------------------";
DEBUG_LOG() << Q_FUNC_INFO << " END, size=" << m_exercises.size();
}
void HandlerNasatAircraftParticipant::aircraftRemoved(int nasatAircraftId)
@@ -146,7 +145,7 @@ void HandlerNasatAircraftParticipant::aircraftRemoved(int nasatAircraftId)
void HandlerNasatAircraftParticipant::participantRemoved(int exerciseId, int participantId)
{
DEBUG_LOG(m_logger) << "participantRemoved: " << exerciseId << ", " << participantId;
DEBUG_LOG() << "participantRemoved: " << exerciseId << ", " << participantId;
auto it = m_nasatAircraftParticipants.begin();
while (it != m_nasatAircraftParticipants.end())
{
@@ -180,7 +179,7 @@ bool isExerciseStateValid(ExerciseManagement::ExerciseState_def::type state)
void HandlerNasatAircraftParticipant::onExerciseChanged(const ExerciseManagement::Exercise &exercise, DataModification modType)
{
INFO_LOG(m_logger) << LOGFUNCTION << " START" << " , exercise" << exercise << " , modType" << modType;
INFO_LOG() << Q_FUNC_INFO << " START" << " , exercise" << exercise << " , modType" << modType;
const int exId = exercise.id();
switch (modType)
@@ -191,10 +190,10 @@ void HandlerNasatAircraftParticipant::onExerciseChanged(const ExerciseManagement
const bool valid = isExerciseStateValid(exercise.state().underlying());
if (!valid)
{
INFO_LOG(m_logger) << LOGFUNCTION << " STATE of exId=" << exId
INFO_LOG() << Q_FUNC_INFO << " STATE of exId=" << exId
<< " , state=" << exercise.state();
int cnt = removeNapsOfExercise(exId);
INFO_LOG(m_logger) << LOGFUNCTION << " STATE of exId=" << exId << " not valid : counter of removed naps=" << cnt;
INFO_LOG() << Q_FUNC_INFO << " STATE of exId=" << exId << " not valid : counter of removed naps=" << cnt;
}
}
break;
@@ -206,11 +205,11 @@ void HandlerNasatAircraftParticipant::onExerciseChanged(const ExerciseManagement
const bool valid = isExerciseStateValid(exercise.state().underlying());
if (!valid)
{
INFO_LOG(m_logger) << LOGFUNCTION << " STATE change of exId=" << exId
INFO_LOG() << Q_FUNC_INFO << " STATE change of exId=" << exId
<< " , old state=" << exerciseRef.state()
<< " , new state=" << exercise.state();
int cnt = removeNapsOfExercise(exId);
INFO_LOG(m_logger) << LOGFUNCTION << " STATE change of exId=" << exId << " : counter of removed naps=" << cnt;
INFO_LOG() << Q_FUNC_INFO << " STATE change of exId=" << exId << " : counter of removed naps=" << cnt;
}
}
m_exercises[exId] = exercise;
@@ -219,13 +218,13 @@ void HandlerNasatAircraftParticipant::onExerciseChanged(const ExerciseManagement
case DataModification::eRemoved:
{
int cnt = removeNapsOfExercise(exId);
INFO_LOG(m_logger) << LOGFUNCTION << " STATE change of Exercise, counter of removed naps=" << cnt;
INFO_LOG() << Q_FUNC_INFO << " STATE change of Exercise, counter of removed naps=" << cnt;
m_exercises.remove(exId);
}
break;
}
INFO_LOG(m_logger) << LOGFUNCTION << " END" << " , exercise" << exercise << " , modType" << modType;
INFO_LOG() << Q_FUNC_INFO << " END" << " , exercise" << exercise << " , modType" << modType;
}
void HandlerNasatAircraftParticipant::removeNasatAircraftParticipant(const NasatAircraftParticipant &val)
@@ -239,10 +238,10 @@ void HandlerNasatAircraftParticipant::removeNasatAircraftParticipant(const Nasat
void HandlerNasatAircraftParticipant::onModifyNasatAircraftParticipantRequest(const rti::core::SampleIdentity &cookie,
const NasatAircraftParticipant &request)
{
DEBUG_LOG(m_logger) << "onModifyNasatAircraftParticipantRequest: " << request;
DEBUG_LOG() << "onModifyNasatAircraftParticipantRequest: " << request;
auto ret = request.id() <= 0 ? createNasatAircraftParticipantRequest(request) : modifyNasatAircraftParticipantRequest(request);
if (ret.error())
WARNING_LOG(m_logger) << ret();
WARNING_LOG() << ret();
m_fts->modifyNasatAircraftParticipantReply(cookie, ret);
}
@@ -300,7 +299,7 @@ Core::FunctionReplyObject HandlerNasatAircraftParticipant::modifyNasatAircraftPa
int HandlerNasatAircraftParticipant::removeNapsOfExercise(int exerciseId)
{
DEBUG_LOG(m_logger) << LOGFUNCTION << " START, exerciseId=" << exerciseId
DEBUG_LOG() << Q_FUNC_INFO << " START, exerciseId=" << exerciseId
<< ", m_nasatAircraftParticipants.size()" << m_nasatAircraftParticipants.size();
int count = 0;
QHash<int, NasatAircraftParticipant> napsCopy = m_nasatAircraftParticipants;
@@ -309,7 +308,7 @@ int HandlerNasatAircraftParticipant::removeNapsOfExercise(int exerciseId)
{
if (nap.exerciseId() == exerciseId)
{
DEBUG_LOG(m_logger) << LOGFUNCTION << " nap has to be removed: nap=" << nap;
DEBUG_LOG() << Q_FUNC_INFO << " nap has to be removed: nap=" << nap;
NasatAircraftParticipant napToTriggerRemoving;
napToTriggerRemoving.id(nap.id());
@@ -320,7 +319,7 @@ int HandlerNasatAircraftParticipant::removeNapsOfExercise(int exerciseId)
++count;
}
}
DEBUG_LOG(m_logger) << LOGFUNCTION << " END, exerciseId=" << exerciseId
DEBUG_LOG() << Q_FUNC_INFO << " END, exerciseId=" << exerciseId
<< ", m_nasatAircraftParticipants.size()" << m_nasatAircraftParticipants.size()
<< ", counter=" << count;
return count;