/** * $Id$ * $HeadURL$ * $Author$ * Created by Philipp Last, NLSE, 2018-01-11 */ #pragma once #include #include "dds_handler.h" #include "logger.h" #include namespace Evaluations { class ObjectComment; class ObjectSchema; class HandlerComment final : protected Interface::Fts::EvlCommentModifyRequestHandler , protected Interface::Fts::EvlSchemaModifyRequestHandler { public: HandlerComment(const std::shared_ptr &ddsHandler, const std::shared_ptr &db); ~HandlerComment(); bool init(); private: void onEvlCommentModifyRequest(const rti::core::SampleIdentity &cookie, const EvlCommentModifyRequest &request) override final; void onEvlSchemaModifyRequest(const rti::core::SampleIdentity &cookie, const EvlSchemaModifyRequest &request) override final; private: void createDefaultSchema(); QHash m_mapObjectComment; QHash m_mapObjectSchema; std::shared_ptr m_ddsHandler; std::shared_ptr m_db; NGL::INGLLogger &m_logger; }; }