KatanaNativeInterface $VERSION$
|
Abstract base class for devices. More...
#include <cdlBase.h>
Public Member Functions | |
virtual int | send (const void *_buf, int _sz)=0 |
Pure function to send data. | |
virtual int | recv (void *_buf, int _sz)=0 |
Pure function to receive data. | |
virtual | ~CCdlBase () |
destructor | |
Abstract base class for devices.
This class is the base abstract class for devices; the abbreviation 'cdl' stands for 'Communication Device Layer'. By inheriting from this class different communication devices such a USB or a COM port can be handled easier.
|
inlinevirtual |
|
pure virtual |
Pure function to receive data.
This function is pure and should always be overwritten by classes in- heriting from 'CCdlBase'. As the name proposes the function should contain a sending behavour from the device.
Implemented in CCdlSocket, and CCdlCOM.
|
pure virtual |
Pure function to send data.
This function is pure and should always be overwritten by classes inheriting from 'CCdlBase'. As the name proposes the function should contain a sending behavour from the device.
Implemented in CCdlSocket, and CCdlCOM.