Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/include/DDS/Generic/generic_base.h
T
torstenandCopilot 497baa804b Qt6/RTI 7.7 Migration: Build-System und RTI-Integration fixes
CMake Build-System:
- NGL_ADD_SUBDIR_GUARDED() vor erstem Aufruf definiert (Zeile 38)
- Z/src wird VOR ENABLE_TESTING() eingebunden
- InfrastructureManagement an Anfang von Lts/Services CMakeLists.txt
- ALIAS Targets für RTI nur für existierende Libraries erstellt

RTI 7.7 Integration:
- generic_base.h: QMetaMethod Include hinzugefügt
- generic_data_reader.h: Template-Signatur auf 2 Parameter angepasst
  - detail::DataReaderImpl<Q> als Default-Template-Parameter

Qt6 Location Support:
- Dockerfile: qtlocation und qtpositioning Module hinzugefügt

Dokumentation:
- C++23 Inkompatibilität mit RTI 7.7 in copilot-instructions.md
- EXTERNAL_DEPENDENCIES.md Strategie dokumentiert

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-30 13:36:41 +02:00

51 lines
1.3 KiB
C++

#pragma once
// Stub header for BUILD_RTI=OFF
// Original generic_base.h uses RTI Connext DDS types
#include <string>
#include <ddsgen_export.h>
#include <QMetaMethod>
// Forward declarations for Qt types used in getMethod
class QObject;
// Forward declaration for NGL logger
namespace NGL {
class INGLLogger;
}
namespace DDS
{
// Template for topic type name - returns empty string for BUILD_RTI=OFF
template<typename T>
struct topic_type_name {
static std::string value() {
return "";
}
};
namespace Helper
{
// Stub implementations for BUILD_RTI=OFF
DDSGEN_EXPORT inline std::string getFunctionTopicName(const std::string &fqName) {
return fqName;
}
DDSGEN_EXPORT inline std::string getShortTopicName(const std::string &fqName) {
return fqName;
}
// Stub for getMethod - returns default-constructed QMetaMethod
DDSGEN_EXPORT inline QMetaMethod getMethod(NGL::INGLLogger &logger,
QObject *objectToInform,
const char *slotToExecute,
const char *signalSignature,
bool bWarnOnEmptySlot = true) {
// Stub implementation - returns default QMetaMethod
return QMetaMethod();
}
}
} // namespace DDS