OSRTFileOutputStream Class Reference

Generic file output stream. More...

#include <OSRTFileOutputStream.h>

Inheritance diagram for OSRTFileOutputStream:
OSRTOutputStream OSRTStream

List of all members.

Public Member Functions

EXTRTMETHOD OSRTFileOutputStream (const char *pFilename)
 Creates and initializes a file output stream using the name of file.
EXTRTMETHOD OSRTFileOutputStream (OSRTContext *pContext, const char *pFilename)
 Creates and initializes a file output stream using the name of file.
EXTRTMETHOD OSRTFileOutputStream (FILE *file)
 Initializes the file output stream using the opened FILE structure descriptor.
EXTRTMETHOD OSRTFileOutputStream (OSRTContext *pContext, FILE *file)
 Initializes the file output stream using the opened FILE structure descriptor.
virtual OSBOOL isA (StreamID id) const
 This method is used to query a stream object in order to determine its actual type.

Detailed Description

Generic file output stream.

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

Definition at line 37 of file OSRTFileOutputStream.h.


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.

Definition at line 86 of file OSRTFileOutputStream.h.


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