RandomAccessFileDeviceTest::Binding Class Reference

Inheritance diagram for RandomAccessFileDeviceTest::Binding:

RandomAccessRequestBinding List of all members.

Public Member Functions

 Binding (Listener &listenerInit, uint cbInit, PBuffer pBufferInit)
virtual ~Binding ()
virtual PBuffer getBuffer () const
 
Returns:
memory address where transfer should start.

virtual uint getBufferSize () const
 
Returns:
number of contiguous bytes from getBuffer() to be used for transfer.

virtual void notifyTransferCompletion (bool bSuccess)
 Receives notification when a transfer completes.

Private Attributes

Listenerlistener
uint cb
PBuffer pBuffer

Detailed Description

Definition at line 178 of file RandomAccessFileDeviceTest.cpp.


Constructor & Destructor Documentation

RandomAccessFileDeviceTest::Binding::Binding ( Listener listenerInit,
uint  cbInit,
PBuffer  pBufferInit 
) [inline, explicit]

Definition at line 184 of file RandomAccessFileDeviceTest.cpp.

00186             : listener(listenerInit),cb(cbInit),pBuffer(pBufferInit)
00187         {
00188         }

virtual RandomAccessFileDeviceTest::Binding::~Binding (  )  [inline, virtual]

Definition at line 190 of file RandomAccessFileDeviceTest.cpp.

00191         {
00192         }


Member Function Documentation

virtual PBuffer RandomAccessFileDeviceTest::Binding::getBuffer (  )  const [inline, virtual]

Returns:
memory address where transfer should start.

Implements RandomAccessRequestBinding.

Definition at line 194 of file RandomAccessFileDeviceTest.cpp.

References pBuffer.

00195         {
00196             return pBuffer;
00197         }

virtual uint RandomAccessFileDeviceTest::Binding::getBufferSize (  )  const [inline, virtual]

Returns:
number of contiguous bytes from getBuffer() to be used for transfer.

Implements RandomAccessRequestBinding.

Definition at line 199 of file RandomAccessFileDeviceTest.cpp.

References cb.

00200         {
00201             return cb;
00202         }

virtual void RandomAccessFileDeviceTest::Binding::notifyTransferCompletion ( bool  bSuccess  )  [inline, virtual]

Receives notification when a transfer completes.

Parameters:
bSuccess true if the full buffer size was successfully transferred for this binding

Implements RandomAccessRequestBinding.

Definition at line 204 of file RandomAccessFileDeviceTest.cpp.

References listener, and RandomAccessFileDeviceTest::Listener::notifyTransferCompletion().

00205         {
00206             listener.notifyTransferCompletion(bSuccess);
00207         }


Member Data Documentation

Listener& RandomAccessFileDeviceTest::Binding::listener [private]

Definition at line 180 of file RandomAccessFileDeviceTest.cpp.

Referenced by notifyTransferCompletion().

uint RandomAccessFileDeviceTest::Binding::cb [private]

Definition at line 181 of file RandomAccessFileDeviceTest.cpp.

Referenced by getBufferSize().

PBuffer RandomAccessFileDeviceTest::Binding::pBuffer [private]

Definition at line 182 of file RandomAccessFileDeviceTest.cpp.

Referenced by getBuffer().


The documentation for this class was generated from the following file:
Generated on Mon Jun 22 04:00:44 2009 for Fennel by  doxygen 1.5.1