17 #ifndef SCIP2_RESPONSE_H
18 #define SCIP2_RESPONSE_H
20 #include <boost/asio.hpp>
60 const boost::posix_time::ptime& time_read,
61 const std::string& echo_back,
62 const std::string& status,
63 std::istream& stream)
const
65 const std::string command_code(echo_back.substr(0, 2));
69 logger::debug() <<
"Unknown response " << command_code << std::endl;
73 (*(
response->second))(time_read, echo_back, status, stream);
75 template <
typename TResponse>
80 auto response_downcast = std::dynamic_pointer_cast<TResponse>(
response->second);
81 assert(response_downcast);
83 response_downcast->registerCallback(cb);
89 #endif // SCIP2_RESPONSE_H