Added test case and setting Test configuration
This commit is contained in:
1 parent
f815271486
commit
a86f9b5bac
48 files changed
+423
-168
No files matched your search
@@ -10,6 +10,13 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#if BUILD_RTI
|
||||
// RTI build: the real headers live in the generated/DDS tree. This directory is
|
||||
// searched first, so hand the lookup on instead of shadowing them with stubs.
|
||||
#include_next <Core/core.hpp>
|
||||
|
||||
#else
|
||||
|
||||
#include <Core/core_types.h>
|
||||
#include <Core/core_enums.hpp>
|
||||
#include <Core/core_dtc.h>
|
||||
@@ -104,4 +111,6 @@ inline std::ostream& operator<<(std::ostream& os, const GeoPosition2D& pos)
|
||||
return os;
|
||||
}
|
||||
|
||||
} // namespace Core
|
||||
} // namespace Core
|
||||
|
||||
#endif // BUILD_RTI
|
||||
@@ -3,6 +3,13 @@
|
||||
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
|
||||
// Für die Migration erstellen wir minimale Forward-Declarations
|
||||
|
||||
#if BUILD_RTI
|
||||
// RTI build: the real headers live in the generated/DDS tree. This directory is
|
||||
// searched first, so hand the lookup on instead of shadowing them with stubs.
|
||||
#include_next <Core/core_dtc.h>
|
||||
|
||||
#else
|
||||
|
||||
namespace DDS
|
||||
{
|
||||
namespace Core
|
||||
@@ -14,3 +21,5 @@ class Ftc;
|
||||
} // namespace Interface
|
||||
} // namespace Core
|
||||
} // namespace DDS
|
||||
|
||||
#endif // BUILD_RTI
|
||||
@@ -3,6 +3,13 @@
|
||||
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
|
||||
// Für die Migration erstellen wir minimale Typ-Definitionen
|
||||
|
||||
#if BUILD_RTI
|
||||
// RTI build: the real headers live in the generated/DDS tree. This directory is
|
||||
// searched first, so hand the lookup on instead of shadowing them with stubs.
|
||||
#include_next <Core/core_enums.hpp>
|
||||
|
||||
#else
|
||||
|
||||
namespace Core
|
||||
{
|
||||
// Placeholder enums - werden durch echte DDS-Typen ersetzt
|
||||
@@ -17,3 +24,5 @@ struct UnitSymbolPosition
|
||||
double z = 0.0;
|
||||
};
|
||||
} // namespace Core
|
||||
|
||||
#endif // BUILD_RTI
|
||||
@@ -11,6 +11,14 @@
|
||||
#include <vector>
|
||||
#include <QtCore/QString>
|
||||
|
||||
#if BUILD_RTI
|
||||
// RTI build: the real headers live in the generated/DDS tree. This directory is
|
||||
// searched first, so hand the lookup on instead of shadowing them with stubs.
|
||||
#include <Core/core.hpp>
|
||||
#include <Core/function_reply_object.h>
|
||||
|
||||
#else
|
||||
|
||||
namespace Core
|
||||
{
|
||||
|
||||
@@ -141,4 +149,6 @@ private:
|
||||
int64_t m_uniqueId = 0;
|
||||
};
|
||||
|
||||
} // namespace Core
|
||||
} // namespace Core
|
||||
|
||||
#endif // BUILD_RTI
|
||||
@@ -8,6 +8,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef BUILD_RTI
|
||||
// Forward to the real implementation in Lts/DDS/. "include/" is searched
|
||||
// before "Lts/", so this header would otherwise shadow it.
|
||||
#include_next <DDS/DTC/generic_dtc.h>
|
||||
#else
|
||||
|
||||
#include <functional>
|
||||
#include <string>
|
||||
#include <LtsUtilsCore/data_modification_enum.h>
|
||||
@@ -98,4 +104,6 @@ class DdtcSampleInfo
|
||||
: public GenericDtcSC<DRO_OBJECT,
|
||||
std::function<void(const typename DRO_OBJECT::TopicType &, const std::string &, const dds::sub::SampleInfo &)> >
|
||||
{};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BUILD_RTI
|
||||
@@ -8,6 +8,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef BUILD_RTI
|
||||
// Forward to the real implementation in Lts/DDS/. "include/" is searched
|
||||
// before "Lts/", so this header would otherwise shadow it.
|
||||
#include_next <DDS/DTC/generic_dtc_impl.h>
|
||||
#else
|
||||
|
||||
#include <DDS/Generic/generic_data_reader.h>
|
||||
#include <DDS/Generic/subscriber_listener.h>
|
||||
#include <DDS/Generic/generic_logger.h>
|
||||
@@ -317,3 +323,5 @@ public:
|
||||
};
|
||||
|
||||
} // namespace DTC
|
||||
|
||||
#endif // BUILD_RTI
|
||||
@@ -3,49 +3,23 @@
|
||||
/**
|
||||
* @file generic_data_reader.h
|
||||
* @brief Generic Data Reader wrapper for DDS
|
||||
*
|
||||
* Provides GenericDataReader template class that wraps RTI DataReader
|
||||
* when BUILD_RTI=ON, or provides stub implementation when BUILD_RTI=OFF.
|
||||
*
|
||||
* With BUILD_RTI=ON this forwards to the real implementation in
|
||||
* Lts/DDS/Generic/. "include/" is searched before "Lts/", so this header
|
||||
* would otherwise shadow it. With BUILD_RTI=OFF it provides stubs.
|
||||
*/
|
||||
|
||||
#include <dds/sub/subfwd.hpp>
|
||||
#ifdef BUILD_RTI
|
||||
|
||||
#include_next <DDS/Generic/generic_data_reader.h>
|
||||
|
||||
#else
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace DDSGeneric
|
||||
{
|
||||
|
||||
#ifdef BUILD_RTI
|
||||
// RTI DDS is available - include full DynamicDataReader implementation
|
||||
#include <Lts/DDS/Generic/dynamic_data_reader.h>
|
||||
|
||||
// Forward declaration stub for DataReader
|
||||
// RTI 7.7 signature: template <typename T, template <typename Q> class DELEGATE = dds::sub::detail::DataReaderImpl>
|
||||
template<typename T>
|
||||
class GenericDataReader {
|
||||
public:
|
||||
using DataType = T;
|
||||
using ReaderType = dds::sub::DataReader<T>;
|
||||
|
||||
// Minimal interface - extend as needed
|
||||
bool has_data() const { return false; }
|
||||
T read_data() { return T{}; }
|
||||
void cleanup() {}
|
||||
|
||||
// Access to underlying RTI reader if needed
|
||||
ReaderType& reader() { return m_reader; }
|
||||
const ReaderType& reader() const { return m_reader; }
|
||||
|
||||
private:
|
||||
ReaderType m_reader;
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
class GenericDataReaderContentFilter {
|
||||
public:
|
||||
using DataType = T;
|
||||
// Minimal stub - extend as needed
|
||||
};
|
||||
|
||||
#else
|
||||
// BUILD_RTI=OFF: Provide minimal stub definitions
|
||||
|
||||
namespace dds {
|
||||
@@ -111,6 +85,6 @@ public:
|
||||
bool hasSamples() const { return false; }
|
||||
};
|
||||
|
||||
#endif // BUILD_RTI
|
||||
} // namespace DDSGeneric
|
||||
|
||||
} // namespace DDSGeneric
|
||||
#endif // BUILD_RTI
|
||||
Reference in new issue
Block a user