Files
qt5-legatus-legacy/Lts/Services/RoutingServiceNG/main_handler.h
T
2026-08-13 18:33:10 +02:00

46 lines
783 B
C++
Executable File

/**
* @RDE_HEADER@
* Routing Test - main object
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
#include <QObject>
#include "logger.h"
#include "partition_handler.h"
#include "session_handler.h"
#include "session.h"
#include <DDS/DDSConnector/dds_connector.h>
namespace Core
{
class Pacemaker;
}
namespace RoutingService
{
class TopicDispatcherInterface;
class MainHandler : public QObject
{
public:
explicit MainHandler();
~MainHandler();
bool init(int domainIdIn, int domainIdOut, unsigned short tcpPortOut);
void shutdown();
private:
std::unique_ptr<SessionHandler> m_sessionHandler;
std::unique_ptr<PartitionHandler> m_partitionHandler;
std::shared_ptr<Core::Pacemaker> m_pacemaker;
NGL::INGLLogger &m_logger;
};
} // namespace RoutingService