Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Services/RoutingServiceNG/session_handler.h
T
torstenandCopilot 47985c5a88 Fix LtsUtilsCore include path and BUILD_RTI guards
- LtsUtilsCore/CMakeLists.txt: Fixed include path from /.. to /../..
  for both LtsUtilsCoreHeaderOnly and LtsUtilsCore targets
- session_handler.h: Added #if BUILD_RTI guard around dds_connector.h include
- data_writer_task.h: Removed override specifier from stub methods
  when BUILD_RTI=OFF (base class interface not available)

BUILD_RTI=OFF: 0 errors (validated)
BUILD_RTI=ON: Progresses further, external dependency errors remain
  (svcIsmCommon not available in Docker image - not migration issue)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-24 10:32:31 +02:00

68 lines
1.6 KiB
C++
Executable File

/**
* @RDE_HEADER@
* Routing Test - main object
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
#include <QtCore/QObject>
#include <QtCore/QMap>
#include "rsccommon_export.h"
#include "logger.h"
#include "session.h"
#if BUILD_RTI
#include <DDS/DDSConnector/dds_connector.h>
#endif
namespace LtsPluginManager
{
struct PluginInstance;
}
namespace DDSGeneric
{
class TopicTypePlugin;
}
namespace RoutingService
{
class TopicDispatcherInterface;
class RSCCOMMON_EXPORT SessionHandler : public QObject
{
public:
SessionHandler(IDL::PartitionType partitionType,
const std::shared_ptr<DDSConnector::DdsConnector> &ddsConnectorSv,
const std::shared_ptr<DDSConnector::DdsConnector> &ddsConnectorWs);
~SessionHandler();
bool init();
void shutdown();
public Q_SLOTS:
void onCreateSession(const QString &partitionNameSv, const QString &partitionNameWs);
void onDestroySession(const QString &partitionNameSv, const QString &partitionNameWs);
private:
NGL::INGLLogger &m_logger;
bool loadPlugins();
bool loadPlugin(const LtsPluginManager::PluginInstance &pi);
std::vector<TopicDispatcherInterface *> topicsToRouteToWs() const;
std::vector<TopicDispatcherInterface *> topicsToRouteToSv() const;
private:
NGL::INGLLogger &m_logger;
std::vector<DDSGeneric::TopicTypePlugin *> m_topicTypePlugins;
IDL::PartitionType m_partitionType;
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnectorSv;
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnectorWs;
QMap<QString, Session *> m_sessionMap;
};
} // namespace RoutingService