#include <inputsource.h>
Inheritance diagram for CL_InputSource:

Public Types | |
| enum | SeekEnum { seek_set, seek_cur, seek_end } |
| retval: The clone of the input source. More... | |
Public Methods | |
| virtual | ~CL_InputSource () |
| virtual void | set_system_mode ()=0 |
| virtual void | set_big_endian_mode ()=0 |
| virtual void | set_little_endian_mode ()=0 |
| virtual int | read_int32 ()=0 |
| virtual unsigned int | read_uint32 ()=0 |
| retval: The integer read. | |
| virtual short | read_short16 ()=0 |
| retval: The unsigned integer read. | |
| virtual unsigned short | read_ushort16 ()=0 |
| retval: The short read. | |
| virtual char | read_char8 ()=0 |
| retval: The unsigned short read. | |
| virtual unsigned char | read_uchar8 ()=0 |
| retval: The char read. | |
| virtual float | read_float32 ()=0 |
| retval: The unsigned char read. | |
| virtual int | read (void *data, int size)=0 |
| retval: The float read. | |
| virtual void | open ()=0 |
| 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 ()=0 |
| virtual CL_InputSource* | clone () const=0 |
| virtual int | tell () const=0 |
| virtual void | seek (int pos, SeekEnum seek_type)=0 |
| retval: Current position in input source. | |
| virtual int | size () const=0 |
| 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 ()=0 |
| retval: Size of the input source. | |
| virtual void | push_position ()=0 |
| retval: The string read. | |
| virtual void | pop_position ()=0 |
Protected Attributes | |
| bool | little_endian_mode |
Definition at line 22 of file inputsource.h.
|
|
retval: The clone of the input source.
Definition at line 89 of file inputsource.h. |
|
|
Definition at line 33 of file inputsource.h. |
|
|
Reimplemented in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. |
|
|
Reimplemented in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. |
|
|
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 in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. |
|
|
Reimplemented in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. |
|
|
retval: The string read.
Reimplemented in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. |
|
|
retval: The float read.
Reimplemented in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. Referenced by CL_PNGProvider::pngread_file(). |
|
|
retval: The unsigned short read.
Reimplemented in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. |
|
|
retval: The unsigned char read.
Reimplemented in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. |
|
|
Reimplemented in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. Referenced by CL_IntegerResource::CL_IntegerResource(), and CL_GameObject::recv_full(). |
|
|
retval: The unsigned integer read.
Reimplemented in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. |
|
|
retval: Size of the input source.
Reimplemented in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. Referenced by CL_StringResource::CL_StringResource(). |
|
|
retval: The char read.
Reimplemented in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. Referenced by CL_BooleanResource::CL_BooleanResource(). |
|
|
retval: The integer read.
Reimplemented in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. |
|
|
retval: The short read.
Reimplemented in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. |
|
|
retval: Current position in input source.
Reimplemented in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. |
|
|
Reimplemented in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. |
|
|
Reimplemented in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. |
|
|
Reimplemented in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. |
|
|
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 in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. |
|
|
Reimplemented in CL_InputSource_File, CL_InputSource_Memory, CL_InputSource_Datafile, and CL_InputSource_MemoryGeneric. |
|
|
Definition at line 123 of file inputsource.h. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001