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

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

#include <winexe_pe.h>

Inheritance diagram for Common::PEResources:
Collaboration diagram for Common::PEResources:

List of all members.

Classes

struct  Resource
struct  Section

Public Member Functions

 PEResources ()
 ~PEResources ()
void clear ()
 Clear all information.
bool loadFromEXE (SeekableReadStream *stream)
 Load from a stream.
const Array< WinResourceIDgetTypeList () const
 Return a list of resource types.
const Array< WinResourceIDgetIDList (const WinResourceID &type) const
 Return a list of IDs for a given type.
const Array< WinResourceIDgetLangList (const WinResourceID &type, const WinResourceID &id) const
 Return a list of languages for a given type and ID.
SeekableReadStreamgetResource (const WinResourceID &type, const WinResourceID &id)
 Return a stream to the specified resource, taking the first language found (or 0 if non-existent).
SeekableReadStreamgetResource (const WinResourceID &type, const WinResourceID &id, const WinResourceID &lang)
 Return a stream to the specified resource (or 0 if non-existent).

Private Types

typedef HashMap< WinResourceID,
Resource, WinResourceID_Hash,
WinResourceID_EqualTo
LangMap
typedef HashMap< WinResourceID,
LangMap, WinResourceID_Hash,
WinResourceID_EqualTo
IDMap
typedef HashMap< WinResourceID,
IDMap, WinResourceID_Hash,
WinResourceID_EqualTo
TypeMap

Private Member Functions

void parseResourceLevel (Section &section, uint32 offset, int level)

Private Attributes

HashMap< String, Section,
IgnoreCase_Hash,
IgnoreCase_EqualTo
_sections
SeekableReadStream_exe
WinResourceID _curType
WinResourceID _curID
WinResourceID _curLang
TypeMap _resources

Detailed Description

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

Definition at line 40 of file winexe_pe.h.


Member Typedef Documentation


Constructor & Destructor Documentation

Common::PEResources::PEResources (  ) 

Definition at line 32 of file winexe_pe.cpp.

Common::PEResources::~PEResources (  ) 

Definition at line 36 of file winexe_pe.cpp.


Member Function Documentation

void Common::PEResources::clear (  )  [virtual]

Clear all information.

Implements Common::WinResources.

Definition at line 40 of file winexe_pe.cpp.

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

Return a list of IDs for a given type.

Implements Common::WinResources.

Definition at line 175 of file winexe_pe.cpp.

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

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

Reimplemented from Common::WinResources.

Definition at line 189 of file winexe_pe.cpp.

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

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

Reimplemented from Common::WinResources.

Definition at line 219 of file winexe_pe.cpp.

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

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

Implements Common::WinResources.

Definition at line 208 of file winexe_pe.cpp.

const Array< WinResourceID > Common::PEResources::getTypeList (  )  const

Return a list of resource types.

Definition at line 163 of file winexe_pe.cpp.

bool Common::PEResources::loadFromEXE ( SeekableReadStream stream  )  [virtual]

Load from a stream.

Implements Common::WinResources.

Definition at line 46 of file winexe_pe.cpp.

void Common::PEResources::parseResourceLevel ( Section section,
uint32  offset,
int  level 
) [private]

Definition at line 103 of file winexe_pe.cpp.


Member Data Documentation

Definition at line 81 of file winexe_pe.h.

Definition at line 81 of file winexe_pe.h.

Definition at line 81 of file winexe_pe.h.

Definition at line 78 of file winexe_pe.h.

Definition at line 92 of file winexe_pe.h.


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