ScummVM API documentation
Titanic::CompressedFile Class Reference

#include <simple_file.h>

Inheritance diagram for Titanic::CompressedFile:
Titanic::SimpleFile

Public Member Functions

void open (Common::SeekableReadStream *stream) override
 
void open (Common::OutSaveFile *stream) override
 
- Public Member Functions inherited from Titanic::SimpleFile
 operator Common::SeekableReadStream & ()
 
 operator Common::WriteStream & ()
 
virtual void close ()
 
virtual void safeRead (void *dst, size_t count)
 
virtual size_t unsafeRead (void *dst, size_t count)
 
virtual size_t write (const void *src, size_t count) const
 
virtual void seek (int offset, int origin)
 
byte readByte ()
 
uint readUint16LE ()
 
uint readUint32LE ()
 
CString readString ()
 
int readNumber ()
 
double readFloat ()
 
Point readPoint ()
 
Rect readRect ()
 
Rect readBounds ()
 
void readBuffer (char *buffer=nullptr, size_t count=0)
 
bool scanf (const char *format,...)
 
void writeByte (byte b)
 
void writeUint16LE (uint val)
 
void writeUint32LE (uint val)
 
void writeLine (const CString &str) const
 
void writeString (const CString &str) const
 
void writeQuotedString (const CString &str) const
 
void writeQuotedLine (const CString &str, int indent) const
 
void writeNumber (int val) const
 
void writeNumberLine (int val, int indent) const
 
void writeFloat (double val) const
 
void writeFloatLine (double val, int indent) const
 
void writePoint (const Point &pt, int indent) const
 
void writeRect (const Rect &r, int indent) const
 
void writeBounds (const Rect &r, int indent) const
 
void writeFormat (const char *format,...) const
 
void writeIndent (uint indent) const
 
bool isClassStart ()
 
void writeClassStart (const CString &classStr, int indent)
 
void writeClassEnd (int indent)
 
bool eos () const
 

Additional Inherited Members

- Protected Attributes inherited from Titanic::SimpleFile
Common::SeekableReadStream_inStream
 
Common::OutSaveFile_outStream
 
int _lineCount
 

Detailed Description

Derived file that handles compressed files

Member Function Documentation

◆ open() [1/2]

void Titanic::CompressedFile::open ( Common::SeekableReadStream stream)
inlineoverridevirtual

Set up a stream for read access

Reimplemented from Titanic::SimpleFile.

◆ open() [2/2]

void Titanic::CompressedFile::open ( Common::OutSaveFile stream)
inlineoverridevirtual

Set up a stream for write access

Reimplemented from Titanic::SimpleFile.


The documentation for this class was generated from the following file: