OpenCurves  0.9
RealTimeConnection Class Referenceabstract

This is the base class for data source which provides data in real time. More...

#include <realtimeconnection.h>

Inheritance diagram for RealTimeConnection:
RealTimeSerialConnection RealTimeTcpConnection RealTimeUdpConnection

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...
 

Detailed Description

This is the base class for data source which provides data in real time.

Member Function Documentation

virtual bool RealTimeConnection::isConnected ( ) const
pure virtual

Returns true if the source is connected.

Returns
True if connected.

Implemented in RealTimeTcpConnection, RealTimeUdpConnection, and RealTimeSerialConnection.

virtual QString RealTimeConnection::name ( ) const
pure virtual

The source/connection name.

Returns
A name for the source/connection.

Implemented in RealTimeSerialConnection, RealTimeTcpConnection, and RealTimeUdpConnection.

virtual int RealTimeConnection::read ( QByteArray &  buffer)
pure virtual

Read data into the given buffer.

Parameters
bufferThe buffer to read into.

Implemented in RealTimeTcpConnection, RealTimeUdpConnection, and RealTimeSerialConnection.

virtual int RealTimeConnection::send ( const QByteArray &  buffer)
pure virtual

Send the given buffer to the source.

Parameters
bufferThe buffer to send.

Implemented in RealTimeTcpConnection, RealTimeUdpConnection, and RealTimeSerialConnection.


The documentation for this class was generated from the following file: