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

file_ptr Class Reference

very small and fast wrapper for a ifstream. More...

List of all members.

Public Methods

 file_ptr (const string &fname)
 ~file_ptr ()
int tell ()
bool seek (int pos)
bool read (void *ptr, int size)

Private Attributes

ifstream _ifs


Detailed Description

very small and fast wrapper for a ifstream.

Todo:
implement reference counting, so that file_chunck does not leak memory !

Definition at line 34 of file chunck.cpp.


Constructor & Destructor Documentation

file_ptr::file_ptr const string &    fname [inline]
 

Definition at line 37 of file chunck.cpp.

References _ifs.

file_ptr::~file_ptr   [inline]
 

Definition at line 40 of file chunck.cpp.

References _ifs.


Member Function Documentation

bool file_ptr::read void *    ptr,
int    size
[inline]
 

Definition at line 50 of file chunck.cpp.

References _ifs.

bool file_ptr::seek int    pos [inline]
 

Definition at line 46 of file chunck.cpp.

References _ifs.

Referenced by file_chunck::sub_block().

int file_ptr::tell   [inline]
 

Definition at line 43 of file chunck.cpp.

References _ifs.


Member Data Documentation

ifstream file_ptr::_ifs [private]
 

Definition at line 35 of file chunck.cpp.

Referenced by file_ptr(), read(), seek(), tell(), and ~file_ptr().


The documentation for this class was generated from the following file:
Generated on Fri Aug 9 22:54:32 2002 for san_player by doxygen1.2.16