Base class for InputStream implementations in SignDoc SDK. More...
#include <SignDocSDK-cpp.h>
Public Member Functions | |
| LibraryInputStream (SIGNDOC_InputStream *aImpl) | |
| Constructor. | |
| virtual int | read (void *aDst, int aLen) |
| Read octets from source. | |
| virtual void | close () |
| Close the stream. | |
| virtual void | seek (int aPos) |
| Seek to the specified position (int). | |
| virtual int | tell () const |
| Retrieve the current position (int). | |
| virtual int | getAvailable () |
| Get an estimate of the number of octets available for reading. | |
Base class for InputStream implementations in SignDoc SDK.
| de::softpro::doc::LibraryInputStream::LibraryInputStream | ( | SIGNDOC_InputStream * | aImpl ) | [inline] |
Constructor.
| [in] | aImpl | A pointer to the C structure. |
| virtual void de::softpro::doc::LibraryInputStream::close | ( | ) | [inline, virtual] |
Close the stream.
Implementations of this class may define exceptions thrown by this function.
Implements de::softpro::doc::InputStream.
| virtual int de::softpro::doc::LibraryInputStream::getAvailable | ( | ) | [inline, virtual] |
Get an estimate of the number of octets available for reading.
Throws an exception if this function is not supported.
Implements de::softpro::doc::InputStream.
| virtual int de::softpro::doc::LibraryInputStream::read | ( | void * | aDst, |
| int | aLen | ||
| ) | [inline, virtual] |
Read octets from source.
Implementations of this class may define exceptions thrown by this function.
Once this function has returned a value smaller than aLen, end of input has been reached and further calls should return 0.
| [out] | aDst | Pointer to buffer to be filled. |
| [in] | aLen | Number of octets to read. |
Implements de::softpro::doc::InputStream.
| virtual void de::softpro::doc::LibraryInputStream::seek | ( | int | aPos ) | [inline, virtual] |
Seek to the specified position (int).
Throws an exception if the position is invalid or if seeking is not supported.
| [in] | aPos | The position (zero being the first octet). |
Implements de::softpro::doc::InputStream.
| virtual int de::softpro::doc::LibraryInputStream::tell | ( | ) | const [inline, virtual] |
Retrieve the current position (int).
Throws an exception if the position cannot represented as non-negative int or if seeking is not supported.
Implements de::softpro::doc::InputStream.
1.7.2