xoreos  0.0.5
Public Member Functions | Private Types | Private Attributes | List of all members
Common::PEResourceID Class Reference

#include <pe_exe.h>

Collaboration diagram for Common::PEResourceID:
Collaboration graph
[legend]

Public Member Functions

 PEResourceID ()
 
 PEResourceID (UString x)
 
 PEResourceID (uint32 x)
 
PEResourceIDoperator= (UString string)
 
PEResourceIDoperator= (uint32 x)
 
bool operator== (const UString &x) const
 
bool operator== (const uint32 &x) const
 
bool operator== (const PEResourceID &x) const
 
bool operator< (const PEResourceID &x) const
 
UString getString () const
 
uint32 getID () const
 
UString toString () const
 

Private Types

enum  IDType { kIDTypeNull, kIDTypeNumerical, kIDTypeString }
 An ID Type. More...
 

Private Attributes

enum Common::PEResourceID::IDType _idType
 
UString _name
 The resource's string ID. More...
 
uint32 _id
 The resource's numerical ID. More...
 

Detailed Description

Definition at line 42 of file pe_exe.h.

Member Enumeration Documentation

◆ IDType

An ID Type.

Enumerator
kIDTypeNull 

No type set.

kIDTypeNumerical 

A numerical ID.

kIDTypeString 

A string ID.

Definition at line 63 of file pe_exe.h.

Constructor & Destructor Documentation

◆ PEResourceID() [1/3]

Common::PEResourceID::PEResourceID ( )

Definition at line 34 of file pe_exe.cpp.

◆ PEResourceID() [2/3]

Common::PEResourceID::PEResourceID ( UString  x)

Definition at line 37 of file pe_exe.cpp.

◆ PEResourceID() [3/3]

Common::PEResourceID::PEResourceID ( uint32  x)

Definition at line 40 of file pe_exe.cpp.

Member Function Documentation

◆ getID()

uint32 Common::PEResourceID::getID ( ) const

Definition at line 84 of file pe_exe.cpp.

References _id, _idType, and kIDTypeNumerical.

◆ getString()

UString Common::PEResourceID::getString ( ) const

Definition at line 77 of file pe_exe.cpp.

References _idType, _name, and kIDTypeString.

◆ operator<()

bool Common::PEResourceID::operator< ( const PEResourceID x) const

Definition at line 73 of file pe_exe.cpp.

References toString().

Here is the call graph for this function:

◆ operator=() [1/2]

PEResourceID & Common::PEResourceID::operator= ( UString  string)

Definition at line 43 of file pe_exe.cpp.

References _idType, _name, and kIDTypeString.

◆ operator=() [2/2]

PEResourceID & Common::PEResourceID::operator= ( uint32  x)

Definition at line 49 of file pe_exe.cpp.

References _id, _idType, and kIDTypeNumerical.

◆ operator==() [1/3]

bool Common::PEResourceID::operator== ( const UString x) const

Definition at line 55 of file pe_exe.cpp.

References _idType, _name, Common::UString::equalsIgnoreCase(), and kIDTypeString.

Here is the call graph for this function:

◆ operator==() [2/3]

bool Common::PEResourceID::operator== ( const uint32 x) const

Definition at line 59 of file pe_exe.cpp.

References _id, _idType, and kIDTypeNumerical.

◆ operator==() [3/3]

bool Common::PEResourceID::operator== ( const PEResourceID x) const

Definition at line 63 of file pe_exe.cpp.

References _id, _idType, _name, Common::UString::equalsIgnoreCase(), kIDTypeNumerical, and kIDTypeString.

Here is the call graph for this function:

◆ toString()

UString Common::PEResourceID::toString ( ) const

Definition at line 91 of file pe_exe.cpp.

References _id, _idType, _name, kIDTypeNumerical, and kIDTypeString.

Referenced by operator<().

Here is the caller graph for this function:

Member Data Documentation

◆ _id

uint32 Common::PEResourceID::_id
private

The resource's numerical ID.

Definition at line 70 of file pe_exe.h.

Referenced by getID(), operator=(), operator==(), and toString().

◆ _idType

enum Common::PEResourceID::IDType Common::PEResourceID::_idType
private

◆ _name

UString Common::PEResourceID::_name
private

The resource's string ID.

Definition at line 69 of file pe_exe.h.

Referenced by getString(), operator=(), operator==(), and toString().


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