|
iDRS™ SDK 16
|
Interface for IStreamFactory wrapper. More...
Go to the source code of this file.
Functions | |
| IStreamFactory | IStreamFactory_Create (PtrCreateStreamFn ptrCreateStreamFn, PtrCloseStreamFn ptrCloseStreamFn, idrs_exception *pargException) |
| Creates a new IStreamFactory object. | |
| void | IStreamFactory_Destroy (IStreamFactory argIStreamFactory, idrs_exception *pargException) |
| Destroys a IStreamFactory handle. | |
| IByteStream | IStreamFactory_CreateStream (IStreamFactory argIStreamFactory, idrs_exception *pargException) |
| CreateStream is instantiating a new stream that should be opened for write/read. | |
| void | IStreamFactory_CloseStream (IStreamFactory argIStreamFactory, IByteStream pStream, idrs_exception *pargException) |
| CloseStream is closing an output stream. | |
Interface for IStreamFactory wrapper.
| void IStreamFactory_CloseStream | ( | IStreamFactory | argIStreamFactory, |
| IByteStream | pStream, | ||
| idrs_exception * | pargException | ||
| ) |
CloseStream is closing an output stream.
This method is called automatically when closing a stream created using
| argIStreamFactory | IStreamFactory handle |
| pStream | Stream to close |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IStreamFactory IStreamFactory_Create | ( | PtrCreateStreamFn | ptrCreateStreamFn, |
| PtrCloseStreamFn | ptrCloseStreamFn, | ||
| idrs_exception * | pargException | ||
| ) |
Creates a new IStreamFactory object.
| ptrCreateStreamFn | CreateStream function pointer |
| ptrCloseStreamFn | CloseStream function pointer |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IByteStream IStreamFactory_CreateStream | ( | IStreamFactory | argIStreamFactory, |
| idrs_exception * | pargException | ||
| ) |
CreateStream is instantiating a new stream that should be opened for write/read.
The output stream can be a file stream (CFileStream), a memory stream (CMemoryStream) or a custom defined stream
The method is expected to return a pointer to the created stream. The class inheriting IStreamFactory should take the necessary precautions to keep the pointer valid until
| argIStreamFactory | IStreamFactory handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void IStreamFactory_Destroy | ( | IStreamFactory | argIStreamFactory, |
| idrs_exception * | pargException | ||
| ) |
Destroys a IStreamFactory handle.
| argIStreamFactory | IStreamFactory handle to destroy |
| pargException | Pointer to exception structure that will be filled if an exception occurs |