OSRTOutputStream Class Reference
[Generic Output Stream Classes]
The base class definition for operations with output streams.
More...
#include <OSRTOutputStream.h>
Inheritance diagram for OSRTOutputStream:

Public Member Functions | |
| EXTRTMETHOD | OSRTOutputStream () |
| The default constructor. | |
| virtual EXTRTMETHOD | ~OSRTOutputStream () |
| Virtual destructor. | |
| virtual EXTRTMETHOD int | close () |
| Closes the output or output stream and releases any system resources associated with the stream. | |
| 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. | |
| 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 | write (const OSOCTET *pdata, size_t size) |
| Write data to the stream. | |
Detailed Description
The base class definition for operations with output streams.As with the input stream, this implementation is backed by memory buffers to improve I/O performance.
Definition at line 43 of file OSRTOutputStream.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 output 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. |
|
|
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 91 of file OSRTOutputStream.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 101 of file OSRTOutputStream.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 132 of file OSRTOutputStream.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 112 of file OSRTOutputStream.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 145 of file OSRTOutputStream.h. References OSRTStream::getStatus(). |
|
|
Checks, is the stream opened or not.
Reimplemented from OSRTStream. |
|
||||||||||||
|
Write data to the stream. This method writes the given number of octets from the given array to the output stream.
Implements OSRTOutputStreamIF. |
The documentation for this class was generated from the following file:
