#ifndef CSCI_CONTROLLER_HANDLER_H #define CSCI_CONTROLLER_HANDLER_H #include #include #include #include #ifndef _MSC_VER #include #endif #include "kafka_handler.h" #include "../include/controller/controller.h" using ControllerFunc = std::function; using ControllerFuncMap = QMap; class ControllerHandler: public QObject { Q_OBJECT private: static ControllerFuncMap &getControllerFuncMap(); public: static void init(); static QString getClassname(const char *mangled_name); static void registerCtl(const QString &key, const ControllerFunc &fun); }; #endif //CSCI_CONTROLLER_HANDLER_H