Template wrapper for a recording connection.
More...
#include <recording_connection.hpp>
|
| template<class... Args> |
| | RecordingConnectionWrapper (std::ostream *recvStream, std::ostream *sendStream, Args &&... args) |
| | Creates a RecordingConnectionWrapper that will write received bytes to recvStream, sent bytes to sendStream, and construct a connection object from args. More...
|
| |
| | ~RecordingConnectionWrapper () override |
| | Deconstructs the RecordingConnectionWrapper as well as the underlying connection object made in the constructor. More...
|
| |
| | RecordingConnection (Connection *connection, std::ostream *recvStream=nullptr, std::ostream *sendStream=nullptr) |
| | Creates a RecordingConnection that will write received bytes to recvStream, and sent bytes to sendStream. More...
|
| |
| | ~RecordingConnection () override=default |
| |
| bool | sendToDevice (const uint8_t *data, size_t length) override |
| | Sends bytes to the device. More...
|
| |
| bool | recvFromDevice (uint8_t *buffer, size_t max_length, unsigned int wait_time_ms, size_t *length_out, EmbeddedTimestamp *timestamp_out) override |
| | Receives bytes from the device. More...
|
| |
| bool | isConnected () const override |
| |
| bool | connect () override |
| |
| bool | disconnect () override |
| |
| const char * | interfaceName () const override |
| |
| uint32_t | parameter () const override |
| |
| uint64_t | recvFileBytesWritten () const |
| |
| uint64_t | sendFileBytesWritten () const |
| |
| | Connection () |
| |
| virtual | ~Connection () |
| |
| bool | sendBufferToDevice (microstrain::ConstU8ArrayView data) |
| |
| bool | recvBufferFromDevice (microstrain::U8ArrayView buffer, unsigned int wait_time_ms, size_t *length_out, EmbeddedTimestamp *timestamp_out) |
| |
| bool | recvFromDeviceAndUpdateUint8ArrayView (microstrain::U8ArrayView &buffer, unsigned int wait_time_ms, EmbeddedTimestamp *timestamp_out) |
| |
| const char * | type () const |
| |
template<typename ConnectionType>
class microstrain::connections::RecordingConnectionWrapper< ConnectionType >
- Template Parameters
-
| ConnectionType | The type of connection used to actually communicate. |
◆ RecordingConnectionWrapper()
template<typename ConnectionType >
template<class... Args>
- Parameters
-
| recvStream | The stream to write to when bytes are received. Null if received bytes should not be written to a stream |
| sendStream | The stream to write to when bytes are sent. Null if sent bytes should not be written to a stream |
| args | Arguments required to construct the ConnectionType |
◆ ~RecordingConnectionWrapper()
template<typename ConnectionType >
The documentation for this class was generated from the following file: