ASN1C C/C++ Common Runtime
ASN1C v7.3.x
|
#include <OSRTFileOutputStream.h>
Public Member Functions | |
EXTRTMETHOD | OSRTFileOutputStream (const char *pFilename) |
EXTRTMETHOD | OSRTFileOutputStream (OSRTContext *pContext, const char *pFilename) |
EXTRTMETHOD | OSRTFileOutputStream (FILE *file) |
EXTRTMETHOD | OSRTFileOutputStream (OSRTContext *pContext, FILE *file) |
virtual OSBOOL | isA (StreamID id) const |
Public Member Functions inherited from OSRTOutputStream | |
EXTRTMETHOD | OSRTOutputStream () |
EXTRTMETHOD | OSRTOutputStream (OSRTContext *mpContext, OSBOOL attachStream=FALSE) |
virtual EXTRTMETHOD | ~OSRTOutputStream () |
virtual EXTRTMETHOD int | close () |
virtual EXTRTMETHOD int | flush () |
virtual OSRTCtxtPtr | getContext () |
virtual OSCTXT * | getCtxtPtr () |
virtual char * | getErrorInfo () |
virtual char * | getErrorInfo (char *pBuf, size_t &bufSize) |
virtual int | getStatus () const |
virtual EXTRTMETHOD OSBOOL | isOpened () |
void | printErrorInfo () |
void | resetErrorInfo () |
virtual EXTRTMETHOD long | write (const OSOCTET *pdata, size_t size) |
virtual EXTRTMETHOD long | write (const char *pdata) |
Public Member Functions inherited from OSRTStream | |
virtual EXTRTMETHOD | ~OSRTStream () |
int | getStatus () const |
OSBOOL | isInitialized () |
void | printErrorInfo () |
void | resetErrorInfo () |
Additional Inherited Members | |
Protected Member Functions inherited from OSRTStream | |
EXTRTMETHOD | OSRTStream (OSRTContext *pContext, OSBOOL attachStream=FALSE) |
EXTRTMETHOD | OSRTStream (OSRTStream &original) |
EXTRTMETHOD | OSRTStream () |
EXTRTMETHOD char * | getErrorInfo (size_t *pBufSize) |
Protected Attributes inherited from OSRTStream | |
OSRTCtxtHolder | mCtxtHolder |
OSBOOL | mbAttached |
int | mStatus |
int | mInitStatus |
Generic file output stream. This class opens an existing file for output in binary mode and reads data from it.
EXTRTMETHOD OSRTFileOutputStream::OSRTFileOutputStream | ( | const char * | pFilename | ) |
Creates and initializes a file output stream using the name of file.
pFilename | Name of file. |
OSStreamException | Stream create or initialize failed. |
EXTRTMETHOD OSRTFileOutputStream::OSRTFileOutputStream | ( | OSRTContext * | pContext, |
const char * | pFilename | ||
) |
Creates and initializes a file output stream using the name of file.
pContext | Pointer to a context to use. |
pFilename | Name of file. |
OSStreamException | Stream create or initialize failed. |
EXTRTMETHOD OSRTFileOutputStream::OSRTFileOutputStream | ( | FILE * | file | ) |
Initializes the file output stream using the opened FILE structure descriptor.
file | Pointer to FILE structure. |
OSStreamException | Stream create or initialize failed. |
EXTRTMETHOD OSRTFileOutputStream::OSRTFileOutputStream | ( | OSRTContext * | pContext, |
FILE * | file | ||
) |
Initializes the file output stream using the opened FILE structure descriptor.
pContext | Pointer to a context to use. |
file | Pointer to FILE structure. |
OSStreamException | Stream create or initialize failed. |
|
inlinevirtual |
This method is used to query a stream object in order to determine its actual type.
id | Enumerated stream identifier |
Reimplemented from OSRTOutputStream.