#include <commun.h>
Inheritance diagram for Commun::
Public Methods | |
virtual | ~Commun () |
Destructor. | |
virtual int | initialize () |
Initialization of communication. More... | |
virtual Commun & | operator>> (Buffer &b) |
Read data. More... | |
virtual Commun & | operator<< (const Buffer &b) |
Write data. More... | |
int | hasFailed () |
Failure indication. More... | |
virtual int | isReady () |
Communication channel ready for reading. More... | |
Protected Methods | |
Commun () | |
Default _PROTECTED_ constructor. | |
Protected Attributes | |
int | _failed |
failure indicator. |
This abstract class offers standard interface for all inherited communication classes. Whole communication is done thru an instance of this class or its descendant. On different systems the implementation of communication object can be different but the interface stays and the rest of program is not changed.
Definition at line 53 of file commun.h.
|
Failure indication. Use this method if you want to know the last operation was successful or not.
Definition at line 110 of file commun.h. Referenced by IProf::run().
|
|
Initialization of communication. This method should initialize the communication, it means to make a connection with opposite side.
Reimplemented in CommunSocket, and CommunShMem. Definition at line 80 of file commun.h. Referenced by IProf::run().
|
|
Communication channel ready for reading. This method returns TRUE, if there are data in communication channel and should be read from it.
Reimplemented in CommunSocket, and CommunShMem. Definition at line 119 of file commun.h. Referenced by IProf::run().
|
|
Write data. This operator is used to write data from buffer to communication channel (socket, shmem etc.).
Reimplemented in CommunSocket, and CommunShMem. |
|
Read data. This operator is used to read data from communication channel (socket, shmem etc.) to buffer.
Reimplemented in CommunSocket, and CommunShMem. |