pgResMgr Class Reference
[pgRes -- Resource management module]

TODO. More...

#include <pg_res_mgr.h>

List of all members.

Classes

struct  TypeInfo

Public Types

typedef void(* Initializer )(pgID id, pgStr< char, 3 > ext, const void *data, u32 data_size, void **exinfo)
typedef void(* Finalizer )(pgID id, pgStr< char, 3 > ext, const void *data, u32 data_size, void *exinfo)

Public Member Functions

 pgDefineException (ExceptionCannotOpenFile)
 pgDefineException (ExceptionCannotReadFile)
 pgDefineException (ExceptionInvalidArgument)
 pgDefineException (ExceptionNotFound)
 pgDefineException (ExceptionNotInitialized)
 pgDefineException (ExceptionSameExtensionExists)
 pgDefineException (ExceptionSameIDExists)

Static Public Member Functions

static bool isCreated ()
static void createAfterTask ()
static void destroyBeforeSys ()
static u16 getTypeNum ()
static u16 getResourceNum ()
static void addType (pgStr< char, 3 > ext, Initializer init, Finalizer final)
static void removeType (pgStr< char, 3 > ext)
static bool hasResource (pgID id)
static pgRes getResource (pgID id)
static void addResource (pgID id, pgStr< char, 3 > ext, const void *data, u32 data_size, bool is_auto_free)
static void removeResource (pgID id)
static void loadResource (const char *filename, bool is_type_detect)
static void loadResourceAs (pgID id, const char *filename, bool is_type_detect)
static const pgStr< char, 3 > * getFirstTypeN ()
static const pgStr< char, 3 > * getNextTypeN (pgStr< char, 3 > ext)
static const pgResgetFirstResourceN ()
static const pgResgetNextResourceN (pgID id)


Detailed Description

TODO.
The documentation for this class was generated from the following file:

Generated on Sat Aug 15 11:24:38 2009 for Pogolyn by  doxygen 1.5.8