37 lines
887 B
C++
Executable File
37 lines
887 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 "connection.h"
|
|
|
|
namespace RoutingService
|
|
{
|
|
class Session
|
|
{
|
|
public:
|
|
explicit Session(const QString &partitionNameSv, const QString &partitionNameWs);
|
|
~Session();
|
|
|
|
bool init(const dds::domain::DomainParticipant &dpIn,
|
|
const dds::domain::DomainParticipant &dpOut,
|
|
const std::vector<TopicDispatcherInterface *> &topicsToRouteToWs,
|
|
const std::vector<TopicDispatcherInterface *> &topicsToRouteToSv);
|
|
void shutdown();
|
|
|
|
private:
|
|
std::string m_partitionNameSv;
|
|
std::string m_partitionNameWs;
|
|
std::unique_ptr<Connection> m_connectionSvToWs;
|
|
std::unique_ptr<Connection> m_connectionWsToSv;
|
|
|
|
NGL::INGLLogger &m_logger;
|
|
};
|
|
} // namespace RoutingService
|