Migrates remaining services and plugins to generated rtiddsgen API

Converts accessor calls to plain member access across the residual service set.
This commit is contained in:
berrux-dev committed 2026-09-21 02:47:48 +02:00
1 parent 6a8c31b735
commit c3eda18234
104 files changed
+2424 -2430

No files matched your search

@@ -56,16 +56,16 @@ bool HandlerInjuryModel::init()
void HandlerInjuryModel::onModifyInjuryModelAgdusWhRequest(const rti::core::SampleIdentity &cookie, const InjuryModelAgdusWh &request)
{
DEBUG_LOG(m_logger) << "onModifyInjuryModelAgdusWhRequest() id:" << request.id();
DEBUG_LOG(m_logger) << "onModifyInjuryModelAgdusWhRequest() id:" << request.id;
Core::FunctionReplyObject ret;
if (request.id() <= 0)
if (request.id <= 0)
{
Database::InjuryModelAgdusWh data;
data.id = request.id();
data.name = QString::fromStdString(request.name());
data.version = QString::fromStdString(request.version());
data.beschreibung = QString::fromStdString(request.description());
data.id = request.id;
data.name = QString::fromStdString(request.name);
data.version = QString::fromStdString(request.version);
data.beschreibung = QString::fromStdString(request.description);
ObjectInjuryModel *ifs(new ObjectInjuryModel(m_mainHandler));
ret = ifs->createObject(data);
@@ -82,18 +82,18 @@ void HandlerInjuryModel::onModifyInjuryModelAgdusWhRequest(const rti::core::Samp
else
{
ObjectInjuryModel *ifs = m_injurymodelObjMap.value(request.id());
ObjectInjuryModel *ifs = m_injurymodelObjMap.value(request.id);
if (ifs == nullptr)
{
ret = Core::FunctionReplyObject(request.id(), tr_lts("dds", "InjuryModel with id %1 not found")).arg(request.id());
ret = Core::FunctionReplyObject(request.id, tr_lts("dds", "InjuryModel with id %1 not found")).arg(request.id);
m_mainHandler->dds()->fts()->modifyInjuryModelAgdusWhReply(cookie, ret);
return;
}
Database::InjuryModelAgdusWh data = ifs->getData();
data.name = QString::fromStdString(request.name());
data.version = QString::fromStdString(request.version());
data.beschreibung = QString::fromStdString(request.description());
data.name = QString::fromStdString(request.name);
data.version = QString::fromStdString(request.version);
data.beschreibung = QString::fromStdString(request.description);
ret = ifs->updateObject(data);
}
@@ -106,13 +106,13 @@ void HandlerInjuryModel::onModifyInjuryModelAgdusWhRequest(const rti::core::Samp
void HandlerInjuryModel::onRemoveInjuryModelAgdusWhRequest(const rti::core::SampleIdentity &cookie, const Core::RemoveElementRequest &request)
{
DEBUG_LOG(m_logger) << "onRemoveInjuryModelAgdusWhRequest() id:" << request.id();
DEBUG_LOG(m_logger) << "onRemoveInjuryModelAgdusWhRequest() id:" << request.id;
Core::FunctionReplyObject ret;
ObjectInjuryModel *ifs = m_injurymodelObjMap.value(request.id());
ObjectInjuryModel *ifs = m_injurymodelObjMap.value(request.id);
if (ifs == nullptr)
{
ret = Core::FunctionReplyObject(request.id(), tr_lts("dds", "InjuryModel with id %1 not found")).arg(request.id());
ret = Core::FunctionReplyObject(request.id, tr_lts("dds", "InjuryModel with id %1 not found")).arg(request.id);
m_mainHandler->dds()->fts()->removeInjuryModelAgdusWhReply(cookie, ret);
return;
}
@@ -125,7 +125,7 @@ void HandlerInjuryModel::onRemoveInjuryModelAgdusWhRequest(const rti::core::Samp
{
// delete ObjectInjuryModel
delete ifs;
m_injurymodelObjMap.remove(request.id());
m_injurymodelObjMap.remove(request.id);
}
m_mainHandler->dds()->fts()->removeInjuryModelAgdusWhReply(cookie, ret);