ScummVM API documentation
Gob::SavePart Class Referenceabstract

#include <savefile.h>

Inheritance diagram for Gob::SavePart:
Gob::SavePartInfo Gob::SavePartMem Gob::SavePartSprite Gob::SavePartVars

Public Member Functions

virtual uint32 getSize () const
 
virtual bool read (Common::ReadStream &stream)=0
 
virtual bool write (Common::WriteStream &stream) const =0
 

Protected Attributes

SaveHeader _header
 

Detailed Description

An abstract class for a part in a save file.

Member Function Documentation

◆ getSize()

virtual uint32 Gob::SavePart::getSize ( ) const
virtual

Return the total size of the part.

◆ read()

virtual bool Gob::SavePart::read ( Common::ReadStream stream)
pure virtual

Read the part (with header) out of the stream.

Implemented in Gob::SavePartInfo, Gob::SavePartSprite, Gob::SavePartVars, and Gob::SavePartMem.

◆ write()

virtual bool Gob::SavePart::write ( Common::WriteStream stream) const
pure virtual

Write the part (with header) into the stream.

Implemented in Gob::SavePartInfo, Gob::SavePartSprite, Gob::SavePartVars, and Gob::SavePartMem.


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