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)
51 lines
1.3 KiB
C++
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>
|
|
|
|
// Forward declarations for Qt types used in getMethod
|
|
class QObject;
|
|
class QMetaMethod;
|
|
|
|
// 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
|