17 #ifndef SCIP2_RESPONSE_REBOOT_H 18 #define SCIP2_RESPONSE_REBOOT_H 20 #include <boost/asio.hpp> 31 using Callback = boost::function<void(
32 const boost::posix_time::ptime&,
42 return std::string(
"RB");
45 const boost::posix_time::ptime& time_read,
46 const std::string& echo_back,
47 const std::string& status,
51 cb_(time_read, echo_back, status);
61 #endif // SCIP2_RESPONSE_REBOOT_H
void operator()(const boost::posix_time::ptime &time_read, const std::string &echo_back, const std::string &status, std::istream &stream)
boost::function< void(const boost::posix_time::ptime &, const std::string &, const std::string &)> Callback
std::string getCommandCode() const
void registerCallback(Callback cb)