ASN1C C/C++ Common Runtime  ASN1C v7.7.x
Public Member Functions | List of all members
OSRTFileOutputStream Class Reference

#include <OSRTFileOutputStream.h>

Inheritance diagram for OSRTFileOutputStream:
OSRTOutputStream OSRTStream

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 OSCTXTgetCtxtPtr ()
 
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
 

Detailed Description

Generic file output stream. This class opens an existing file for output in binary mode and reads data from it.

Constructor & Destructor Documentation

◆ OSRTFileOutputStream() [1/4]

EXTRTMETHOD OSRTFileOutputStream::OSRTFileOutputStream ( const char *  pFilename)

Creates and initializes a file output stream using the name of file.

Parameters
pFilenameName of file.
Exceptions
OSStreamExceptionStream create or initialize failed.
See also
rtxStreamFileOpen

◆ OSRTFileOutputStream() [2/4]

EXTRTMETHOD OSRTFileOutputStream::OSRTFileOutputStream ( OSRTContext pContext,
const char *  pFilename 
)

Creates and initializes a file output stream using the name of file.

Parameters
pContextPointer to a context to use.
pFilenameName of file.
Exceptions
OSStreamExceptionStream create or initialize failed.
See also
rtxStreamFileOpen

◆ OSRTFileOutputStream() [3/4]

EXTRTMETHOD OSRTFileOutputStream::OSRTFileOutputStream ( FILE *  file)

Initializes the file output stream using the opened FILE structure descriptor.

Parameters
filePointer to FILE structure.
Exceptions
OSStreamExceptionStream create or initialize failed.
See also
rtxStreamFileAttach

◆ OSRTFileOutputStream() [4/4]

EXTRTMETHOD OSRTFileOutputStream::OSRTFileOutputStream ( OSRTContext pContext,
FILE *  file 
)

Initializes the file output stream using the opened FILE structure descriptor.

Parameters
pContextPointer to a context to use.
filePointer to FILE structure.
Exceptions
OSStreamExceptionStream create or initialize failed.
See also
rtxStreamFileAttach

Member Function Documentation

◆ isA()

virtual OSBOOL OSRTFileOutputStream::isA ( StreamID  id) const
inlinevirtual

This method is used to query a stream object in order to determine its actual type.

Parameters
idEnumerated stream identifier
Returns
True if the stream matches the identifier

Reimplemented from OSRTOutputStream.


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