Go to the documentation of this file.
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,
52 cb_(time_read, echo_back, status);
65 using Callback = boost::function<void(
66 const boost::posix_time::ptime&,
76 return std::string(
"RT");
79 const boost::posix_time::ptime& time_read,
80 const std::string& echo_back,
81 const std::string& status,
86 cb_(time_read, echo_back, status);
97 #endif // SCIP2_RESPONSE_RESET_H
void registerCallback(Callback cb)
void readUntilEnd(std::istream &stream)
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)
boost::function< void(const boost::posix_time::ptime &, const std::string &, const std::string &)> Callback
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)
std::string getCommandCode() const
urg_stamped
Author(s): Atsushi Watanabe
autogenerated on Wed Dec 18 2024 03:10:57