classPiiAbstractSocket
#include <PiiAbstractSocket.h>
A superclass for socket interfaces.
Inherited by PiiAbstractInputSocket, PiiAbstractOutputSocket
Description
Due to the fact that QObject doesn't support virtual inheritance, all concrete implementations of this interface also derive from PiiSocket. To avoid dynamic_casts at run-time, this interfaces provides a virtual function, socket(), for performing a cross-cast.
Constructors and destructor
|
virtual
|
Public member functions
|
virtual PiiSocket *
|
( )
= 0
Returns a pointer to this socket as a PiiSocket. |
|
const PiiSocket *
|
( )
Returns a pointer to this socket as a |
Protected member functions
Function details
-
PiiAbstractSocket
()[protected] -
virtual ~PiiAbstractSocket
()[virtual] -
Returns a pointer to this socket as a PiiSocket.
This is the preferred way of performing a cross-cast, even if
dynamic_castwould work in most cases. -
Returns a pointer to this socket as a
constPiiSocket.This function calls the non-const version.
Add a note
Not a single note added yet. Be the first, add yours.