OSRTInputStream Class Reference
[Generic Input Stream Classes]
This is the base class for input streams.
More...
#include <OSRTInputStream.h>
Inheritance diagram for OSRTInputStream:

Public Member Functions | |
| EXTRTMETHOD | OSRTInputStream () |
| The default constructor. | |
| virtual EXTRTMETHOD | ~OSRTInputStream () |
| Virtual destructor. | |
| virtual EXTRTMETHOD int | close () |
| Closes the input or output stream and releases any system resources associated with the stream. | |
| virtual EXTRTMETHOD size_t | currentPos () |
| This method returns the current position in the stream (in octets). | |
| virtual EXTRTMETHOD int | flush () |
| Flushes the buffered data to the stream. | |
| virtual OSRTCtxtPtr | getContext () |
| This method returns a pointer to the underlying OSRTContext object. | |
| virtual OSCTXT * | getCtxtPtr () |
| This method returns a pointer to the underlying OSCTXT object. | |
| virtual char * | getErrorInfo () |
| Returns error text in a dynamic memory buffer. | |
| virtual char * | getErrorInfo (char *pBuf, size_t &bufSize) |
| Returns error text in a memory buffer. | |
| virtual int | getStatus () const |
| This method returns the completion status of previous operation. | |
| virtual EXTRTMETHOD OSBOOL | isOpened () |
| Checks, is the stream opened or not. | |
| virtual EXTRTMETHOD OSBOOL | markSupported () |
| Tests if this input stream supports the mark and reset methods. | |
| virtual EXTRTMETHOD int | mark (size_t readAheadLimit) |
| This method marks the current position in this input stream. | |
| void | printErrorInfo () |
| The printErrorInfo method prints information on errors contained within the context. | |
| void | resetErrorInfo () |
| The resetErrorInfo method resets information on errors contained within the context. | |
| virtual EXTRTMETHOD long | read (OSOCTET *pDestBuf, size_t maxToRead) |
| Read data from the stream. | |
| virtual EXTRTMETHOD long | readBlocking (OSOCTET *pDestBuf, size_t toReadBytes) |
| Read data from the stream. | |
| virtual EXTRTMETHOD int | reset () |
| Repositions this stream to the position at the time the mark method was last called on this input stream. | |
| virtual EXTRTMETHOD int | skip (size_t n) |
| Skips over and discards the specified amount of data octets from this input stream. | |
Detailed Description
This is the base class for input streams.These streams are buffered (I/O is stored in memory prior to being written) to provide higher performance.
Definition at line 41 of file OSRTInputStream.h.
Constructor & Destructor Documentation
|
|
The default constructor. It initializes a buffered stream. A buffered stream maintains data in memory before reading or writing to the device. This generally provides better performance than an unbuffered stream.
|
|
|
Virtual destructor. Closes the stream if it was opened. |
Member Function Documentation
|
|
Closes the input or output stream and releases any system resources associated with the stream. For output streams this function also flushes all internal buffers to the stream.
Reimplemented from OSRTStream. |
|
|
This method returns the current position in the stream (in octets).
Implements OSRTInputStreamIF. |
|
|
Flushes the buffered data to the stream.
Reimplemented from OSRTStream. |
|
|
This method returns a pointer to the underlying OSRTContext object.
Reimplemented from OSRTStream. Definition at line 98 of file OSRTInputStream.h. References OSRTStream::getContext(). |
|
|
This method returns a pointer to the underlying OSCTXT object. This is the structure used in calls to low-level C encode/decode functions.
Reimplemented from OSRTStream. Definition at line 108 of file OSRTInputStream.h. References OSRTStream::getCtxtPtr(). |
|
||||||||||||
|
Returns error text in a memory buffer. If buffer pointer is specified in parameters (not NULL) then error text will be copied in the passed buffer. Otherwise, this method allocates memory using the 'operator new []' function. The calling routine is responsible to free the memory by using 'operator delete []'.
Reimplemented from OSRTStream. Definition at line 139 of file OSRTInputStream.h. References OSRTStream::getErrorInfo(). |
|
|
Returns error text in a dynamic memory buffer. Buffer will be allocated by 'operator new []'. The calling routine is responsible to free the memory by using 'operator delete []'.
Reimplemented from OSRTStream. Definition at line 119 of file OSRTInputStream.h. References OSRTStream::getErrorInfo(). |
|
|
This method returns the completion status of previous operation. It can be used to check completion status of constructors or methods, which do not return completion status.
Reimplemented from OSRTStream. Definition at line 152 of file OSRTInputStream.h. References OSRTStream::getStatus(). |
|
|
Checks, is the stream opened or not.
Reimplemented from OSRTStream. |
|
|
This method marks the current position in this input stream. A subsequent call to the reset method repositions this stream at the last marked position so that subsequent reads re-read the same bytes. The readAheadLimit argument tells this input stream to allow that many bytes to be read before the mark position gets invalidated.
Implements OSRTInputStreamIF. |
|
|
Tests if this input stream supports the mark and reset methods. Whether or not mark and reset are supported is an invariant property of a particular input stream instance. By default, it returns FALSE.
Implements OSRTInputStreamIF. |
|
||||||||||||
|
Read data from the stream.
This method reads up to
Implements OSRTInputStreamIF. |
|
||||||||||||
|
Read data from the stream.
This method reads up to
Implements OSRTInputStreamIF. |
|
|
Repositions this stream to the position at the time the mark method was last called on this input stream.
Implements OSRTInputStreamIF. |
|
|
Skips over and discards the specified amount of data octets from this input stream.
Implements OSRTInputStreamIF. |
The documentation for this class was generated from the following file:
