17 #ifndef SCIP2_RESPONSE_QUIT_H 18 #define SCIP2_RESPONSE_QUIT_H 20 #include <boost/asio.hpp> 32 using Callback = boost::function<void(
33 const boost::posix_time::ptime &,
35 const std::string &)>;
43 return std::string(
"QT");
46 const boost::posix_time::ptime &time_read,
47 const std::string &echo_back,
48 const std::string &status,
52 cb_(time_read, echo_back, status);
62 #endif // SCIP2_RESPONSE_QUIT_H std::string getCommandCode() const
boost::function< void(const boost::posix_time::ptime &, const std::string &, const std::string &)> Callback
void registerCallback(Callback cb)
void operator()(const boost::posix_time::ptime &time_read, const std::string &echo_back, const std::string &status, std::istream &stream)