Files
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

52 lines
1.5 KiB
C++
Executable File

/**
* @RDE_HEADER@
* The DataManager class is a convenience class for managing structure data
* $Id$
* $HeadURL$
* $Author$
* Created by Philipp Dassow, SLST, 2017-12-05
*/
#pragma once
#include <LtsWebSocket/data_manager_base_dl.h>
#include <ParticipantManagement/ppm_db.h>
#include <ParticipantManagement/ppm.hpp>
#include "logger.h"
namespace ParticipantManagement
{
class MainHandler;
namespace WebSocketInterface
{
/**
* @brief The DataManager class is a convenience class for managing structure data
*/
class DataManager final : public LtsWebSocket::DataManagerBaseDl<DatabaseInterface>
{
public:
/**
* @brief DataManager Constructor
* @param mainHandler Source for needed handlers
*/
explicit DataManager(int exerciseId,
const std::shared_ptr<DatabaseInterface> &dbInterface,
const std::shared_ptr<ParticipantManagement::Interface::Dtc> &dtc);
int exerciseId() const { return m_exerciseId; }
LtsWebSocket::ReplyMessage *equipmentTypeBaseData(const QString &uuid) const;
LtsWebSocket::ReplyMessage *typeBaseData(const QString &uuid) const;
LtsWebSocket::ReplyMessage *partyBaseData(const QString &uuid) const;
LtsWebSocket::ReplyMessage *participantBaseData(const QString &uuid) const;
LtsWebSocket::ReplyMessage *ocPositionData(int equipmentNr, const QString &uuid) const;
private:
int m_exerciseId;
std::shared_ptr<ParticipantManagement::Interface::Dtc> m_ppmDtc;
}; // class DataManager
} // namespace WebSocketInterface
} // namespace ParticipantManagement