- Lts/DDS: Add BUILD_RTI guards to pacemaker.h, dds_connector.h, generic_fts_* files, generic_base.h, routing_plugin.h - Lts/Services/RoutingServiceNG: Add BUILD_RTI guards to session.h/cpp, connection.h/cpp, data_writer_task.h/cpp - Fix C++23 reference member initialization: use getLogger() instead of getNGLLogger() in constructor initializer lists - Root CMakeLists.txt: Add Lts/DDS to include_directories - Fix export header generation order (GENERATE_EXPORT_HEADER before TARGET_INCLUDE_DIRECTORIES) - Remove auto-generated stub files (external deps collected separately)
54 lines
1.3 KiB
C++
Executable File
54 lines
1.3 KiB
C++
Executable File
|
|
|
|
|
|
#include "generic_fts_internal.h"
|
|
|
|
#if BUILD_RTI
|
|
|
|
#include <DDS/QosProfile/DDS_DefaultQos.h>
|
|
#include <QMetaMethod>
|
|
#include <NGLLogger/INGLLogger.h>
|
|
#include <qglobal.h>
|
|
|
|
namespace FTS
|
|
{
|
|
|
|
void GenericFtsInternal::printDefaultQos(NGL::INGLLogger &logger)
|
|
{
|
|
if (logger.isDebugEnabled())
|
|
DDS::QosProfile::print(dds::core::QosProvider::Default(), logger);
|
|
}
|
|
|
|
dds::sub::qos::DataReaderQos GenericFtsInternal::readerQos(NGL::INGLLogger &logger)
|
|
{
|
|
dds::sub::qos::DataReaderQos qos = DDS::QosProfile::dataReaderDefault(DDS::QosProfile::TopicType::FunctionTopic);
|
|
if (logger.isDebugEnabled())
|
|
DDS::QosProfile::print(qos, logger);
|
|
return qos;
|
|
}
|
|
|
|
dds::pub::qos::DataWriterQos GenericFtsInternal::writerQos(NGL::INGLLogger &logger)
|
|
{
|
|
dds::pub::qos::DataWriterQos qos = DDS::QosProfile::dataWriterDefault(DDS::QosProfile::TopicType::FunctionTopic);
|
|
if (logger.isDebugEnabled())
|
|
DDS::QosProfile::print(qos, logger);
|
|
return qos;
|
|
}
|
|
|
|
void GenericFtsInternal::dataAvailable()
|
|
{
|
|
if (!enqueueRequests())
|
|
return;
|
|
#if QT_VERSION < QT_VERSION_CHECK(5,10,0)
|
|
if (!QMetaObject::invokeMethod(this, "processRequests", Qt::QueuedConnection))
|
|
abort();
|
|
#else
|
|
QMetaObject::invokeMethod(this, &GenericFtsInternal::processRequests, Qt::QueuedConnection);
|
|
#endif
|
|
}
|
|
|
|
|
|
}
|
|
|
|
#endif // BUILD_RTI
|