Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Services/TargetManagement/object_shootback_target.h
T
torstenandCopilot 4c9861a469 BUILD_RTI conditional fixes and Qt6 API updates
- cmake/FindRTI.cmake: Add INTERFACE placeholder targets when RTI not found
- cmake/FindRTI.cmake: Force BUILD_RTI=OFF when RTI not installed
- Lts/Common/LtsSession/CMakeLists.txt: Make LtsSessionDataDds conditional on BUILD_RTI
- Lts/Viewer/CMakeLists.txt: Make LtsDataView conditional on BUILD_RTI
- Lts/Plugins/*/CMakeLists.txt: 97 plugin files wrapped in BUILD_RTI conditionals
- cmake/NGLMacros.cmake: Fix NGL_ADD_BIG_RESOURCES macro (removed premature return())
- Multiple Qt6 API fixes: QLinkedList→std::list, QStringRef→QStringView, etc.
- BUILD_RTI_FIXES_SUMMARY.md: Comprehensive documentation of all fixes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-19 09:24:50 +02:00

64 lines
1.6 KiB
C++
Executable File

/**
* Handler ObjectShootbackTargets (L400)
* $Id$
* $HeadURL$
* $Author$
* Created by N. Thoden, NLE, 06.04.2020
*/
#pragma once
#include "dds_handler.h"
#include "logger.h"
#include <Core/core_types.h>
// Generated
#include <TargetManagement/tgt.hpp>
#include <TargetManagement/tgt_db.h>
namespace NGL
{
class INGLLogger;
}
namespace TargetManagement
{
class MainHandler;
class ObjectShootbackTarget
{
public:
explicit ObjectShootbackTarget(MainHandler *mainHandler);
~ObjectShootbackTarget();
Core::FunctionReplyObject createObject(const ShootbackTarget &data);
Core::FunctionReplyObject updateObject(const ShootbackTarget &data);
Core::FunctionReplyObject removeObject();
void updateVolatileData(const std::vector<int32_t> &visibleParticipant);
void updateVolatileData(const Core::GeoPosition &position);
qint32 getId() const { return m_data.id(); }
QString getName() const { return QString::fromStdString(m_data.name()); }
qint32 getTargetParticipantId() const { return m_data.targetParticipantId(); }
const ShootbackTarget &getData() const { return m_data; }
bool isValid() const;
bool isUsed() const;
Core::FunctionReplyObject setUsed(bool isUsed);
// convert methods
static Database::TgtShootbackTarget toDbData(const ShootbackTarget &ddsData); // dds -> db
static ShootbackTarget toDdsData(const Database::TgtShootbackTarget &dbData); // db -> dds
bool isDifferent(const Database::TgtShootbackTarget &dbData);
protected:
void onPublishData();
private:
MainHandler *m_mainHandler;
ShootbackTarget m_data;
};
}