mermaid::support::io::StreamHandler Class Reference

StreamHandler class. More...

#include <StreamHandler.hpp>

List of all members.

Public Member Functions

virtual void associateFileDescriptorWithStreamReader (int fileDescriptor, shared_ptr< StreamReader > streamReader)
 Associate a file descriptor with a StreamReader.
virtual void associateFileDescriptorWithStreamWriter (int fileDescriptor, shared_ptr< StreamWriter > streamWriter)
 Associate a file descriptor with a StreamWriter.
virtual void closeStreamReader (int fileDescriptor)
 Close the StreamReader associated with this file descriptor.
virtual void closeStreamWriter (int fileDescriptor)
 Close the StreamWriter associated with this file descriptor.
virtual shared_ptr< StreamWritergetAssociatedStreamWriter (int fileDescriptor)
 Get the StreamWriter associated with a given file descriptor.
virtual void handle_read_stream (const ACE_Asynch_Read_Stream::Result &result)
 Handles read operations events.
virtual void handle_write_stream (const ACE_Asynch_Write_Stream::Result &result)
 Handles write operations events.
virtual ~StreamHandler ()
 Destructor.

Protected Attributes

map< int, shared_ptr
< StreamReader > > 
streamReaderMap_
map< int, shared_ptr
< StreamWriter > > 
streamWriterMap_

Detailed Description

StreamHandler class.

The class which handles the events from ACE_Proactor

Author:
Joao Carreira

Definition at line 48 of file StreamHandler.hpp.


Constructor & Destructor Documentation

StreamHandler::~StreamHandler (  )  [virtual]

Destructor.

Author:
Joao Carreira

Definition at line 36 of file StreamHandler.cpp.


Member Function Documentation

void StreamHandler::associateFileDescriptorWithStreamReader ( int  fileDescriptor,
shared_ptr< StreamReader streamReader 
) [virtual]

Associate a file descriptor with a StreamReader.

Parameters:
fileDescriptor File descriptor to be associated
streamReader StreamReader to be associated
Author:
Joao Carreira

Definition at line 41 of file StreamHandler.cpp.

void StreamHandler::associateFileDescriptorWithStreamWriter ( int  fileDescriptor,
shared_ptr< StreamWriter streamWriter 
) [virtual]

Associate a file descriptor with a StreamWriter.

Parameters:
fileDescriptor File descriptor to be associated
streamWriter StreamWriter to be associated
Author:
Joao Carreira

Definition at line 46 of file StreamHandler.cpp.

void StreamHandler::closeStreamReader ( int  fileDescriptor  )  [virtual]

Close the StreamReader associated with this file descriptor.

Parameters:
fileDescriptor The file descriptor which is associated with the StreamReader to be closed
Author:
Joao Carreira

Definition at line 106 of file StreamHandler.cpp.

void StreamHandler::closeStreamWriter ( int  fileDescriptor  )  [virtual]

Close the StreamWriter associated with this file descriptor.

Parameters:
fileDescriptor The file descriptor which is associated with the StreamWriter to be closed
Author:
Joao Carreira

Definition at line 112 of file StreamHandler.cpp.

shared_ptr< StreamWriter > StreamHandler::getAssociatedStreamWriter ( int  fileDescriptor  )  [virtual]

Get the StreamWriter associated with a given file descriptor.

Parameters:
fileDescriptor The file descriptor which is associated with a StreamWriter
Returns:
The StreamWriter associated with the given file descriptor
Author:
Joao Carreira

Definition at line 100 of file StreamHandler.cpp.

void StreamHandler::handle_read_stream ( const ACE_Asynch_Read_Stream::Result &  result  )  [virtual]

Handles read operations events.

Parameters:
result The result of an io operation
Author:
Joao Carreira

Definition at line 51 of file StreamHandler.cpp.

void StreamHandler::handle_write_stream ( const ACE_Asynch_Write_Stream::Result &  result  )  [virtual]

Handles write operations events.

Parameters:
result The result of an io operation
Author:
Joao Carreira

Definition at line 74 of file StreamHandler.cpp.

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