ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Common::WinResources Class Reference

A class able to load resources from a Windows Executable, such as cursors, bitmaps, and sounds. More...

#include <winexe.h>

Inheritance diagram for Common::WinResources:

List of all members.

Public Types

typedef Common::HashMap
< Common::String,
Common::U32String,
Common::IgnoreCase_Hash,
Common::IgnoreCase_EqualTo
VersionHash

Public Member Functions

virtual ~WinResources ()
virtual void clear ()=0
 Clear all information.
virtual bool loadFromEXE (const String &fileName)
 Load from an EXE file.
virtual bool loadFromCompressedEXE (const String &fileName)
 Load from a Windows compressed EXE file.
virtual bool loadFromEXE (SeekableReadStream *stream)=0
 Load from a stream.
virtual const Array
< WinResourceID
getIDList (const WinResourceID &type) const =0
 Return a list of IDs for a given type.
virtual const Array
< WinResourceID
getLangList (const WinResourceID &type, const WinResourceID &id) const
 Return a list of languages for a given type and ID.
virtual SeekableReadStreamgetResource (const WinResourceID &type, const WinResourceID &id)=0
 Return a stream to the specified resource, taking the first language found (or 0 if non-existent).
virtual SeekableReadStreamgetResource (const WinResourceID &type, const WinResourceID &id, const WinResourceID &lang)
 Return a stream to the specified resource (or 0 if non-existent).

Static Public Member Functions

static WinResourcescreateFromEXE (const String &fileName)
static VersionHashparseVersionInfo (SeekableReadStream *stream)

Detailed Description

A class able to load resources from a Windows Executable, such as cursors, bitmaps, and sounds.

Definition at line 99 of file winexe.h.


Member Typedef Documentation


Constructor & Destructor Documentation

virtual Common::WinResources::~WinResources (  )  [inline, virtual]

Definition at line 101 of file winexe.h.


Member Function Documentation

virtual void Common::WinResources::clear (  )  [pure virtual]

Clear all information.

Implemented in Common::NEResources, and Common::PEResources.

WinResources * Common::WinResources::createFromEXE ( const String fileName  )  [static]

Definition at line 167 of file winexe.cpp.

virtual const Array<WinResourceID> Common::WinResources::getIDList ( const WinResourceID type  )  const [pure virtual]

Return a list of IDs for a given type.

Implemented in Common::NEResources, and Common::PEResources.

virtual const Array<WinResourceID> Common::WinResources::getLangList ( const WinResourceID type,
const WinResourceID id 
) const [inline, virtual]

Return a list of languages for a given type and ID.

Reimplemented in Common::PEResources.

Definition at line 119 of file winexe.h.

virtual SeekableReadStream* Common::WinResources::getResource ( const WinResourceID type,
const WinResourceID id,
const WinResourceID lang 
) [inline, virtual]

Return a stream to the specified resource (or 0 if non-existent).

Reimplemented in Common::PEResources.

Definition at line 128 of file winexe.h.

virtual SeekableReadStream* Common::WinResources::getResource ( const WinResourceID type,
const WinResourceID id 
) [pure virtual]

Return a stream to the specified resource, taking the first language found (or 0 if non-existent).

Implemented in Common::NEResources, and Common::PEResources.

bool Common::WinResources::loadFromCompressedEXE ( const String fileName  )  [virtual]

Load from a Windows compressed EXE file.

Definition at line 100 of file winexe.cpp.

virtual bool Common::WinResources::loadFromEXE ( SeekableReadStream stream  )  [pure virtual]

Load from a stream.

Implemented in Common::NEResources, and Common::PEResources.

bool Common::WinResources::loadFromEXE ( const String fileName  )  [virtual]

Load from an EXE file.

Definition at line 86 of file winexe.cpp.

WinResources::VersionHash * Common::WinResources::parseVersionInfo ( SeekableReadStream stream  )  [static]

Definition at line 187 of file winexe.cpp.


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


Generated on Sat Sep 19 2020 05:04:52 for ResidualVM by doxygen 1.7.1
curved edge   curved edge