DeviceHandle class. More...
#include <DeviceHandle.hpp>
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. |
DeviceHandle class.
This is the class which abstracts the device.
Definition at line 47 of file DeviceHandle.hpp.
DeviceHandle::DeviceHandle | ( | shared_ptr< Device > | device | ) |
Constructor.
device | The device which this handle refers to. |
Definition at line 42 of file DeviceHandle.cpp.
DeviceHandle::~DeviceHandle | ( | ) | [virtual] |
Destructor.
Definition at line 34 of file DeviceHandle.cpp.
void DeviceHandle::close | ( | ) | [virtual] |
Closes the device.
Definition at line 61 of file DeviceHandle.cpp.
void DeviceHandle::configureDevice | ( | shared_ptr< DeviceConfigurator > | deviceConfigurator | ) | [virtual] |
configures this device
Definition at line 67 of file DeviceHandle.cpp.
void DeviceHandle::enableRead | ( | shared_ptr< StreamOperationHandlerMethodBase > | streamOperationHandlerRead | ) | [virtual] |
Starts reading from the device.
streamOperationHandlerRead | The handler which will receive read replies. |
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.
bytesToWrite | Number of bytes to be written | |
data | Data to be written | |
streamOperationHandlerWrite | The handler which will receive the operation reply |
Definition at line 52 of file DeviceHandle.cpp.