/** * Plugin Ces2D * $Id$ * $HeadURL$ * $Author$ * Created by Gerlinde Rudolphus, SLTE, 2016-04-14 */ #pragma once #include "handler_aes_data.h" #include "handler_building_model.h" #include "handler_participant_area.h" #include #include #include #include #include #include namespace Ces2D { //using DbHandler = NGLDB::DbServiceHandler; class CentralEffectSimulation2DPlugin : public QObject, public CentralEffectSimulation::Plugin::Plugin { Q_OBJECT Q_PLUGIN_METADATA(IID "special:3:ces.CentralEffectSimulation2DPlugin") Q_INTERFACES(CentralEffectSimulation::Plugin::Plugin) public: CentralEffectSimulation2DPlugin() = default; ~CentralEffectSimulation2DPlugin() = default; std::shared_ptr createInterface(CentralEffectSimulation::Plugin::DataProvider *pdp, const std::shared_ptr &dDSConnector, NGL::Settings *settings, const std::shared_ptr &ddsHandler, const std::shared_ptr &db, const std::shared_ptr &handlerParticipant, const std::shared_ptr &handlerBuildingData) override; }; class Ces2DInterfaceImpl final : public CentralEffectSimulation::Plugin::Interface { Q_OBJECT public: Ces2DInterfaceImpl(CentralEffectSimulation::Plugin::DataProvider *pdp, const std::shared_ptr &dDSConnector, NGL::Settings *settings, const std::shared_ptr &ddsHandler, const std::shared_ptr &db, const std::shared_ptr &handlerParticipant, const std::shared_ptr &handlerBuildingData); ~Ces2DInterfaceImpl(); //bool init(); const char *name() const override { return "CentralEffectSimulation2D"; } 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 m_ddsConnector; std::shared_ptr m_ddsHandler; std::shared_ptr m_db; std::shared_ptr m_handlerAesData; ///< Pointer to AES Building handler std::shared_ptr m_handlerBuildingData; ///< Pointer to AES Building handler std::shared_ptr m_handlerBuildingModel; ///< Pointer to Building Model Handler std::shared_ptr m_handlerParticipant; ///< Pointer to handler for all participants std::shared_ptr m_handlerParticipantArea; ///< Pointer to handler for participant outside from Buildings NGL::INGLLogger &m_logger; int m_domainId = 0; int m_exerciseId = 0; }; } // namespace Ces2D