Public Member Functions | List of all members
CCdlBase Class Referenceabstract

Abstract base class for devices. More...

#include <cdlBase.h>

Inheritance diagram for CCdlBase:
Inheritance graph
[legend]

Public Member Functions

virtual int recv (void *_buf, int _sz)=0
 Pure function to receive data. More...
 
virtual int send (const void *_buf, int _sz)=0
 Pure function to send data. More...
 
virtual ~CCdlBase ()
 destructor More...
 

Detailed Description

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.

Definition at line 47 of file cdlBase.h.

Constructor & Destructor Documentation

virtual CCdlBase::~CCdlBase ( )
inlinevirtual

destructor

This class is only an interface

Definition at line 69 of file cdlBase.h.

Member Function Documentation

virtual int CCdlBase::recv ( void *  _buf,
int  _sz 
)
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 CCdlCOM, and CCdlSocket.

virtual int CCdlBase::send ( const void *  _buf,
int  _sz 
)
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 CCdlCOM, and CCdlSocket.


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


kni
Author(s): Martin Günther
autogenerated on Fri Jan 3 2020 04:01:17