OpenCurves
0.9
|
This is the base class for data source which provides data in real time. More...
#include <realtimeconnection.h>
Public Member Functions | |
virtual | ~RealTimeConnection () |
Virtual destructor. | |
virtual QString | name () const =0 |
The source/connection name. More... | |
virtual bool | isConnected () const =0 |
Returns true if the source is connected. More... | |
virtual void | disconnect ()=0 |
Request to disconnect the source. | |
virtual int | send (const QByteArray &buffer)=0 |
Send the given buffer to the source. More... | |
virtual int | read (QByteArray &buffer)=0 |
Read data into the given buffer. More... | |
This is the base class for data source which provides data in real time.
|
pure virtual |
Returns true if the source is connected.
Implemented in RealTimeTcpConnection, RealTimeUdpConnection, and RealTimeSerialConnection.
|
pure virtual |
The source/connection name.
Implemented in RealTimeSerialConnection, RealTimeTcpConnection, and RealTimeUdpConnection.
|
pure virtual |
Read data into the given buffer.
buffer | The buffer to read into. |
Implemented in RealTimeTcpConnection, RealTimeUdpConnection, and RealTimeSerialConnection.
|
pure virtual |
Send the given buffer to the source.
buffer | The buffer to send. |
Implemented in RealTimeTcpConnection, RealTimeUdpConnection, and RealTimeSerialConnection.