![]() |
SignDoc SDK (C++)
5.0.0
|
Base class for OutputStream implementations in SignDoc SDK. More...
#include <SignDocSDK-cpp.h>
Public Member Functions | |
LibraryOutputStream (SIGNDOC_OutputStream *aImpl) | |
Constructor. More... | |
virtual void | close () |
Close the stream. More... | |
virtual void | flush () |
Flush the stream. More... | |
virtual void | write (const void *aSrc, int aLen) |
Write octets to the stream. More... | |
virtual void | seek (int aPos) |
Seek to the specified position. More... | |
virtual int | tell () const |
Retrieve the current position. More... | |
![]() | |
OutputStream (SIGNDOC_OutputStream *aImpl) | |
Constructor. More... | |
virtual | ~OutputStream () |
Destructor. More... | |
SIGNDOC_OutputStream * | getImpl () |
Internal. More... | |
Additional Inherited Members | |
![]() | |
SIGNDOC_OutputStream * | p |
Pointer to C structure. More... | |
Base class for OutputStream implementations in SignDoc SDK.
|
inline |
Constructor.
[in] | aImpl | A pointer to the C structure. |
|
inlinevirtual |
Close the stream.
This function forces any buffered data to be written and closes the stream.
You should not write to the stream after calling this function.
Implementations of this class may define exceptions thrown by this function.
Implements OutputStream.
|
inlinevirtual |
Flush the stream.
This function forces any buffered data to be written.
Implementations of this class may define exceptions thrown by this function.
Implements OutputStream.
|
inlinevirtual |
Seek to the specified position.
Throws an exception if the position is invalid or if seeking is not supported.
[in] | aPos | The position (the first octet is at position zero). |
Implements OutputStream.
|
inlinevirtual |
Retrieve the current position.
Throws an exception if the position cannot represented as non-negative int or if seeking is not supported.
Implements OutputStream.
|
inlinevirtual |
Write octets to the stream.
Throws an exception on error.
[in] | aSrc | Pointer to buffer to be written. |
[in] | aLen | Number of octets to write. |
Implements OutputStream.