OSRTFileOutputStream Class Reference

#include <OSRTFileOutputStream.h>

Inheritance diagram for OSRTFileOutputStream:
OSRTOutputStream OSRTStream

List of all members.

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

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

EXTRTMETHOD OSRTFileOutputStream::OSRTFileOutputStream ( const char *  pFilename  ) 

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

Parameters:
pFilename Name of file.
Exceptions:
OSStreamException Stream create or initialize failed.
See also:
rtxStreamFileOpen
EXTRTMETHOD OSRTFileOutputStream::OSRTFileOutputStream ( OSRTContext pContext,
const char *  pFilename 
)

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

Parameters:
pContext Pointer to a context to use.
pFilename Name of file.
Exceptions:
OSStreamException Stream create or initialize failed.
See also:
rtxStreamFileOpen
EXTRTMETHOD OSRTFileOutputStream::OSRTFileOutputStream ( FILE *  file  ) 

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

Parameters:
file Pointer to FILE structure.
Exceptions:
OSStreamException Stream create or initialize failed.
See also:
rtxStreamFileAttach
EXTRTMETHOD OSRTFileOutputStream::OSRTFileOutputStream ( OSRTContext pContext,
FILE *  file 
)

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

Parameters:
pContext Pointer to a context to use.
file Pointer to FILE structure.
Exceptions:
OSStreamException Stream create or initialize failed.
See also:
rtxStreamFileAttach

Member Function Documentation

virtual OSBOOL OSRTFileOutputStream::isA ( StreamID  id  )  const [inline, virtual]

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

Parameters:
id Enumerated stream identifier
Returns:
True if the stream matches the identifier

Reimplemented from OSRTOutputStream.


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