- BUILD_RTI conditional compilation für RTI Connext DDS dependencies - Namespace fixes in core_dtc.h (Core:: → DDS::Core::) - CMakeLists.txt: BUILD_RTI option und conditional dependencies - Handler minelayer: namespace closing mit BUILD_RTI guard - Build erfolgreich mit BUILD_RTI=OFF validiert Signed-off-by: Torsten Wierschin <torsten.wierschin@life-maps.com>
43 lines
968 B
C++
Executable File
43 lines
968 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>
|
|
#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
|