Public Member Functions | |
Constructor / Destructor | |
CP_MacResources (CP_FileSystemSpec &inFileSpec, bool inOpen=true, bool inOpenReadOnly=true, bool inCloseOnDestruction=true) | |
Constructor. | |
CP_MacResources (const CP_MacResources &inMacResources) | |
virtual | ~CP_MacResources () throw () |
Destructor. | |
Current Resource File | |
void | SaveCurrent () |
void | MakeCurrent () |
void | RestoreCurrent () |
Gettes | |
SInt16 | GetRefNumber () |
SInt16 | GetResourceCount (ResType inType) |
SInt16 | GetTypesCount () |
bool | GetOneResource (ResType inType, SInt16 inID, bool inDetach, CP_HandleBlock &outResourceHandle) |
bool | GetOneIndResource (ResType inType, SInt16 inID, bool inDetach, CP_HandleBlock &outResourceHandle) |
File | |
void | Open () |
void | Close () |
operators | |
CP_MacResources & | operator= (const CP_MacResources &inMacResources) |
Protected Attributes | |
CP_FileSystemSpec | fFileSpec |
SInt16 | fResourceRefNumber |
SInt16 | fSavedResRefNum |
bool | fOpenReadOnly |
bool | fCloseOnDestruction |
|
Constructor.
|
|
Copy constructor.
|
|
Destructor.
|
|
Saved the current resource file ref number.
|
|
Make this file the current resource file, if it has been opened. Otherwise we do nothing.
|
|
Restores the previously saved resource file.
|
|
Returns the resource ref number.
|
|
Returns the count of the number of resources of the passed in ResType.
|
|
Returns the count of the types of resources in the file.
|
|
Loads a single resource from the file, and returns true if able to load the resource.
|
|
Loads a single resource from the file, and returns true if able to load the resource.
|
|
Open the resource file.
|
|
Closes the resource file.
|
|
Assignment operator.
|
|
|
|
File spec of the file being used. |
|
Resource reference number for the resource file. |
|
Saved resource reference number. |
|
Flag to indicate if the file is opened read only. |