Public Member Functions

de::softpro::doc::LibraryOutputStream Class Reference

Base class for OutputStream implementations in SignDoc SDK. More...

#include <SignDocSDK-cpp.h>

Inheritance diagram for de::softpro::doc::LibraryOutputStream:
de::softpro::doc::OutputStream de::softpro::doc::FileOutputStream de::softpro::doc::MemoryOutputStream

Public Member Functions

 LibraryOutputStream (SIGNDOC_OutputStream *aImpl)
 Constructor.
virtual void close ()
 Close the stream.
virtual void flush ()
 Flush the stream.
virtual void write (const void *aSrc, int aLen)
 Write octets to the stream.
virtual void seek (int aPos)
 Seek to the specified position.
virtual int tell () const
 Retrieve the current position.

Detailed Description

Base class for OutputStream implementations in SignDoc SDK.


Constructor & Destructor Documentation

de::softpro::doc::LibraryOutputStream::LibraryOutputStream ( SIGNDOC_OutputStream *  aImpl ) [inline]

Constructor.

Parameters:
[in]aImplA pointer to the C structure.

Member Function Documentation

virtual void de::softpro::doc::LibraryOutputStream::close (  ) [inline, virtual]

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 de::softpro::doc::OutputStream.

virtual void de::softpro::doc::LibraryOutputStream::flush (  ) [inline, virtual]

Flush the stream.

This function forces any buffered data to be written.

Implementations of this class may define exceptions thrown by this function.

Implements de::softpro::doc::OutputStream.

virtual void de::softpro::doc::LibraryOutputStream::seek ( int  aPos ) [inline, virtual]

Seek to the specified position.

Throws an exception if the position is invalid or if seeking is not supported.

Parameters:
[in]aPosThe position (the first octet is at position zero).

Implements de::softpro::doc::OutputStream.

virtual int de::softpro::doc::LibraryOutputStream::tell (  ) const [inline, virtual]

Retrieve the current position.

Throws an exception if the position cannot represented as non-negative int or if seeking is not supported.

Returns:
The current position (the first octet is at position zero)

Implements de::softpro::doc::OutputStream.

virtual void de::softpro::doc::LibraryOutputStream::write ( const void *  aSrc,
int  aLen 
) [inline, virtual]

Write octets to the stream.

Throws an exception on error.

Parameters:
[in]aSrcPointer to buffer to be written.
[in]aLenNumber of octets to write.

Implements de::softpro::doc::OutputStream.


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