Abstract base class for the communication interface with the PSENscan scanner.
More...
#include <scanner_communication_interface.h>
|
virtual void | close ()=0 |
| Closes the connection to the scanner device. More...
|
|
virtual void | open ()=0 |
| Opens the connection to the scanner device. More...
|
|
virtual std::size_t | read (boost::asio::mutable_buffers_1 &buffer, const std::chrono::steady_clock::duration timeout)=0 |
| Receive data from the scanner. More...
|
|
virtual void | write (const boost::asio::mutable_buffers_1 &buffer)=0 |
| Sends data to the scanner device. More...
|
|
virtual | ~ScannerCommunicationInterface ()=default |
|
Abstract base class for the communication interface with the PSENscan scanner.
Definition at line 70 of file scanner_communication_interface.h.
◆ ~ScannerCommunicationInterface()
virtual psen_scan::ScannerCommunicationInterface::~ScannerCommunicationInterface |
( |
| ) |
|
|
virtualdefault |
◆ close()
virtual void psen_scan::ScannerCommunicationInterface::close |
( |
| ) |
|
|
pure virtual |
◆ open()
virtual void psen_scan::ScannerCommunicationInterface::open |
( |
| ) |
|
|
pure virtual |
◆ read()
virtual std::size_t psen_scan::ScannerCommunicationInterface::read |
( |
boost::asio::mutable_buffers_1 & |
buffer, |
|
|
const std::chrono::steady_clock::duration |
timeout |
|
) |
| |
|
pure virtual |
Receive data from the scanner.
- Parameters
-
buffer | Buffer which contains the data received from the scanner device after the function call is done. |
timeout | Defines how long to wait for new messages from the scanner device. |
- Returns
- the number of bytes received from the scanner device.
- Exceptions
-
Implemented in psen_scan::PSENscanUDPInterface.
◆ write()
virtual void psen_scan::ScannerCommunicationInterface::write |
( |
const boost::asio::mutable_buffers_1 & |
buffer | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: