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:
2785 files changed
+18754
-18316
No files matched your search
+30
-31
@@ -59,7 +59,6 @@ CesTests::CesTests(QObject *parent)
|
||||
, TrainingAreaBase::Interface::Fts::SendCesHitRequestHandler(nullptr)
|
||||
, m_bTestsSuccessful(true)
|
||||
, m_housePos(LtsCoordTrans::UtmCoordinate::fromMgrs(QStringLiteral("32UMD8000090000")))
|
||||
, m_logger(getLogger("CesTests"))
|
||||
, m_testId(0)
|
||||
, m_buildingId(0)
|
||||
, m_roomId(0)
|
||||
@@ -77,7 +76,7 @@ CesTests::CesTests(QObject *parent)
|
||||
bool CesTests::init(int domainId, int exerciseId, int testId, int roomId)
|
||||
{
|
||||
bool bRet = true;
|
||||
INFO_LOG(m_logger) << "init begin";
|
||||
INFO_LOG() << "init begin";
|
||||
|
||||
m_testId = testId;
|
||||
m_roomId = roomId;
|
||||
@@ -97,7 +96,7 @@ bool CesTests::init(int domainId, int exerciseId, int testId, int roomId)
|
||||
bRet &= m_aesDts->enableBorderline();
|
||||
bRet &= m_aesDts->enableDusMineState();
|
||||
bRet &= m_aesDts->enableMineArea();
|
||||
DEBUG_LOG(m_logger) << "AES Dts create interface bRet:" << bRet ;
|
||||
DEBUG_LOG() << "AES Dts create interface bRet:" << bRet ;
|
||||
|
||||
m_ismDts = InfrastructureManagement::Interface::Dts::create(m_ddsConnector42);
|
||||
bRet &= m_ismDts->enableMainStructureElement();
|
||||
@@ -142,7 +141,7 @@ bool CesTests::init(int domainId, int exerciseId, int testId, int roomId)
|
||||
|
||||
void CesTests::startTest()
|
||||
{
|
||||
INFO_LOG(m_logger) << "startTest m_testId:" << m_testId;
|
||||
INFO_LOG() << "startTest m_testId:" << m_testId;
|
||||
if (m_testId <= 1) // AES-Hit On Buildings area explosions
|
||||
{
|
||||
m_countHitOnBuildingReply = 0;
|
||||
@@ -465,7 +464,7 @@ void CesTests::tryCreateTriggeredExplosion()
|
||||
ti.bitfield().resize(1);
|
||||
ti.bitfield()[0] = 0; // 0 = Mine active
|
||||
|
||||
DEBUG_LOG(m_logger) << "Publishing TriggeredExplosions: " << ti;
|
||||
DEBUG_LOG() << "Publishing TriggeredExplosions: " << ti;
|
||||
if (!m_aesDts->publish(ti))
|
||||
failExit("Error publishing TriggeredExplosions");
|
||||
}
|
||||
@@ -477,7 +476,7 @@ void CesTests::tryCreateExplosionArea()
|
||||
ea.participantId(m_originatorParticipantId); // In ddsview <not set>
|
||||
ea.effectStateId(AreaEffectSimulation::AesEffectState::inner_enum::EsPrepared);
|
||||
|
||||
DEBUG_LOG(m_logger) << "Publishing ExplosionArea: " << ea;
|
||||
DEBUG_LOG() << "Publishing ExplosionArea: " << ea;
|
||||
if (!m_aesDts->publish(ea))
|
||||
failExit("Error publishing ExplosionArea");
|
||||
}
|
||||
@@ -506,7 +505,7 @@ void CesTests::tryCreateExplosionSinglePrepared()
|
||||
m_es.sampleTime(QDateTime::currentMSecsSinceEpoch());
|
||||
m_es.chargeStruct().chargeTypeId(m_chargeTypeId);
|
||||
|
||||
DEBUG_LOG(m_logger) << "Publishing ExplosionSingle: " << m_es;
|
||||
DEBUG_LOG() << "Publishing ExplosionSingle: " << m_es;
|
||||
if (!m_aesDts->publish(m_es))
|
||||
failExit("Error publishing ExplosionSingle");
|
||||
}
|
||||
@@ -522,14 +521,14 @@ void CesTests::tryCreateExplosionSingle()
|
||||
m_es.effectStateId(AreaEffectSimulation::AesEffectState_def::EsActivated);
|
||||
m_es.sampleTime(QDateTime::currentMSecsSinceEpoch());
|
||||
|
||||
DEBUG_LOG(m_logger) << "Publishing ExplosionSingle: " << m_es;
|
||||
DEBUG_LOG() << "Publishing ExplosionSingle: " << m_es;
|
||||
if (!m_aesDts->publish(m_es))
|
||||
failExit("Error publishing ExplosionSingle");
|
||||
}
|
||||
|
||||
void CesTests::tryCreateAesItemView()
|
||||
{
|
||||
INFO_LOG(m_logger) << "trying to send AesItemView AtExplosionArea";
|
||||
INFO_LOG() << "trying to send AesItemView AtExplosionArea";
|
||||
|
||||
m_aiv = AreaEffectSimulation::AesItemView();
|
||||
m_aiv.aesItemId(m_aesItemId);
|
||||
@@ -548,7 +547,7 @@ void CesTests::tryCreateAesItemView()
|
||||
setPos(m_aiv.form(), m_housePos.geographic(30, 30));
|
||||
setPos(m_aiv.form(), m_housePos.geographic(30, -10));
|
||||
|
||||
DEBUG_LOG(m_logger) << "Publishing AesItemView: " << m_aiv;
|
||||
DEBUG_LOG() << "Publishing AesItemView: " << m_aiv;
|
||||
if (!m_aesDts->publish(m_aiv))
|
||||
failExit("Error publishing AesItemView");
|
||||
}
|
||||
@@ -558,13 +557,13 @@ void CesTests::tryCreateChargeType()
|
||||
ProjectDataManagement::ChargeType ct;
|
||||
ct.id(m_chargeTypeId);
|
||||
ct.properties("{\"impactRadius\":5}");
|
||||
DEBUG_LOG(m_logger) << "Publishing ChargeType: " << ct;
|
||||
DEBUG_LOG() << "Publishing ChargeType: " << ct;
|
||||
if (!m_pdmDts->publish(ct))
|
||||
failExit("Error publishing ChargeType");
|
||||
|
||||
ct.id(40); // old charge type 10040 -> 40, hard-codded?!
|
||||
ct.properties("{\"impactRadius\":6}");
|
||||
DEBUG_LOG(m_logger) << "Publishing ChargeType: " << ct;
|
||||
DEBUG_LOG() << "Publishing ChargeType: " << ct;
|
||||
if (!m_pdmDts->publish(ct))
|
||||
failExit("Error publishing ChargeType");
|
||||
}
|
||||
@@ -592,7 +591,7 @@ void CesTests::tryCreateAesItemViewSingleExplosions()
|
||||
setPos(m_aiv.form(), m_housePos.geographic(-10, 20));
|
||||
setPos(m_aiv.form(), m_housePos.geographic(-10, 30));
|
||||
|
||||
DEBUG_LOG(m_logger) << "Publishing AesItemView: " << m_aiv;
|
||||
DEBUG_LOG() << "Publishing AesItemView: " << m_aiv;
|
||||
if (!m_aesDts->publish(m_aiv))
|
||||
failExit("Error publishing AesItemView");
|
||||
}
|
||||
@@ -616,7 +615,7 @@ void CesTests::tryCreateAesItemViewBC(AreaEffectSimulation::AesEffectState desir
|
||||
setPos(m_aiv.form(), m_housePos.geographic(35, 35));
|
||||
setPos(m_aiv.form(), m_housePos.geographic(35, 3));
|
||||
|
||||
DEBUG_LOG(m_logger) << "Publishing AesItemView: " << m_aiv;
|
||||
DEBUG_LOG() << "Publishing AesItemView: " << m_aiv;
|
||||
if (!m_aesDts->publish(m_aiv))
|
||||
failExit("Error publishing AesItemView");
|
||||
}
|
||||
@@ -641,14 +640,14 @@ void CesTests::tryCreateAesItemViewSM()
|
||||
setPos(m_aiv.form(), m_housePos.geographic(35, 35));
|
||||
setPos(m_aiv.form(), m_housePos.geographic(35, 3));
|
||||
|
||||
DEBUG_LOG(m_logger) << "Publishing AesItemView: " << m_aiv;
|
||||
DEBUG_LOG() << "Publishing AesItemView: " << m_aiv;
|
||||
if (!m_aesDts->publish(m_aiv))
|
||||
failExit("Error publishing AesItemView");
|
||||
}
|
||||
|
||||
void CesTests::tryCreateAesItemViewMA()
|
||||
{
|
||||
INFO_LOG(m_logger) << "trying to send AesItemView AtMineArea";
|
||||
INFO_LOG() << "trying to send AesItemView AtMineArea";
|
||||
|
||||
m_aiv = AreaEffectSimulation::AesItemView();
|
||||
m_aiv.aesItemId(m_aesItemId);
|
||||
@@ -668,7 +667,7 @@ void CesTests::tryCreateAesItemViewMA()
|
||||
setPos(m_aiv.form(), m_housePos.geographic(37, 37));
|
||||
setPos(m_aiv.form(), m_housePos.geographic(37, 1));
|
||||
|
||||
DEBUG_LOG(m_logger) << "Publishing AesItemView: " << m_aiv;
|
||||
DEBUG_LOG() << "Publishing AesItemView: " << m_aiv;
|
||||
if (!m_aesDts->publish(m_aiv))
|
||||
failExit("Error publishing AesItemView");
|
||||
}
|
||||
@@ -690,7 +689,7 @@ void CesTests::tryCreateBorderline()
|
||||
setPos(bl.segments(), m_housePos.geographic(5, 3));
|
||||
|
||||
bl.isDeleted(false);
|
||||
DEBUG_LOG(m_logger) << "Publishing BorderLine: " << bl;
|
||||
DEBUG_LOG() << "Publishing BorderLine: " << bl;
|
||||
if (!m_aesDts->publish(bl))
|
||||
failExit("Error publishing Borderline");
|
||||
}
|
||||
@@ -709,7 +708,7 @@ void CesTests::tryCreateMainStructureElement()
|
||||
m_mse.angle(318.83);
|
||||
m_mse.modelId(1337);
|
||||
m_mse.externalWlsId(0);
|
||||
DEBUG_LOG(m_logger) << "Publishing MainStructureElement: " << m_mse;
|
||||
DEBUG_LOG() << "Publishing MainStructureElement: " << m_mse;
|
||||
if (!m_ismDts->publish(m_mse))
|
||||
failExit("Error publishing MainStructureElement");
|
||||
}
|
||||
@@ -740,7 +739,7 @@ void CesTests::tryCreateMainFootprint()
|
||||
elem.relPosition(Core::RelativePosition(0.0, 10.0, 0.0));
|
||||
mf.elements().push_back(elem);
|
||||
|
||||
DEBUG_LOG(m_logger) << "Publishing MainFootprint: " << mf;
|
||||
DEBUG_LOG() << "Publishing MainFootprint: " << mf;
|
||||
if (!m_ismDts->publish(mf))
|
||||
failExit("Error publishing MainFootprint");
|
||||
}
|
||||
@@ -759,7 +758,7 @@ void CesTests::tryCreateDynamicParticipantData()
|
||||
|
||||
dp.sampleTime(si.stateTime());
|
||||
|
||||
DEBUG_LOG(m_logger) << "Publishing DynamicParticipantData: " << dp;
|
||||
DEBUG_LOG() << "Publishing DynamicParticipantData: " << dp;
|
||||
if (!m_ppmDts->publish(dp))
|
||||
failExit("Error publishing DynamicParticipantData");
|
||||
}
|
||||
@@ -783,7 +782,7 @@ void CesTests::tryCreateParticipantPosition()
|
||||
pp.pos(pos);
|
||||
m_expectedPosition[pp.participantId()] = Core::GeoPosition2D(posF.x(), posF.y());
|
||||
|
||||
DEBUG_LOG(m_logger) << "Publishing ParticipantPosition: " << pp;
|
||||
DEBUG_LOG() << "Publishing ParticipantPosition: " << pp;
|
||||
if (!m_ppmDts->publish(pp))
|
||||
failExit("Error publishing ParticipantPosition");
|
||||
}
|
||||
@@ -813,7 +812,7 @@ void CesTests::tryCreateBuildingState()
|
||||
rs.remainingEffectPercent(60);
|
||||
bs.roomStates().push_back(rs);
|
||||
|
||||
DEBUG_LOG(m_logger) << "Publishing BuildingState: " << bs;
|
||||
DEBUG_LOG() << "Publishing BuildingState: " << bs;
|
||||
if (!m_bldDts->publish(bs))
|
||||
failExit("Error publishing BuildingState");
|
||||
}
|
||||
@@ -834,7 +833,7 @@ void CesTests::onSendCesHitOnBuildingRequest(const rti::core::SampleIdentity &co
|
||||
|
||||
// debug und co
|
||||
m_countHitOnBuildingReply++;
|
||||
DEBUG_LOG(m_logger) << "onSendCesHitOnBuildingRequest cnt = " << m_countHitOnBuildingReply << "\n"
|
||||
DEBUG_LOG() << "onSendCesHitOnBuildingRequest cnt = " << m_countHitOnBuildingReply << "\n"
|
||||
<< " request: " << request << ", "
|
||||
<< dateTime.toString(QStringLiteral("dd.MM.yy - hh:mm:ss.zzz")) << "\n";
|
||||
|
||||
@@ -890,7 +889,7 @@ void CesTests::onSendCesHitRequest(const rti::core::SampleIdentity &cookie,
|
||||
/* comes out with timeout on STTW
|
||||
if (request.effectTime() + 1000 < QDateTime::currentMSecsSinceEpoch())
|
||||
{
|
||||
DEBUG_LOG(m_logger) << "onSendCesHitRequest from previous test - ignoring"
|
||||
DEBUG_LOG() << "onSendCesHitRequest from previous test - ignoring"
|
||||
<< request.effectTime()
|
||||
<< QDateTime::currentMSecsSinceEpoch();
|
||||
return;
|
||||
@@ -898,7 +897,7 @@ void CesTests::onSendCesHitRequest(const rti::core::SampleIdentity &cookie,
|
||||
*/
|
||||
// debug und co
|
||||
const QDateTime dateTime(QDateTime::fromMSecsSinceEpoch(request.effectTime()));
|
||||
DEBUG_LOG(m_logger) << "onSendCesHitRequest" << "\n"
|
||||
DEBUG_LOG() << "onSendCesHitRequest" << "\n"
|
||||
<< " request: " << request << ", "
|
||||
<< dateTime.toString(QStringLiteral("dd.MM.yy - hh:mm:ss.zzz")) << "\n";
|
||||
if (request.remainEffectPercent())
|
||||
@@ -925,7 +924,7 @@ void CesTests::onSendCesHitRequest(const rti::core::SampleIdentity &cookie,
|
||||
// 3 x Enter
|
||||
if (request.remainEffectPercent() == 1)
|
||||
m_replyEnterFunctionalArea ++;
|
||||
DEBUG_LOG(m_logger)<< "m_replyEnterFunctionalArea=" << m_replyEnterFunctionalArea;
|
||||
DEBUG_LOG()<< "m_replyEnterFunctionalArea=" << m_replyEnterFunctionalArea;
|
||||
if (m_replyEnterFunctionalArea == 3)
|
||||
ExitSuccess();
|
||||
break;
|
||||
@@ -969,7 +968,7 @@ void CesTests::checkParticipantEvent()
|
||||
return;
|
||||
}
|
||||
|
||||
DEBUG_LOG(m_logger) << "Waiting for a participant event: " << expectedType;
|
||||
DEBUG_LOG() << "Waiting for a participant event: " << expectedType;
|
||||
|
||||
bool bRet = false;
|
||||
for (int i = 0; i < 50; ++i)
|
||||
@@ -1013,7 +1012,7 @@ void CesTests::tryCreateParticipant()
|
||||
pt.isSimulated(false);
|
||||
pt.equipmentNumber(4711);
|
||||
|
||||
DEBUG_LOG(m_logger) << "Publishing Participant:" << pt;
|
||||
DEBUG_LOG() << "Publishing Participant:" << pt;
|
||||
if (!m_ppmDts->publish(pt))
|
||||
failExit("Error requesting create Participant");
|
||||
}
|
||||
@@ -1021,7 +1020,7 @@ void CesTests::tryCreateParticipant()
|
||||
|
||||
void CesTests::failExit(const char *reason)
|
||||
{
|
||||
ERROR_LOG(m_logger) << "FailExit: " << reason << " for test case = " << m_testId;
|
||||
ERROR_LOG() << "FailExit: " << reason << " for test case = " << m_testId;
|
||||
m_bTestsSuccessful = false;
|
||||
QTimer::singleShot(50, qApp, QCoreApplication::quit);
|
||||
}
|
||||
@@ -1030,7 +1029,7 @@ void CesTests::ExitSuccess()
|
||||
{
|
||||
if (!m_bTestsSuccessful)
|
||||
return;
|
||||
INFO_LOG(m_logger) << "ExitSuccess for test case = " << m_testId;
|
||||
INFO_LOG() << "ExitSuccess for test case = " << m_testId;
|
||||
m_bTestsSuccessful = true;
|
||||
QTimer::singleShot(50, qApp, QCoreApplication::quit);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user