#include "resources.h"
#include "resources-internal.h"
#include "threadsafe/smart_ptr.h"
Go to the source code of this file.
Typedefs | |
typedef std::map< std::string, resource_t > | res_map_t |
typedef std::map< std::string, smart_ptr< res_namespace_t > > | namespace_map_t |
Functions | |
static namespace_map_t * | getNamespaceMap (void) throw () |
static res_map_t * | getResourceMap (IN namespace_map_t *nmap, IN const char *nameSpace, IN eCreateFlag createBehavior) |
static res_map_t * | getResourceMap (IN const char *nameSpace, IN eCreateFlag createBehavior) |
int | getResourceNamespaceCount (void) throw () |
retrieve the number of resource namespaces | |
const char * | getResourceNamespaceName (IN int index) throw () |
retrieve the indexed namespace name. Returns NULL on invalid input | |
int | getResourceCount (IN const char *nameSpace) throw () |
retrieve the number of resources in the specified resource namespace | |
const char * | getResourceName (IN const char *nameSpace, IN int index) throw () |
retrieve name of the indexed resource within the given resource namespace returns NULL if index is invalid. | |
int | getResourceSize (IN const char *nameSpace, IN const char *name) throw () |
retrieve information about a named resource in the given namespace returns 0 if name is not found | |
const byte_t * | getResourceData (IN const char *nameSpace, IN const char *name) throw () |
retrieve resource data by name (returns NULL if not found). | |
void | registerResource (IN const char *nameSpace, IN const char *name, IN const byte_t *value, IN int bytes) |
register a new resource. |
typedef std::map<std::string, resource_t> res_map_t |
Definition at line 58 of file resources.cpp.
typedef std::map<std::string, smart_ptr<res_namespace_t> > namespace_map_t |
Definition at line 75 of file resources.cpp.
static namespace_map_t* getNamespaceMap | ( | void | ) | throw () [static] |
Definition at line 87 of file resources.cpp.
static res_map_t* getResourceMap | ( | IN namespace_map_t * | nmap, | |
IN const char * | nameSpace, | |||
IN eCreateFlag | createBehavior | |||
) | [static] |
Definition at line 105 of file resources.cpp.
static res_map_t* getResourceMap | ( | IN const char * | nameSpace, | |
IN eCreateFlag | createBehavior | |||
) | [static] |
Definition at line 142 of file resources.cpp.