

Public Types | |
| typedef unsigned long | DataLength |
Public Member Functions | |
| CAsyncFileWriter (const JetByteTools::Win32::_tstring &filename, Callback &callback, IIOPool &pool, IAllocateBuffers &allocator) | |
| Write to the specified file asynchronously using overlapped I/O via the threads in the supplied IIOPool using buffers provided by the IAllocateBuffers instance and push any errors that occur to the CAsyncFileWriter::Callback interface. | |
| ~CAsyncFileWriter () | |
| void | Write (const BYTE *const pData, const DataLength dataLength) |
| Write the data to the file. | |
| void | Write (const Data *const pData, const DataLength count) |
| Write the data to the file. | |
| void | Write (IBuffer *pBuffer) |
| Write the contents of the IBuffer to the file. | |
| virtual HANDLE | GetWaitHandle () const |
| Access a HANDLE to wait on by passing it to one of the Wait Functions. | |
| virtual void | Wait () const |
| Wait indefinitely for the object to become signalled. | |
| virtual bool | Wait (const Milliseconds timeout) const |
| Wait, with a time limit, for the object to become signalled. | |
Static Public Member Functions | |
| static void | Wait (HANDLE handle) |
| Wait indefinitely for the supplied handle to become signalled. | |
| static bool | Wait (HANDLE handle, const Milliseconds timeout) |
| Wait, with a time limit, for the supplied handle to become signalled. | |
Classes | |
| class | Callback |
| An interface for users of the CAsyncFileWriter to be notified of any errors that occur during the asynchronous write operations on the file. More... | |
| struct | Data |
| A simple structure to enable 'gather' style multiple buffer writes with minimal data copying. More... | |
| typedef unsigned long DataLength |
| CAsyncFileWriter | ( | const JetByteTools::Win32::_tstring & | filename, | |
| Callback & | callback, | |||
| IIOPool & | pool, | |||
| IAllocateBuffers & | allocator | |||
| ) |
Write to the specified file asynchronously using overlapped I/O via the threads in the supplied IIOPool using buffers provided by the IAllocateBuffers instance and push any errors that occur to the CAsyncFileWriter::Callback interface.
| ~CAsyncFileWriter | ( | ) |
| void Write | ( | const BYTE *const | pData, | |
| const DataLength | dataLength | |||
| ) |
Write the data to the file.
| void Write | ( | const Data *const | pData, | |
| const DataLength | count | |||
| ) |
Write the data to the file.
| HANDLE GetWaitHandle | ( | ) | const [virtual] |
| void Wait | ( | ) | const [virtual] |
| virtual bool Wait | ( | const Milliseconds | timeout | ) | const [virtual] |
| void Wait | ( | HANDLE | handle | ) | [static, inherited] |
Wait indefinitely for the supplied handle to become signalled.
| bool Wait | ( | HANDLE | handle, | |
| const Milliseconds | timeout | |||
| ) | [static, inherited] |
Wait, with a time limit, for the supplied handle to become signalled.
1.5.3