82 lines
3.4 KiB
C++
Executable File
82 lines
3.4 KiB
C++
Executable File
/**
|
|
* Plugin Blocked Areas
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Gerlinde Rudolphus, SLTE, 2016-04-14
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <CentralEffectSimulation/logger.h>
|
|
|
|
#include "handler_participant_building.h"
|
|
#include "handler_blocked_areas.h"
|
|
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <CentralEffectSimulation/ces_plugin_interface.h>
|
|
#include <CentralEffectSimulation/main_handler.h>
|
|
#include <CentralEffectSimulation/dds_handler.h>
|
|
#include <CentralEffectSimulation/handler_building_data.h>
|
|
|
|
#include <QObject>
|
|
|
|
|
|
namespace CesParticipantBuildings
|
|
{
|
|
|
|
class CesParticipantBuildingsPlugin : public QObject, public CentralEffectSimulation::Plugin::Plugin
|
|
{
|
|
Q_OBJECT
|
|
Q_PLUGIN_METADATA(IID "special:3:ces.CentralEffectSimulationParticipantBuildingsPlugin")
|
|
Q_INTERFACES(CentralEffectSimulation::Plugin::Plugin)
|
|
|
|
public:
|
|
CesParticipantBuildingsPlugin() = default;
|
|
~CesParticipantBuildingsPlugin() = default;
|
|
std::shared_ptr<CentralEffectSimulation::Plugin::Interface> createInterface(CentralEffectSimulation::Plugin::DataProvider *pdp,
|
|
const std::shared_ptr<DDSConnector::DdsConnector> &dDSConnector,
|
|
NGL::Settings *settings,
|
|
CentralEffectSimulation::MainHandler *mainHandler) override;
|
|
};
|
|
|
|
|
|
class CesParticipantBuildingsInterfaceImpl final : public CentralEffectSimulation::Plugin::Interface
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
CesParticipantBuildingsInterfaceImpl(CentralEffectSimulation::Plugin::DataProvider *pdp,
|
|
const std::shared_ptr<DDSConnector::DdsConnector> &dDSConnector,
|
|
NGL::Settings *settings,
|
|
CentralEffectSimulation::MainHandler *mainHandler);
|
|
~CesParticipantBuildingsInterfaceImpl();
|
|
//bool init();
|
|
const char *name() const override { return "CentralEffectSimulationParticipantBuildings"; }
|
|
QString echo(const QString &message) override;
|
|
|
|
private Q_SLOTS:
|
|
bool init(int domainId, int exerciseId) override;
|
|
private:
|
|
|
|
private:
|
|
CentralEffectSimulation::Plugin::DataProvider *m_pdp;
|
|
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnector;
|
|
CentralEffectSimulation::MainHandler *m_mainHandler{nullptr};
|
|
|
|
std::shared_ptr<CentralEffectSimulation::DdsHandler> m_ddsHandler;
|
|
std::shared_ptr<CentralEffectSimulation::DatabaseInterface> m_db;
|
|
std::shared_ptr<CentralEffectSimulation::HandlerBuildingData> m_handlerBuildingData; ///< Pointer to AES Building handler
|
|
std::shared_ptr<CentralEffectSimulation::HandlerParticipant> m_handlerParticipant; ///< Pointer to handler for all participants
|
|
|
|
std::shared_ptr<HandlerParticipantBuilding> m_handlerParticipantBuilding; ///< Pointer to handler for participant inside from Buildings
|
|
std::shared_ptr<HandlerBlockedAreas> m_handlerBlockedAreas; ///< Pointer to handler for Blocked Areas
|
|
|
|
|
|
|
|
CentralEffectSimulation::LOGGER_T &m_logger; ///< Interface to the Logging-Facility
|
|
int m_domainId = 0;
|
|
int m_exerciseId = 0;
|
|
};
|
|
|
|
} // namespace CesParticipantBuildings
|