OSRTFileInputStream Class Reference
#include <OSRTFileInputStream.h>
Inheritance diagram for OSRTFileInputStream:
Public Member Functions | |
EXTRTMETHOD | OSRTFileInputStream (const char *pFilename) |
EXTRTMETHOD | OSRTFileInputStream (OSRTContext *pContext, const char *pFilename) |
EXTRTMETHOD | OSRTFileInputStream (FILE *file) |
EXTRTMETHOD | OSRTFileInputStream (OSRTContext *pContext, FILE *file) |
virtual OSBOOL | isA (StreamID id) const |
Detailed Description
Generic file input stream. This class opens an existing file for input in binary mode and reads data from it.
Constructor & Destructor Documentation
EXTRTMETHOD OSRTFileInputStream::OSRTFileInputStream | ( | const char * | pFilename | ) |
Creates and initializes a file input stream using the name of file.
- Parameters:
-
pFilename Name of file.
- See also:
- rtxStreamFileOpen
EXTRTMETHOD OSRTFileInputStream::OSRTFileInputStream | ( | OSRTContext * | pContext, | |
const char * | pFilename | |||
) |
Creates and initializes a file input stream using the name of file.
- Parameters:
-
pContext Pointer to a context to use. pFilename Name of file.
- See also:
- rtxStreamFileOpen
EXTRTMETHOD OSRTFileInputStream::OSRTFileInputStream | ( | FILE * | file | ) |
Initializes the file input stream using the opened FILE structure descriptor.
- Parameters:
-
file Pointer to FILE structure.
- See also:
- rtxStreamFileAttach
EXTRTMETHOD OSRTFileInputStream::OSRTFileInputStream | ( | OSRTContext * | pContext, | |
FILE * | file | |||
) |
Initializes the file input stream using the opened FILE structure descriptor.
- Parameters:
-
pContext Pointer to a context to use. file Pointer to FILE structure.
- See also:
- rtxStreamFileAttach
Member Function Documentation
virtual OSBOOL OSRTFileInputStream::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 OSRTInputStream.
The documentation for this class was generated from the following file: