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

@@ -23,7 +23,6 @@ PartyHandling::PartyHandler::PartyHandler(MainHandler *mainHandler)
, SyncPartiesRequestHandler(mainHandler->exerciseId() <= 0 ? nullptr : mainHandler->fts())
, ChangePartyUsedStateRequestHandler(mainHandler->fts())
, m_mainHandler(mainHandler)
, m_logger(getLogger("PartyHandler"))
{
}
@@ -49,7 +48,7 @@ bool PartyHandling::PartyHandler::init()
// read parties from db
if (!m_mainHandler->db()->select(partyVec))
{
ERROR_LOG(m_logger) << "Error while reading party data from database";
ERROR_LOG() << "Error while reading party data from database";
return false;
}
@@ -60,7 +59,7 @@ bool PartyHandling::PartyHandler::init()
if (partyVec.isEmpty())
{
ERROR_LOG(m_logger) << "Error while reading party data from database";
ERROR_LOG() << "Error while reading party data from database";
return false;
}
@@ -78,7 +77,7 @@ bool PartyHandling::PartyHandler::init()
//------------------------------------------------------------------------------------------
void PartyHandling::PartyHandler::resetAdlerProperties( QString &properties, const int partyId)
{
DEBUG_LOG(m_logger) << "properties: " << properties;
DEBUG_LOG() << "properties: " << properties;
QJsonObject obj = QJsonDocument::fromJson(properties.toUtf8()).object();
if (!obj.contains(QStringLiteral("Adler")))
@@ -88,7 +87,7 @@ void PartyHandling::PartyHandler::resetAdlerProperties( QString &properties, con
if (connectState == ParticipantManagement::ConnectState::Undefined)
return;
DEBUG_LOG(m_logger) << "connectState: " << connectState;
DEBUG_LOG() << "connectState: " << connectState;
if (connectState != ParticipantManagement::ConnectState::Disconnected)
{
@@ -98,7 +97,7 @@ void PartyHandling::PartyHandler::resetAdlerProperties( QString &properties, con
const QByteArray propertiesStr = QJsonDocument(obj).toJson(QJsonDocument::Compact);
properties = QString::fromStdString(propertiesStr.data());
INFO_LOG(m_logger) << "isSaaConnected set to false";
INFO_LOG() << "isSaaConnected set to false";
}
}
@@ -111,7 +110,7 @@ QVector<Database::PpmParty> PartyHandling::PartyHandler::loadDefaultParties(bool
QVector<Database::PpmParty> partyVec;
if (!m_mainHandler->dbEx0()->select(partyVec))
ERROR_LOG(m_logger) << "Error while reading party data from database (ex_0)";
ERROR_LOG() << "Error while reading party data from database (ex_0)";
auto cb = [](const Database::PpmParty &p1,const Database::PpmParty &p2) -> bool
{
@@ -140,7 +139,7 @@ void PartyHandling::PartyHandler::onModifyPartyDataRequest(const rti::core::Samp
{
auto ret = modifyPartyDataRequest(request);
if (ret.error())
WARNING_LOG(m_logger) << ret();
WARNING_LOG() << ret();
m_mainHandler->fts()->modifyPartyDataReply(cookie, ret);
}
@@ -148,7 +147,7 @@ void PartyHandling::PartyHandler::onModifyPartyDataRequest(const rti::core::Samp
//------------------------------------------------------------------------------------------
Core::FunctionReplyObject PartyHandling::PartyHandler::modifyPartyDataRequest(const ParticipantManagement::Party &request)
{
DEBUG_LOG(m_logger) << "onModifyPartyDataRequest: " << request;
DEBUG_LOG() << "onModifyPartyDataRequest: " << request;
Party *partyToPublish = m_parties.value(request.id());
if (!partyToPublish && request.id() >= 0)
@@ -157,7 +156,7 @@ Core::FunctionReplyObject PartyHandling::PartyHandler::modifyPartyDataRequest(co
if (!partyToPublish) // create new party
{
DEBUG_LOG(m_logger) << "Creating new party";
DEBUG_LOG() << "Creating new party";
// insert into database
Database::PpmParty newDbParty;
@@ -173,7 +172,7 @@ Core::FunctionReplyObject PartyHandling::PartyHandler::modifyPartyDataRequest(co
if (!m_mainHandler->db()->insert(newDbParty))
{
QString errText = m_mainHandler->db()->getLastError().databaseText();
ERROR_LOG(m_logger) << "Error inserting Party into database: " << errText;
ERROR_LOG() << "Error inserting Party into database: " << errText;
return Core::FunctionReplyObject(request.id(), tr_lts("dds", "Error inserting new party to database: %1")).arg(errText);
}
@@ -182,7 +181,7 @@ Core::FunctionReplyObject PartyHandling::PartyHandler::modifyPartyDataRequest(co
}
else // modify existing party
{
DEBUG_LOG(m_logger) << "Modifying party with id " << partyToPublish->id();
DEBUG_LOG() << "Modifying party with id " << partyToPublish->id();
if (!partyToPublish->hasChanges(request, true))
partyToPublish = nullptr; // so it will not be published at the end of this method ...
@@ -204,10 +203,10 @@ Core::FunctionReplyObject PartyHandling::PartyHandler::modifyPartyDataRequest(co
void PartyHandling::PartyHandler::onRemovePartyRequest(const rti::core::SampleIdentity &cookie,
const ParticipantManagement::RemovePartyRequest &request)
{
DEBUG_LOG(m_logger) << "onRemovePartyRequest: " << request;
DEBUG_LOG() << "onRemovePartyRequest: " << request;
auto ret = removePartyRequest(request);
if (ret.error())
WARNING_LOG(m_logger) << ret();
WARNING_LOG() << ret();
m_mainHandler->fts()->removePartyReply(cookie, ret);
}
@@ -215,7 +214,7 @@ void PartyHandling::PartyHandler::onRemovePartyRequest(const rti::core::SampleId
//------------------------------------------------------------------------------------------
Core::FunctionReplyObject PartyHandling::PartyHandler::removePartyRequest(const ParticipantManagement::RemovePartyRequest &request)
{
DEBUG_LOG(m_logger) << "onRemovePartyRequest " << request;
DEBUG_LOG() << "onRemovePartyRequest " << request;
if (request.partyId() < 0)
return Core::FunctionReplyObject(tr_lts("dds", "Got request to delete a party, but no valid party id to delete"));
@@ -228,7 +227,7 @@ Core::FunctionReplyObject PartyHandling::PartyHandler::removePartyRequest(const
if (partyToDelete->isUsedBy() == true)
return Core::FunctionReplyObject(tr_lts("dds", "Not possible to delete a party in use"));
DEBUG_LOG(m_logger) << "Removing party with ID " << request.partyId();
DEBUG_LOG() << "Removing party with ID " << request.partyId();
return removeParty(partyToDelete);
}
@@ -254,7 +253,7 @@ Core::FunctionReplyObject PartyHandling::PartyHandler::removeParty(Party *partyT
void PartyHandling::PartyHandler::onSyncPartiesRequest(const rti::core::SampleIdentity &cookie,
const ParticipantManagement::SyncPartiesRequest &request)
{
DEBUG_LOG(m_logger) << "onSyncPartiesRequest: " << request;
DEBUG_LOG() << "onSyncPartiesRequest: " << request;
Core::FunctionReplyObject rep;
QVector<Database::PpmParty> partyVec = loadDefaultParties(false);
@@ -262,7 +261,7 @@ void PartyHandling::PartyHandler::onSyncPartiesRequest(const rti::core::SampleId
for (auto it = partyVec.begin(); it != partyVec.end(); ++it)
{
int partyId = (*it).id;
DEBUG_LOG(m_logger) << "Checking Party Id: " << partyId;
DEBUG_LOG() << "Checking Party Id: " << partyId;
Database::PpmParty partyEx0 = (*it);
@@ -273,12 +272,12 @@ void PartyHandling::PartyHandler::onSyncPartiesRequest(const rti::core::SampleId
if (!m_mainHandler->db()->insert(partyEx0))
{
QString errText = m_mainHandler->db()->getLastError().databaseText();
WARNING_LOG(m_logger) << "Error inserting new party with id " << partyId << " to database: " << errText;
WARNING_LOG() << "Error inserting new party with id " << partyId << " to database: " << errText;
continue;
}
else
{
DEBUG_LOG(m_logger) << "Inserting Party Id: " << partyId;
DEBUG_LOG() << "Inserting Party Id: " << partyId;
PartyHandling::Party *newParty = new PartyHandling::Party(partyEx0);
m_parties.insert(partyEx0.id, newParty);
m_mainHandler->dts()->publish(newParty->toDdsParty());
@@ -294,7 +293,7 @@ void PartyHandling::PartyHandler::onSyncPartiesRequest(const rti::core::SampleId
|| partyEx0.hlaForceIdentifier != partyEx->toDbParty().hlaForceIdentifier
|| partyEx0.roleId != partyEx->toDbParty().roleId;
DEBUG_LOG(m_logger) << "Has changes = " << hasChanges;
DEBUG_LOG() << "Has changes = " << hasChanges;
if (hasChanges)
{
@@ -313,7 +312,7 @@ void PartyHandling::PartyHandler::onSyncPartiesRequest(const rti::core::SampleId
auto ret = modifyPartyDataRequest(req);
if (ret.error())
WARNING_LOG(m_logger) << ret();
WARNING_LOG() << ret();
}
}
}
@@ -333,14 +332,14 @@ void PartyHandling::PartyHandler::onSyncPartiesRequest(const rti::core::SampleId
}
if (!found)
{
DEBUG_LOG(m_logger) << "Party id to be deleted = " << curParty->id();
DEBUG_LOG() << "Party id to be deleted = " << curParty->id();
if (curParty->isUsedBy())
INFO_LOG(m_logger) << "Party with id " << curParty->id() << " cannot be deleted, is in use";
INFO_LOG() << "Party with id " << curParty->id() << " cannot be deleted, is in use";
else
{
auto ret = removeParty(curParty); // removed from map etc
if (ret.error())
WARNING_LOG(m_logger) << ret();
WARNING_LOG() << ret();
}
}
}
@@ -353,10 +352,10 @@ void PartyHandling::PartyHandler::onSyncPartiesRequest(const rti::core::SampleId
void PartyHandling::PartyHandler::onChangePartyUsedStateRequest(const rti::core::SampleIdentity &cookie,
const ParticipantManagement::ChangePartyUsedStateRequest &request)
{
DEBUG_LOG(m_logger) << "onChangePartyUsedStateRequest: " << request;
DEBUG_LOG() << "onChangePartyUsedStateRequest: " << request;
auto ret = changePartyUsedStateRequest(request);
if (ret.error())
WARNING_LOG(m_logger) << ret();
WARNING_LOG() << ret();
m_mainHandler->fts()->changePartyUsedStateReply(cookie, ret);
}
@@ -375,7 +374,7 @@ Core::FunctionReplyObject PartyHandling::PartyHandler::changePartyUsedStateReque
if (!m_mainHandler->db()->update(party->toDbParty()))
return Core::FunctionReplyObject(request.partyId(), tr_lts("dds", "Error updating party used state in database"));
DEBUG_LOG(m_logger) << "Change used state for party " << party->id() << " to " << party->isUsedBy();
DEBUG_LOG() << "Change used state for party " << party->id() << " to " << party->isUsedBy();
m_mainHandler->dts()->publish(party->toDdsParty());
}
return Core::FunctionReplyObject(request.partyId());