1 #include "command_holder.h" 4 const std::string &identity,
5 const std::vector<std::string> &message,
8 auto it = functions_.find(command);
9 if (it != functions_.end()) {
10 (it->second)(identity, message, respond);
16 auto ret = functions_.emplace(command, callback);
std::function< void(const message_container &)> response_cb
void call_function(const std::string &command, const std::string &identity, const std::vector< std::string > &message, handler_interface::response_cb respond)
bool register_command(const std::string &command, callback_fn callback)
std::function< void(const std::string &, const std::vector< std::string > &, handler_interface::response_cb)> callback_fn