InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
MResourceShell Class Reference

#include <MResourceShell.h>

Inheritance diagram for MResourceShell:
CResourceShell

Static Public Member Functions

static void ReleaseResource (const SysHandle rsrcHandle)
 
static void DetachResource (const SysHandle rsrcHandle)
 
static int32 GetSizeofResource (const SysHandle rsrcHandle)
 
static SysHandle GetResourceByID (RsrcType type, RsrcID id)
 
static SysHandle GetResourceByIndex (RsrcType type, RsrcID index)
 
static int16 CountResources (RsrcType type)
 
- Static Public Member Functions inherited from CResourceShell
static SysHandle GetResource (const RsrcSpec &spec)
 
static int16 CountResourcesLI (const PMLocaleId &locale, RsrcType resType)
 
static int16 CountResourcesLI (const RsrcSpec &spec)
 
static SysHandle GetResourceLI (const RsrcSpec &spec)
 
static void EnumerateResourcesLI (const PMLocaleId &locale, const PluginID &pluginID, RsrcType resType, EnumResource func, void *enumData, bool16 resourceAlreadyOpened=kFalse)
 
static void EnumerateResources (const PluginID &pluginID, RsrcType resType, EnumResource func, void *enumData)
 

Additional Inherited Members

- Public Types inherited from CResourceShell
typedef bool16(* EnumResource )(IPMStream *s, void *enumData)
 

Detailed Description

Macintosh implementation for some resource reading methods.

See Also
CResourceShell for more

Member Function Documentation

int16 MResourceShell::CountResources (RsrcType rsrcType)
inlinestatic

Get a count of resources of a certain type.

Parameters
typewhich resource type
Returns
the count of resources of the desired type
See Also
CountResources
void MResourceShell::DetachResource (const SysHandle rsrcHandle)
inlinestatic

Retains a resource handle. Breaks the connection to the resource. Equivilent to mac toolbox DetachResource call.

Parameters
rsrcHandlewhich handle to detach
See Also
DetachResource
SysHandle MResourceShell::GetResourceByID (RsrcType type,
RsrcID id 
)
inlinestatic

Get a handle to a resource.

Parameters
typewhich resource type
idwhich resource id
Returns
handle to the requested resource
See Also
GetResourceByID
SysHandle MResourceShell::GetResourceByIndex (RsrcType type,
RsrcID index 
)
inlinestatic

Get a handle to a resource by index

Parameters
typewhich resource type
indexwhich resource index
Returns
handle to the requested resource
See Also
GetResourceByIndex
int32 MResourceShell::GetSizeofResource (const SysHandle rsrcHandle)
inlinestatic

Get the size of a resource

Parameters
rsrcHandlehandle to the resource you want to know the size of.
Returns
size of the resource
See Also
GetSizeofResource
void MResourceShell::ReleaseResource (const SysHandle rsrcHandle)
inlinestatic

Releases resource handle. Usually called to free up memory after a call to GetResource.

Parameters
rsrcHandlewhich handle to free
See Also
ReleaseResource