/** * Plugin CES Functional Area * $Id$ * $HeadURL$ * $Author$ * Created by Gerlinde Rudolphus, SLTE, 2016-04-14 */ #pragma once #include #include "handler_functional_area.h" #include #include #include #include #include namespace CES_FUNCTIONAL_AREA { class CesFunctionalAreaPlugin : public QObject, public CentralEffectSimulation::Plugin::Plugin { Q_OBJECT Q_PLUGIN_METADATA(IID "special:3:ces.CesFunctionalAreaPlugin") Q_INTERFACES(CentralEffectSimulation::Plugin::Plugin) public: CesFunctionalAreaPlugin() = default; ~CesFunctionalAreaPlugin() = default; std::shared_ptr createInterface(CentralEffectSimulation::Plugin::DataProvider *pdp, const std::shared_ptr &dDSConnector, NGL::Settings *settings, CentralEffectSimulation::MainHandler *mainHandler) override; }; class CES_FUNCTIONAL_AREAInterfaceImpl final : public CentralEffectSimulation::Plugin::Interface { Q_OBJECT public: CES_FUNCTIONAL_AREAInterfaceImpl(CentralEffectSimulation::Plugin::DataProvider *pdp, const std::shared_ptr &dDSConnector, NGL::Settings *settings, CentralEffectSimulation::MainHandler *mainHandler); ~CES_FUNCTIONAL_AREAInterfaceImpl(); //bool init(); const char *name() const override { return "CesFunctionalAreaPlugin"; } QString echo(const QString &message) override; private Q_SLOTS: bool init(int domainId, int exerciseId) override; private: private: CentralEffectSimulation::Plugin::DataProvider *m_pdp{nullptr}; std::shared_ptr m_ddsConnector; CentralEffectSimulation::MainHandler *m_mainHandler{nullptr}; std::shared_ptr m_ddsHandler; std::shared_ptr m_db; std::shared_ptr m_handlerBuildingData; std::shared_ptr m_handlerParticipant; ///< Pointer to handler for all participants std::shared_ptr m_handlerFunctionalAreas; ///< Pointer to handler for participant outside from Buildings CentralEffectSimulation::LOGGER_T &m_logger; ///< Interface to the Logging-Facility int m_domainId = 0; int m_exerciseId = 0; }; } // namespace CES_FUNCTIONAL_AREA