SignDoc SDK (C++)
5.0.0
|
Class implementing an OutputStream writing to a file. More...
#include <SignDocSDK-cpp.h>
Public Member Functions | |
FileOutputStream (FILE *aFile) | |
Constructor: Write to a C stream. More... | |
FileOutputStream (FILE *aFile, const char *aPath) | |
Constructor: Write to a C stream. More... | |
FileOutputStream (const char *aPath) | |
Constructor: Open a file in binary mode. More... | |
FileOutputStream (const wchar_t *aPath) | |
Constructor: Open a file in binary mode. More... | |
Public Member Functions inherited from LibraryOutputStream | |
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... | |
Public Member Functions inherited from OutputStream | |
OutputStream (SIGNDOC_OutputStream *aImpl) | |
Constructor. More... | |
virtual | ~OutputStream () |
Destructor. More... | |
SIGNDOC_OutputStream * | getImpl () |
Internal. More... | |
Additional Inherited Members | |
Protected Attributes inherited from OutputStream | |
SIGNDOC_OutputStream * | p |
Pointer to C structure. More... | |
Class implementing an OutputStream writing to a file.
If possible, any exception thrown by member functions of this class contain the pathname. Note that the pathname will be UTF-8 encoded.
|
inline |
Constructor: Write to a C stream.
[in] | aFile | The C stream to be wrapped. |
|
inline |
Constructor: Write to a C stream.
[in] | aFile | The C stream to be wrapped. |
[in] | aPath | The pathname (native encoding), used in exceptions, can be NULL. |
|
inline |
Constructor: Open a file in binary mode.
If the named file already exists, it will be truncated. Throws an exception on error.
[in] | aPath | The pathname of the file to be opened (native encoding). |
|
inline |
Constructor: Open a file in binary mode.
If the named file already exists, it will be truncated. Throws an exception on error.
[in] | aPath | The pathname of the file to be opened. |