Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

audiere::CFile Class Reference

Inheritance diagram for audiere::CFile:

Inheritance graph
[legend]
Collaboration diagram for audiere::CFile:

Collaboration graph
[legend]
List of all members.

Public Methods

 CFile (FILE *file)
 ~CFile ()
int ADR_CALL read (void *buffer, int size)
bool ADR_CALL seek (int position, SeekMode mode)
int ADR_CALL tell ()

Constructor & Destructor Documentation

audiere::CFile::CFile FILE *    file [inline]
 

Definition at line 9 of file file_ansi.cpp.

audiere::CFile::~CFile   [inline]
 

Definition at line 13 of file file_ansi.cpp.


Member Function Documentation

int ADR_CALL audiere::CFile::read void *    buffer,
int    size
[inline, virtual]
 

Read size bytes from the file, storing them in buffer.

Parameters:
buffer  buffer to read into
size  number of bytes to read
Returns :
number of bytes successfully read

Implements audiere::File.

Definition at line 17 of file file_ansi.cpp.

References ADR_CALL.

bool ADR_CALL audiere::CFile::seek int    position,
SeekMode    mode
[inline, virtual]
 

Jump to a new position in the file, using the specified seek mode. Remember: if mode is END, the position must be negative, to seek backwards from the end of the file into its contents. If the seek fails, the current position is undefined.

Parameters:
position  position relative to the mode
mode  where to seek from in the file
Returns :
true on success, false otherwise

Implements audiere::File.

Definition at line 21 of file file_ansi.cpp.

References ADR_CALL, audiere::File::BEGIN, audiere::File::CURRENT, audiere::File::END, and audiere::File::SeekMode.

int ADR_CALL audiere::CFile::tell   [inline, virtual]
 

Get current position within the file.

Returns :
current position

Implements audiere::File.

Definition at line 33 of file file_ansi.cpp.

References ADR_CALL.


The documentation for this class was generated from the following file:
Generated on Sat Oct 12 01:43:54 2002 for audiere by doxygen1.2.17