(PSTD_ID_STR_ABBREV_MONTHS+12)class PResourceData: public PContainer

A class representing user defined resource data object.

Inheritance:


Public Methods

[more] PResourceData ( const PString & resType, PRESOURCE_ID resID )
Create a new resource object, loading the data from the applications resources.
[more]virtual Comparison Compare ( const PObject & obj ) const
Determine if the instances are of the same resource.
[more]BYTE operator[] ( PINDEX offset ) const
Get a byte from the resource at the specified offset.
[more] operator const BYTE * () const
Return a pointer to the resource data in memory.

Public

[more] Overrides from class PObject
[more] New memeber functions for class


Inherited from PContainer:

Public

Construction

Common functions for containers

Protected Methods

ovirtual void DestroyContents()
ovirtual void AssignContents(const PContainer & c)
ovoid CopyContents(const PContainer & c)
ovoid CloneContents(const PContainer * src)
ovoid Destruct()


Inherited from PObject:

Public

Run Time Type functions

Comparison functions

I/O functions

Miscellaneous functions


Documentation

A class representing user defined resource data object. This allows an application to access resources other than the standard ones. The interpretation of the data within the resource is up to the application.

This class provides access to a simple memory block containing the data in the resource. This would typically be created using the DATA keyword in a PWRC compiled source file.

o PResourceData( const PString & resType, PRESOURCE_ID resID )
Create a new resource object, loading the data from the applications resources. Care must be made not to create resources that use a standard resource type name eg "ICON". THis is especially reelevant to the MacOS platform which make extensive use of resources.
Parameters:
resType - Resource type string of 4 characters.
resID - Unique identifier (within type) for resource.

o Overrides from class PObject

ovirtual Comparison Compare( const PObject & obj ) const
Determine if the instances are of the same resource. Note that this checks that they are of the same resource type and identifier and not merely having the same internal data.

Returns:
EqualTo if reference the same resource, otherwise GreaterThan.
Parameters:
obj - Other resource data object to comapre against.

o New memeber functions for class

oBYTE operator[]( PINDEX offset ) const
Get a byte from the resource at the specified offset.
Parameters:
offset - Offset into the resource data.

o operator const BYTE *() const
Return a pointer to the resource data in memory.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.