Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/DDS/Generic/generic_base.h
T
berrux-dev b18ac87565 Document the Release 2 driver in the README and tidy DDS/Plugins
- Rewrite README.md around new_docker_build_release2.sh: Release 2
  scope (4 build groups, 61 targets), Ninja/RelWithDebInfo configure,
  the 22-test ctest baseline, DEB production via
  rpmbuild/make_rpm_ubuntu26_release2.py, options reference,
  troubleshooting and known quirks (the legacy validation-scope driver
  is no longer documented as the main flow).
- Remove leftover blank lines and stale explanatory comments in
  Lts/DDS/Generic (dynamic_data_reader.h, generic_base.h),
  Lts/DDS/QosProfile (DDS_DefaultQos.cpp/.h, CMakeLists.txt) and
  Lts/Plugins/CMakeLists.txt.
2026-11-17 20:14:47 +01:00

76 lines
1.6 KiB
C++
Executable File

/**
* @RDE_HEADER@
* GenericBase (used as Base for all Generic<Items>)
*
* Items can be:
* - DataReaderObject (DRO)
* - DataWriterObject (DWO)
* - DynamicDataReaderObject (DDRO)
* - DataTopicClient (DTC)
* - DataTopicServer (DTS)
*
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
#include <string>
#include <ddsgen_export.h>
#if BUILD_RTI
#include <dds/topic/Topic.hpp>
#include <rti/core/xtypes/DynamicTypeImpl.hpp>
#endif
class QObject;
class QMetaMethod;
namespace NGL {
class INGLLogger;
}
namespace DDS
{
template<typename T>
struct topic_type_name {
static std::string value() {
#if BUILD_RTI
return dds::topic::topic_type_name<T>::value();
#else
return "";
#endif
}
};
#if BUILD_RTI
template<>
struct topic_type_name<dds::core::xtypes::DynamicData> {
static std::string value() {
return "dds::topic::DynamicData::value()";
}
};
template<>
struct topic_type_name<rti::core::xtypes::DynamicTypeImpl> {
static std::string value() {
return "dds::topic::DynamicTypeImpl::value()";
}
};
#endif
namespace Helper
{
DDSGEN_EXPORT std::string getFunctionTopicName(const std::string &fqName);
DDSGEN_EXPORT std::string getShortTopicName(const std::string &fqName);
DDSGEN_EXPORT QMetaMethod getMethod(NGL::INGLLogger &logger,
QObject *objectToInform,
const char *slotToExecute,
const char *signalSignature,
bool bWarnOnEmptySlot = true);
}
}