Public Member Functions | |
virtual void | OnError (CAsyncFileWriter *pInstance, const JetByteTools::Core::_tstring &where, DWORD lastError)=0 |
Called when an error occurs during asynchronous processing or file closure. | |
virtual void | OnError (CAsyncFileWriter *pInstance, const JetByteTools::Core::_tstring &where, const JetByteTools::Core::_tstring &message)=0 |
Called when an error occurs during asynchronous processing or file closure. | |
virtual void | OnLastWrite (CAsyncFileWriter *pInstance)=0 |
Called when the final write occurs after Shutdown() has been called on the file writer. You can use this to take an action with the file writer when the last pending write completes rather than blocking a thread to Wait() for the situation. | |
virtual void | OnPendingWriteLimit (CAsyncFileWriter *pInstance)=0 |
Called when the limit on the number of concurrent pending writes is reached. | |
Protected Member Functions | |
virtual | ~Callback () |
We never delete instances of this interface; you must manage the lifetime of the class that implements it. |
virtual ~Callback | ( | ) | [protected, virtual] |
We never delete instances of this interface; you must manage the lifetime of the class that implements it.
virtual void OnError | ( | CAsyncFileWriter * | pInstance, | |
const JetByteTools::Core::_tstring & | where, | |||
DWORD | lastError | |||
) | [pure virtual] |
Called when an error occurs during asynchronous processing or file closure.
Implemented in CLoggingAsyncFileWriterCallback.
virtual void OnError | ( | CAsyncFileWriter * | pInstance, | |
const JetByteTools::Core::_tstring & | where, | |||
const JetByteTools::Core::_tstring & | message | |||
) | [pure virtual] |
Called when an error occurs during asynchronous processing or file closure.
Implemented in CLoggingAsyncFileWriterCallback.
virtual void OnLastWrite | ( | CAsyncFileWriter * | pInstance | ) | [pure virtual] |
Called when the final write occurs after Shutdown() has been called on the file writer. You can use this to take an action with the file writer when the last pending write completes rather than blocking a thread to Wait() for the situation.
Implemented in CLoggingAsyncFileWriterCallback.
virtual void OnPendingWriteLimit | ( | CAsyncFileWriter * | pInstance | ) | [pure virtual] |
Called when the limit on the number of concurrent pending writes is reached.
Implemented in CLoggingAsyncFileWriterCallback.