TrainingAreaBase: - Add BUILD_RTI guards to dds_handler.cpp (entire file) - Add BUILD_RTI guards to recv_from_dds_aes.h for tab_db.h include - Add BUILD_RTI guards to main_handler.h for tab_db.h include - Remove duplicate m_logger declaration in main_handler.h - Add stub headers for RTI types (tab_db_stub.hpp, tab_enums_stub.hpp, etc.) VideoOverlayManagement: - Fix member initialization order in handler_overlays.h - Fix member initialization order in avs_interface.h - Fix member initialization order in main_handler.h - Change logger.cpp include from NGLLogger.h to INGLLogger.h - Add BUILD_RTI guard to handler_overlays.cpp for RTI signal connection Plugins: - Migrate QDesktopWidget → QScreen in Light/Dark style plugins - Fix CMakeLists.txt for SituationReplayManagement (BUILD_RTI guards) - Fix CMakeLists.txt for CombatNetRadio (Qt6::Core linking) - Remove QDesktopWidget includes in multiple plugin files Infrastructure: - Remove duplicate INGLLogger.h include directory - Add stub headers for ProjectDataManagement (pdm.hpp, etc.) - Add stub headers for RoutingServiceNG BUILD_RTI=OFF build now compiles successfully (1112 targets).
70 lines
1.6 KiB
C++
Executable File
70 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>
|
|
|
|
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
|
|
|
|
#endif // BUILD_RTI
|