torque Torque Game Engine Documentation
TGE Version 1.5.2

ResourceObject Class Reference

#include <resManager.h>


Detailed Description

Wrapper around a ResourceInstance.

This contains all the book-keeping data used by ResDictionary and ResManager.

See also:
ResManager


Public Types

enum  Flags {
  VolumeBlock = BIT(0),
  File = BIT(1),
  Added = BIT(2)
}

Public Member Functions

 ResourceObject ()
 ~ResourceObject ()
void destruct ()
void getFileTimes (FileTime *createTime, FileTime *modifyTime)
 Get some information about file times.
List Management
ResourceObjectgetNext () const
void unlink ()
void linkAfter (ResourceObject *res)

Data Fields

S32 flags
 Set from Flags.
StringTableEntry path
 Resource path.
StringTableEntry name
 Resource name.
ResourceInstancemInstance
 Pointer to actual object instance.
S32 lockCount
 Lock count; used to control load/unload of resource from memory.
U32 crc
 CRC of resource.
ZIP Archive
If the resource is stored in a zip file, these members are populated.

StringTableEntry zipPath
 Path of zip file.
StringTableEntry zipName
 Name of zip file.
S32 fileOffset
 Offset of data in zip file.
S32 fileSize
 Size on disk of resource block.
S32 compressedFileSize
 Actual size of resource data.

Private Attributes

List Book-keeping
ResourceObjectprev
ResourceObjectnext
ResourceObjectnextEntry
 This is used by ResDictionary for its hash table.
ResourceObjectnextResource
ResourceObjectprevResource

Friends

class ResDictionary
class ResManager


Member Enumeration Documentation

Enumerator:
VolumeBlock 
File 
Added 


Constructor & Destructor Documentation

ResourceObject::ResourceObject (  ) 

ResourceObject::~ResourceObject (  )  [inline]


Member Function Documentation

void ResourceObject::destruct (  ) 

ResourceObject* ResourceObject::getNext (  )  const [inline]

void ResourceObject::unlink (  )  [inline]

void ResourceObject::linkAfter ( ResourceObject res  )  [inline]

void ResourceObject::getFileTimes ( FileTime createTime,
FileTime modifyTime 
)

Get some information about file times.

Parameters:
createTime Pointer to a FileTime structure to fill with information about when this object was created.
modifyTime Pointer to a FileTime structure to fill with information about when this object was modified.


Friends And Related Function Documentation

friend class ResDictionary [friend]

friend class ResManager [friend]


Field Documentation

This is used by ResDictionary for its hash table.

Set from Flags.

Offset of data in zip file.

Size on disk of resource block.

Actual size of resource data.

Pointer to actual object instance.

If the object is not loaded, this may be NULL or garbage.

Lock count; used to control load/unload of resource from memory.

CRC of resource.




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen