Typedefs | Functions

resources.cpp File Reference

#include "resources.h"
#include "resources-internal.h"
#include "threadsafe/smart_ptr.h"
Include dependency graph for resources.cpp:

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_map_t > > 
namespace_map_t

Functions

static namespace_map_tgetNamespaceMap (void) throw ()
static res_map_tgetResourceMap (namespace_map_t *nmap, const char *nameSpace, eCreateFlag createBehavior)
static res_map_tgetResourceMap (const char *nameSpace, eCreateFlag createBehavior)
int getResourceNamespaceCount (void) throw ()
 retrieve the number of namespaces
const char * getResourceNamespaceName (int index) throw ()
 retrieve the indexed namespace name. Returns NULL on invalid input
int getStringResourceCount (const char *nameSpace) throw ()
 retrieve the number of string resources in the specified namespace
const char * getStringResourceName (const char *nameSpace, int index) throw ()
 retrieve the name of a given string resource
const char * getStringResource (const char *nameSpace, const char *name) throw ()
 retrieve a string resource by name (returns NULL if not found)
void registerStringResource (const char *nameSpace, const char *name, const char *value)
 register a new string resource in the given namespace

Typedef Documentation

typedef std::map<std::string, resource_t> res_map_t

Definition at line 49 of file resources.cpp.

typedef std::map<std::string, smart_ptr<res_map_t> > namespace_map_t

Definition at line 52 of file resources.cpp.


Function Documentation

static namespace_map_t* getNamespaceMap ( void   )  throw () [static]

Definition at line 64 of file resources.cpp.

static res_map_t* getResourceMap ( namespace_map_t nmap,
const char *  nameSpace,
eCreateFlag  createBehavior 
) [static]

Definition at line 82 of file resources.cpp.

static res_map_t* getResourceMap ( const char *  nameSpace,
eCreateFlag  createBehavior 
) [static]

Definition at line 118 of file resources.cpp.