Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/include/DDS/Generic/generic_data_reader.h
T
torsten 851d47e114 BUILD_RTI=OFF: 1902/1902 Targets erfolgreich, DDS-Stubs vervollständigt
Neue Stub-Header für BUILD_RTI=OFF Konfiguration:
- include/DDS/Generic/generic_base.h: Topic-Name-Templates, Helper-Funktionen
- include/DDS/Generic/generic_logger.h: Logger-Wrapper mit DataType-Enum
- include/DDS/Generic/ddsgen_export.h: Export-Makros (leer für OFF)
- include/DDS/Generic/generic_data_reader.h: Data Reader Template-Stub
- include/DDS/DTC/generic_dtc.h: Minimale DDS-Typen für DTC
- include/LtsUtils/LtsUtilsCore/data_modification_enum.h: DataModification Enum
- include/FileManagement/flm_dtc_impl.h: Virtuelle Methoden für Name-Helper
- include/OperatorManagement/opm_dtc_impl.h: DtcImpl ohne Q_OBJECT

Wichtige Änderungen:
- QObject-Basisklasse entfernt für DatabaseInterfaceImpl und DtcImpl (BUILD_RTI=OFF)
- Logger-Stub verwendet Qt-Logging (qDebug/qWarning/qCritical)
- FileStatus als int-Alias statt enum class für BUILD_RTI=OFF
- CMake: DDS-Bibliotheken als leere INTERFACE-Targets für BUILD_RTI=OFF
- std::optional: is_set() → has_value(), get() → value()
- QList → std::vector Konversionen korrigiert
- qAsConst-Fehler mit rvalue expressions behoben

Build-Status: 1902/1902 Targets erfolgreich (BUILD_RTI=OFF)
Tests: Nicht ausführbar ohne RTI Connext DDS (BUILD_RTI=ON erforderlich)
2026-08-30 10:36:47 +02:00

44 lines
1001 B
C++

#pragma once
/**
* @file generic_data_reader.h
* @brief Stub header for BUILD_RTI=OFF configuration
*
* This file provides minimal stub definitions for DDS Generic Data Reader
* when RTI Connext DDS is not available (BUILD_RTI=OFF).
*/
#ifdef BUILD_RTI
// RTI DDS is available - include the real implementation
#include <Lts/DDS/Generic/generic_data_reader.h>
#else
// BUILD_RTI=OFF: Provide minimal stub definitions
namespace dds {
namespace sub {
// Forward declaration stub for DataReader
template<typename T>
class DataReader {
public:
// Minimal stub interface - add methods as needed by the codebase
T read() { return T{}; }
void take() {}
};
} // namespace sub
} // namespace dds
// GenericDataReader stub template
template<typename T>
class GenericDataReader {
public:
using DataType = T;
// Minimal stub methods - extend as needed
bool has_data() const { return false; }
T read_data() { return T{}; }
void cleanup() {}
};
#endif // BUILD_RTI