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

CL_InputSource_File Class Reference

#include <file_inputprovider.h>

Inheritance diagram for CL_InputSource_File:

Inheritance graph
[legend]
Collaboration diagram for CL_InputSource_File:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_InputSource_File (const char *filename)
 CL_InputSource_File (const CL_InputSource_File *source)
virtual ~CL_InputSource_File ()
virtual void set_system_mode ()
virtual void set_big_endian_mode ()
virtual void set_little_endian_mode ()
virtual int read_int32 ()
virtual unsigned int read_uint32 ()
 retval: The integer read.

virtual short read_short16 ()
 retval: The unsigned integer read.

virtual unsigned short read_ushort16 ()
 retval: The short read.

virtual char read_char8 ()
 retval: The unsigned short read.

virtual unsigned char read_uchar8 ()
 retval: The char read.

virtual float read_float32 ()
 retval: The unsigned char read.

virtual int read (void *data, int size)
 retval: The float read.

virtual void open ()
 param: data - Points to an array where the read data is stored.param: size - Number of bytes to read.retval: Num bytes actually read.

virtual void close ()
virtual CL_InputSourceclone () const
virtual int tell () const
virtual void seek (int pos, SeekEnum seek_type)
 retval: Current position in input source.

virtual int size () const
 param: pos - Position relative to 'seek_type'.param: seek_type - Defines what the 'pos' is relative to. Can be either seek_set, seek_cur og seek_end.

virtual std::string read_string ()
 retval: Size of the input source.

virtual void push_position ()
 retval: The string read.

virtual void pop_position ()

Protected Attributes

std::stack<int> stack
std::string filename
FILE* filehandle
int filesize

Constructor & Destructor Documentation

CL_InputSource_File::CL_InputSource_File ( const char * filename )
 

CL_InputSource_File::CL_InputSource_File ( const CL_InputSource_File * source )
 

virtual CL_InputSource_File::~CL_InputSource_File ( ) [virtual]
 


Member Function Documentation

virtual CL_InputSource* CL_InputSource_File::clone ( ) const [virtual]
 

Reimplemented from CL_InputSource.

virtual void CL_InputSource_File::close ( ) [virtual]
 

Reimplemented from CL_InputSource.

virtual void CL_InputSource_File::open ( ) [virtual]
 

param: data - Points to an array where the read data is stored.param: size - Number of bytes to read.retval: Num bytes actually read.

Reimplemented from CL_InputSource.

virtual void CL_InputSource_File::pop_position ( ) [virtual]
 

Reimplemented from CL_InputSource.

virtual void CL_InputSource_File::push_position ( ) [virtual]
 

retval: The string read.

Reimplemented from CL_InputSource.

virtual int CL_InputSource_File::read ( void * data,
int size ) [virtual]
 

retval: The float read.

Reimplemented from CL_InputSource.

virtual char CL_InputSource_File::read_char8 ( ) [virtual]
 

retval: The unsigned short read.

Reimplemented from CL_InputSource.

virtual float CL_InputSource_File::read_float32 ( ) [virtual]
 

retval: The unsigned char read.

Reimplemented from CL_InputSource.

virtual int CL_InputSource_File::read_int32 ( ) [virtual]
 

Reimplemented from CL_InputSource.

virtual short CL_InputSource_File::read_short16 ( ) [virtual]
 

retval: The unsigned integer read.

Reimplemented from CL_InputSource.

virtual std::string CL_InputSource_File::read_string ( ) [virtual]
 

retval: Size of the input source.

Reimplemented from CL_InputSource.

virtual unsigned char CL_InputSource_File::read_uchar8 ( ) [virtual]
 

retval: The char read.

Reimplemented from CL_InputSource.

virtual unsigned int CL_InputSource_File::read_uint32 ( ) [virtual]
 

retval: The integer read.

Reimplemented from CL_InputSource.

virtual unsigned short CL_InputSource_File::read_ushort16 ( ) [virtual]
 

retval: The short read.

Reimplemented from CL_InputSource.

virtual void CL_InputSource_File::seek ( int pos,
SeekEnum seek_type ) [virtual]
 

retval: Current position in input source.

Reimplemented from CL_InputSource.

virtual void CL_InputSource_File::set_big_endian_mode ( ) [virtual]
 

Reimplemented from CL_InputSource.

virtual void CL_InputSource_File::set_little_endian_mode ( ) [virtual]
 

Reimplemented from CL_InputSource.

virtual void CL_InputSource_File::set_system_mode ( ) [virtual]
 

Reimplemented from CL_InputSource.

virtual int CL_InputSource_File::size ( ) const [virtual]
 

param: pos - Position relative to 'seek_type'.param: seek_type - Defines what the 'pos' is relative to. Can be either seek_set, seek_cur og seek_end.

Reimplemented from CL_InputSource.

virtual int CL_InputSource_File::tell ( ) const [virtual]
 

Reimplemented from CL_InputSource.


Member Data Documentation

FILE* CL_InputSource_File::filehandle [protected]
 

Definition at line 45 of file file_inputprovider.h.

std::string CL_InputSource_File::filename [protected]
 

Definition at line 44 of file file_inputprovider.h.

int CL_InputSource_File::filesize [protected]
 

Definition at line 46 of file file_inputprovider.h.

std::stack<int> CL_InputSource_File::stack [protected]
 

Definition at line 43 of file file_inputprovider.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:57:04 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001