
Public Member Functions | |
| virtual MCCOMErr MCCOMAPI | InitFileStream (int8 *fileName, uint32 mode)=0 |
| virtual uint32 MCCOMAPI | Tell ()=0 |
| virtual MCCOMErr MCCOMAPI | Seek (uint32 offset, int16 direction)=0 |
| virtual MCCOMErr MCCOMAPI | Read (int8 *s, uint32 n)=0 |
| virtual MCCOMErr MCCOMAPI | Write (int8 *s, uint32 n)=0 |
| virtual MCCOMErr MCCOMAPI | Append (uint32 n)=0 |
| virtual MCCOMErr MCCOMAPI | Get (int8 *c)=0 |
| virtual MCCOMErr MCCOMAPI | GetString (int8 *str, uint32 count, int8 delim)=0 |
| virtual MCCOMErr MCCOMAPI | GetLine (int8 *str, uint32 count)=0 |
| virtual MCCOMErr MCCOMAPI | GetLong (int32 *num)=0 |
| virtual MCCOMErr MCCOMAPI | GetDouble (double *num)=0 |
| virtual MCCOMErr MCCOMAPI | Put (int8 c)=0 |
| virtual MCCOMErr MCCOMAPI | PutString (int8 *str)=0 |
| virtual MCCOMErr MCCOMAPI | PutLine (int8 *str)=0 |
| virtual MCCOMErr MCCOMAPI | PutEOL ()=0 |
| virtual MCCOMErr MCCOMAPI | PutLong (int32 num)=0 |
| virtual MCCOMErr MCCOMAPI | PutDouble (double num)=0 |
| virtual MCCOMErr MCCOMAPI | PutBack (int8 c)=0 |
| virtual boolean MCCOMAPI | Good ()=0 |
| virtual boolean MCCOMAPI | Fail ()=0 |
| virtual boolean MCCOMAPI | Eof ()=0 |
| virtual MCCOMErr MCCOMAPI | SetMacOSInfo (uint32 creator, uint32 type)=0 |
| virtual uint32 MCCOMAPI | GetFileSize ()=0 |
| virtual MCCOMErr MCCOMAPI IShFileStream::InitFileStream | ( | int8 * | fileName, | |
| uint32 | mode | |||
| ) | [pure virtual] |
Initializes the file stream.
| fileName | C string filename for the file to open. | |
| mode | Pass kShStreamIn for reading or kShStreamOut for writing. |
| virtual uint32 MCCOMAPI IShFileStream::Tell | ( | ) | [pure virtual] |
Seek within the file.
| offset | Offset in bytes to seek | |
| direction | Direction specifier: pass kShStreamBegin, kShStreamCurrent, or kShStreamEnd |
Binary read of n bytes
| s | Pointer to structure to hold the read | |
| n | Number of bytes to read |
Binary write n bytes
| s | Location of data to write | |
| n | Number of bytes to write |
Increases file size by n bytes
| n | Number of bytes to append |
Read one text character
| c | pointer to structure to hold the character |
| virtual MCCOMErr MCCOMAPI IShFileStream::GetString | ( | int8 * | str, | |
| uint32 | count, | |||
| int8 | delim | |||
| ) | [pure virtual] |
Reads a text string
| str | Pointer to structure to hold the string | |
| count | Maximum number of characters to read | |
| delim | End-of-string delimiter |
Reads one line (terminated by CR or CR/LF) from the stream.
| str | Pointer to structure to hold the string | |
| count | Maximum number of characters to read |
Reads an int32 from the stream
| num | Pointer to the int32 into which the function will read |
| virtual MCCOMErr MCCOMAPI IShFileStream::GetDouble | ( | double * | num | ) | [pure virtual] |
Reads a double from the stream
| num | Pointer to the double into which the function will read |
Writes a character to the stream
| c | character to write |
Writes a (null-terminated) string to the stream
| str | Pointer to the string to write |
Writes a (
-terminated) line to the stream
| str | Pointer to the string to write |
| virtual MCCOMErr MCCOMAPI IShFileStream::PutEOL | ( | ) | [pure virtual] |
Writes an EOL to the stream
Writes an int32 to the stream
| num | int32 to write |
| virtual MCCOMErr MCCOMAPI IShFileStream::PutDouble | ( | double | num | ) | [pure virtual] |
Writes a double to the stream
| num | double to write |
Returns c to the file stream's buffer, moving the file seek position back by one byte
| c | Character to put back |
| virtual boolean MCCOMAPI IShFileStream::Good | ( | ) | [pure virtual] |
| virtual boolean MCCOMAPI IShFileStream::Fail | ( | ) | [pure virtual] |
| virtual boolean MCCOMAPI IShFileStream::Eof | ( | ) | [pure virtual] |
| virtual MCCOMErr MCCOMAPI IShFileStream::SetMacOSInfo | ( | uint32 | creator, | |
| uint32 | type | |||
| ) | [pure virtual] |
Sets the creator and file type designators in the resource fork of a MacOS file.
| creator | Creator type (ie 'CRRA') | |
| type | File type (ie 'JPEG') |
| virtual uint32 MCCOMAPI IShFileStream::GetFileSize | ( | ) | [pure virtual] |
1.5.3