/** * Plugin Ces Virtual Mines * $Id$ * $HeadURL$ * $Author$ * Created by Gerlinde Rudolphus, SLTE, 2016-04-14 */ #pragma once #include #include #include #include #include #include namespace CesGasPipes { class CesGasPipesPlugin : public QObject, public CentralEffectSimulation::Plugin::Plugin { Q_OBJECT Q_PLUGIN_METADATA(IID "special:3:ces.CesGasPipesPlugin") Q_INTERFACES(CentralEffectSimulation::Plugin::Plugin) public: CesGasPipesPlugin() = default; ~CesGasPipesPlugin() = default; std::shared_ptr createInterface(CentralEffectSimulation::Plugin::DataProvider *pdp, const std::shared_ptr &dDSConnector, NGL::Settings *settings, CentralEffectSimulation::MainHandler *mainHandler) override; }; class CesGasPipesInterfaceImpl final : public CentralEffectSimulation::Plugin::Interface { Q_OBJECT public: CesGasPipesInterfaceImpl(CentralEffectSimulation::Plugin::DataProvider *pdp, const std::shared_ptr &dDSConnector, NGL::Settings *settings, CentralEffectSimulation::MainHandler *mainHandler); ~CesGasPipesInterfaceImpl(); //bool init(); const char *name() const override { return "CentralEffectGasPipes"; } 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; CentralEffectSimulation::MainHandler *m_mainHandler{nullptr}; std::shared_ptr m_ddsHandler; std::shared_ptr m_db; std::shared_ptr m_handlerParticipant; ///< Pointer to handler for all participants // std::shared_ptr m_handlerParticipantBoobyTrap; ///< Pointer to handler for BoobyTrap // std::shared_ptr m_handlerParticipantOffRouteMine; ///< Pointer to handler for OffRouteMine CentralEffectSimulation::LOGGER_T &m_logger; ///< Interface to the Logging-Facility int m_domainId = 0; int m_exerciseId = 0; }; } // namespace CesGasPipes