ScummVM API documentation
Titanic::CResourceKey Class Reference
Inheritance diagram for Titanic::CResourceKey:
Titanic::CSaveableObject

Public Member Functions

 CResourceKey (const CString &name)
 
void save (SimpleFile *file, int indent) override
 
void load (SimpleFile *file) override
 
const CStringgetString () const
 
CString getFilename () const
 
bool scanForFile () const
 
FileType fileTypeSuffix () const
 
ImageType imageTypeSuffix () const
 
- Public Member Functions inherited from Titanic::CSaveableObject
virtual ClassDefgetType () const
 
bool isInstanceOf (const ClassDef *classDef) const
 
virtual void saveHeader (SimpleFile *file, int indent)
 
virtual void saveFooter (SimpleFile *file, int indent)
 

Public Attributes

 CLASSDEF
 

Additional Inherited Members

- Static Public Member Functions inherited from Titanic::CSaveableObject
static void initClassList ()
 
static void freeClassList ()
 
static CSaveableObjectcreateInstance (const Common::String &name)
 
- Static Public Attributes inherited from Titanic::CSaveableObject
static ClassDef_type
 

Member Function Documentation

◆ save()

void Titanic::CResourceKey::save ( SimpleFile file,
int  indent 
)
overridevirtual

Save the data for the class to file

Reimplemented from Titanic::CSaveableObject.

◆ load()

void Titanic::CResourceKey::load ( SimpleFile file)
overridevirtual

Load the data for the class from file

Reimplemented from Titanic::CSaveableObject.

◆ getString()

const CString& Titanic::CResourceKey::getString ( ) const
inline

Return the key

◆ getFilename()

CString Titanic::CResourceKey::getFilename ( ) const

Extracts a filename from the resource key

◆ scanForFile()

bool Titanic::CResourceKey::scanForFile ( ) const

Scans for a file with a matching name

◆ fileTypeSuffix()

FileType Titanic::CResourceKey::fileTypeSuffix ( ) const

Returns the type of the resource based on it's extension

◆ imageTypeSuffix()

ImageType Titanic::CResourceKey::imageTypeSuffix ( ) const

Returns the type of the resource based on it's extension


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