Public Member Functions

de::softpro::doc::FileInputStream Class Reference

Class implementing an InputStream reading from a file. More...

#include <SignDocSDK-cpp.h>

Inheritance diagram for de::softpro::doc::FileInputStream:
de::softpro::doc::LibraryInputStream de::softpro::doc::InputStream

Public Member Functions

 FileInputStream (FILE *aFile)
 Constructor: Read from a C stream.
 FileInputStream (FILE *aFile, const char *aPath)
 Constructor: Read from a C stream.
 FileInputStream (const char *aPath)
 Constructor: Open a file in binary mode.
 FileInputStream (const wchar_t *aPath)
 Constructor: Open a file in binary mode.

Detailed Description

Class implementing an InputStream reading from 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.


Constructor & Destructor Documentation

de::softpro::doc::FileInputStream::FileInputStream ( FILE *  aFile ) [inline]

Constructor: Read from a C stream.

Parameters:
[in]aFileThe C stream to be wrapped.
de::softpro::doc::FileInputStream::FileInputStream ( FILE *  aFile,
const char *  aPath 
) [inline]

Constructor: Read from a C stream.

Parameters:
[in]aFileThe C stream to be wrapped.
[in]aPathThe pathname (native encoding), used in exceptions, can be NULL.
de::softpro::doc::FileInputStream::FileInputStream ( const char *  aPath ) [inline]

Constructor: Open a file in binary mode.

Throws an exception on error.

Parameters:
[in]aPathThe pathname of the file to be opened (native encoding).
de::softpro::doc::FileInputStream::FileInputStream ( const wchar_t *  aPath ) [inline]

Constructor: Open a file in binary mode.

Throws an exception on error.

Parameters:
[in]aPathThe pathname of the file to be opened.

The documentation for this class was generated from the following file: