/** * MainHandler for AereaEffectSimulation * $Id$ * $HeadURL$ * $Author$ */ #pragma once #include #include #include "dds_handler.h" #include "xxx_db.h" #include "logger.h" namespace NGLDB { template class DbServiceHandler; } namespace XxxXxxXxx { using DbHandler = NGLDB::DbServiceHandler; class MainHandler : public QObject { Q_OBJECT public: explicit MainHandler(QObject *parent = nullptr); ~MainHandler(); bool init(int domainId); std::shared_ptr dds() const { return m_ddsHandler; } std::shared_ptr db() const; private: std::shared_ptr m_ddsHandler; std::shared_ptr m_dbHandler; NGL::INGLLogger &m_logger; }; } // namespace XxxXxxXxx