- 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)
46 lines
990 B
C++
Executable File
46 lines
990 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Routing Test - handle a session (connection to and from sv for a specific partition)
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <QString>
|
|
|
|
#include "logger.h"
|
|
|
|
#if BUILD_RTI
|
|
#include "connection.h"
|
|
#endif
|
|
|
|
namespace RoutingService
|
|
{
|
|
class Session
|
|
{
|
|
public:
|
|
explicit Session(const QString &partitionNameSv, const QString &partitionNameWs);
|
|
~Session();
|
|
|
|
#if BUILD_RTI
|
|
bool init(const dds::domain::DomainParticipant &dpIn,
|
|
const dds::domain::DomainParticipant &dpOut,
|
|
const std::vector<TopicDispatcherInterface *> &topicsToRouteToWs,
|
|
const std::vector<TopicDispatcherInterface *> &topicsToRouteToSv);
|
|
void shutdown();
|
|
#endif
|
|
|
|
private:
|
|
NGL::INGLLogger &m_logger;
|
|
std::string m_partitionNameSv;
|
|
std::string m_partitionNameWs;
|
|
#if BUILD_RTI
|
|
std::unique_ptr<Connection> m_connectionSvToWs;
|
|
std::unique_ptr<Connection> m_connectionWsToSv;
|
|
#endif
|
|
};
|
|
} // namespace RoutingService
|