17 #ifndef SCIP2_RESPONSE_RESET_H 18 #define SCIP2_RESPONSE_RESET_H 20 #include <boost/asio.hpp> 31 using Callback = boost::function<void(
32 const boost::posix_time::ptime&,
42 return std::string(
"RS");
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);
62 using Callback = boost::function<void(
63 const boost::posix_time::ptime&,
73 return std::string(
"RT");
76 const boost::posix_time::ptime& time_read,
77 const std::string& echo_back,
78 const std::string& status,
82 cb_(time_read, echo_back, status);
91 #endif // SCIP2_RESPONSE_RESET_H std::string getCommandCode() const
std::string getCommandCode() const
boost::function< void(const boost::posix_time::ptime &, const std::string &, const std::string &)> Callback
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
void registerCallback(Callback cb)
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)