16 #ifndef SCANNER_COMMUNICATION_INTERFACE_H 17 #define SCANNER_COMMUNICATION_INTERFACE_H 22 #include <boost/asio.hpp> 77 virtual void open() = 0;
79 virtual void close() = 0;
83 virtual void write(
const boost::asio::mutable_buffers_1& buffer) = 0;
90 virtual std::size_t read(boost::asio::mutable_buffers_1& buffer,
91 const std::chrono::steady_clock::duration timeout) = 0;
97 #endif // SCANNER_COMMUNICATION_INTERFACE_H ScannerReadFailed(const std::string error_desc)
Abstract base class for the communication interface with the PSENscan scanner.
ScannerOpenFailed(const std::string error_desc)
ScannerWriteFailed(const std::string error_desc)
ScannerCloseFailed(const std::string error_desc)
ScannerReadTimeout(const std::string error_desc)