ICPlus classes

class ICFile

^ 
Icon Plus file input/output.

The ICFile class creates and manages a file.

Source:
../ic_file.h:56
Author:
Dmitry A Steklenev
Version:
unknown

Contents

^ 
EntityTypeScopeShort Description
ICFileconstructor publicConstructs the file object.
~ICFiledestructor publicDestructs the file object.
open_for_readmethod publicOpens file for reading.
open_for_writemethod publicOpens file for writing.
closemethod publicClose open file.
is_openmethod publicReturns true if file is open.
read_bytemethod publicReads one byte.
read_int16method publicReads 16-bit big-endian integer.
read_int24method publicReads 24-bit big-endian integer.
read_int32method publicReads 32-bit big-endian integer.
write_bytemethod publicWrite one byte.
write_int16method publicWrite 16-bit big-endian integer.
write_int24method publicWrite 24-bit big-endian integer.
write_int32method publicWrite 32-bit big-endian integer.
namemethod publicReturns the file name.
seekmethod publicChanges the current file position.
tellmethod publicReturns the current file position.

constructor ICFile

? ^  > 
Constructs the file object.
Source:
../ic_file.h:59
Code:
public ICFile ( const char * filename ,
const char * path = 0 )

destructor ~ICFile

? ^  < > 
Destructs the file object.
Source:
../ic_file.h:61
Code:
public ~ ICFile ( )

method open_for_read

? ^  < > 
Opens file for reading.
Source:
../ic_file.h:65
Code:
public int open_for_read ( )

method open_for_write

? ^  < > 
Opens file for writing.
Source:
../ic_file.h:67
Code:
public int open_for_write ( )

method close

? ^  < > 
Close open file.
Source:
../ic_file.h:69
Code:
public int close ( )

method is_open

? ^  < > 
Returns true if file is open.
Source:
../ic_file.h:71
Code:
public int is_open ( ) const

method read_byte

? ^  < > 
Reads one byte.
Source:
../ic_file.h:75
Code:
public BYTE read_byte ( )

method read_int16

? ^  < > 
Reads 16-bit big-endian integer.
Source:
../ic_file.h:77
Code:
public UINT16 read_int16 ( )

method read_int24

? ^  < > 
Reads 24-bit big-endian integer.
Source:
../ic_file.h:79
Code:
public UINT32 read_int24 ( )

method read_int32

? ^  < > 
Reads 32-bit big-endian integer.
Source:
../ic_file.h:81
Code:
public UINT32 read_int32 ( )

method write_byte

? ^  < > 
Write one byte.
Source:
../ic_file.h:84
Code:
public void write_byte ( BYTE )

method write_int16

? ^  < > 
Write 16-bit big-endian integer.
Source:
../ic_file.h:86
Code:
public void write_int16 ( UINT16 )

method write_int24

? ^  < > 
Write 24-bit big-endian integer.
Source:
../ic_file.h:88
Code:
public void write_int24 ( UINT32 )

method write_int32

? ^  < > 
Write 32-bit big-endian integer.
Source:
../ic_file.h:90
Code:
public void write_int32 ( UINT32 )

method name

? ^  < > 
Returns the file name.
Source:
../ic_file.h:94
Code:
public const char * name ( ) const

method seek

? ^  < > 
Changes the current file position.
Source:
../ic_file.h:96
Code:
public long seek ( long offset )

method tell

? ^  < > 
Returns the current file position.
Source:
../ic_file.h:98
Code:
public long tell ( )

Created Wed Jul 10 21:27:42 2002.
This documentation was generated automatically by
ccdoc v0.8 r26 2001/11/28 bin_opt_emx_os2-2.30.
Click here to submit a bug report or feature request.
Click here to return to the top of the page.