/** * MainHandler for SituationReplay * $Id$ * $HeadURL$ * $Author$ * Created by Hanna E. Rathje, SLSE, 2016-01-13 */ #pragma once #include #include "dds_handler.h" #include "logger.h" #include namespace NGLDB { template class DbServiceHandler; } namespace SituationReplay { class DbReader; class HandlerSituationReplay; using DbHandler = NGLDB::DbServiceHandler; class MainHandler final { public: MainHandler(); ~MainHandler(); bool init(const ConnectionParams &input, const ConnectionParams &output); private: bool initSrpHandler(int partitionIdIn, int partitionIdOut); private: std::unique_ptr m_handlerSrp; std::shared_ptr m_ddsInterface; std::shared_ptr m_dbHandler; std::shared_ptr m_dbReader; NGL::INGLLogger &m_logger; }; } // namespace SituationReplay