mermaid::support::io::StreamOperationHandlerMethod< o > Class Template Reference

Class that stores a pointer to a method of an object. It holds a pointer to a method suitable for handling io operations replies. More...

#include <StreamOperationHandlerMethod.hpp>

Inheritance diagram for mermaid::support::io::StreamOperationHandlerMethod< o >:
Inheritance graph
[legend]
Collaboration diagram for mermaid::support::io::StreamOperationHandlerMethod< o >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void callHandler (size_t bytesRead, size_t requestedBytes, const char *data, bool success)
 IO Handlers call (read and write).
 StreamOperationHandlerMethod (o *object, STREAM_OPERATION_HANDLER_METHOD method)
 Constructor.
virtual ~StreamOperationHandlerMethod ()
 Destructor.

Detailed Description

template<class o>
class mermaid::support::io::StreamOperationHandlerMethod< o >

Class that stores a pointer to a method of an object. It holds a pointer to a method suitable for handling io operations replies.

Author:
Joao Carreira

Definition at line 59 of file StreamOperationHandlerMethod.hpp.


Constructor & Destructor Documentation

template<class o >
mermaid::support::io::StreamOperationHandlerMethod< o >::StreamOperationHandlerMethod ( o *  object,
STREAM_OPERATION_HANDLER_METHOD  method 
) [inline]

Constructor.

Parameters:
object Object instance on which the method shall be called
method Method of the object's class

Definition at line 69 of file StreamOperationHandlerMethod.hpp.

template<class o >
virtual mermaid::support::io::StreamOperationHandlerMethod< o >::~StreamOperationHandlerMethod (  )  [inline, virtual]

Destructor.

Definition at line 88 of file StreamOperationHandlerMethod.hpp.


Member Function Documentation

template<class o >
virtual void mermaid::support::io::StreamOperationHandlerMethod< o >::callHandler ( size_t  bytesRead,
size_t  requestedBytes,
const char *  data,
bool  success 
) [inline, virtual]

IO Handlers call (read and write).

Parameters:
bytesRead The number of bytes read/written
requestedBytes The number of bytes requested to be read/written
data The data read/written
success TRUE if operation was successful, FALSE otherwise

Implements mermaid::support::io::StreamOperationHandlerMethodBase.

Definition at line 81 of file StreamOperationHandlerMethod.hpp.

Generated on Fri Mar 4 22:15:48 2011 for MeRMaID::support by  doxygen 1.6.3