mermaid::support::io::DeviceHandle Class Reference

DeviceHandle class. More...

#include <DeviceHandle.hpp>

Collaboration diagram for mermaid::support::io::DeviceHandle:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void close ()
 Closes the device.
virtual void configureDevice (shared_ptr< DeviceConfigurator >)
 configures this device
 DeviceHandle (shared_ptr< Device > device)
 Constructor.
virtual void enableRead (shared_ptr< StreamOperationHandlerMethodBase > streamOperationHandlerRead)
 Starts reading from the device.
virtual void write (size_t bytesToWrite, const char *data, shared_ptr< StreamOperationHandlerMethodBase > streamOperationHandlerWrite)
 Writes data to the device.
virtual ~DeviceHandle ()
 Destructor.

Detailed Description

DeviceHandle class.

This is the class which abstracts the device.

Author:
Joao Carreira

Definition at line 47 of file DeviceHandle.hpp.


Constructor & Destructor Documentation

DeviceHandle::DeviceHandle ( shared_ptr< Device device  ) 

Constructor.

Parameters:
device The device which this handle refers to.
Author:
Joao Carreira

Definition at line 42 of file DeviceHandle.cpp.

DeviceHandle::~DeviceHandle (  )  [virtual]

Destructor.

Author:
Joao Carreira

Definition at line 34 of file DeviceHandle.cpp.


Member Function Documentation

void DeviceHandle::close (  )  [virtual]

Closes the device.

Author:
Joao Carreira

Definition at line 61 of file DeviceHandle.cpp.

void DeviceHandle::configureDevice ( shared_ptr< DeviceConfigurator deviceConfigurator  )  [virtual]

configures this device

Author:
Joao Carreira

Definition at line 67 of file DeviceHandle.cpp.

void DeviceHandle::enableRead ( shared_ptr< StreamOperationHandlerMethodBase streamOperationHandlerRead  )  [virtual]

Starts reading from the device.

Parameters:
streamOperationHandlerRead The handler which will receive read replies.
Author:
Joao Carreira

Definition at line 47 of file DeviceHandle.cpp.

void DeviceHandle::write ( size_t  bytesToWrite,
const char *  data,
shared_ptr< StreamOperationHandlerMethodBase streamOperationHandlerWrite 
) [virtual]

Writes data to the device.

Parameters:
bytesToWrite Number of bytes to be written
data Data to be written
streamOperationHandlerWrite The handler which will receive the operation reply
Author:
Joao Carreira

Definition at line 52 of file DeviceHandle.cpp.

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