Added test case and setting Test configuration

This commit is contained in:
berrux-dev committed 2026-09-11 13:41:20 +02:00
1 parent f815271486
commit a86f9b5bac
48 files changed
+423 -168

No files matched your search

@@ -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