Serial Framework C++ Edition
|
The base class for all WCL Data Processors. More...
#include <wclConnections.h>
Public Member Functions | |
CwclCustomDataProcessor () | |
Creates new Data Processor object. | |
virtual | ~CwclCustomDataProcessor () |
Frees the Data Processor object. | |
virtual void | ProcessData (const void *const Data, const unsigned long Size)=0 |
The method called by the Connection when data has been received from a remote device. | |
__event void | OnWrite (void *Sender, const void *const Data, const unsigned long Size, unsigned long &Written, int &WriteResult) |
The event fires when the Data Processor needs to write data to a connection but a connection is not assigned. | |
Protected Member Functions | |
virtual void | DoWrite (const void *const Data, const unsigned long Size, unsigned long &Written, int &WriteResult) |
Fires the OnWrite event. | |
virtual int | WriteData (const void *const Data, const unsigned long Size, unsigned long &Written)=0 |
Implements a connection-dependent code that sends data to the connected device. | |
int | Write (const void *const Data, const unsigned long Size) |
Sends data to the connected device. | |
The base class for all WCL Data Processors.
The Data Processor is a class the allows to add additional data processing for Connections.