44 #ifndef __RESOURCE_MANAGER_H__
45 #define __RESOURCE_MANAGER_H__
49 #include "mengeCommon.h"
59 typedef std::map< std::string, Resource * >
ResourceMap;
81 static Resource *
getResource(
const std::string & fileName,
Resource * (*reader)(
const std::string & ),
const std::string & suffix );
86 static void cleanup();
109 static const std::string CAT_SYMBOL;
112 #endif // __RESOURCE_MANAGER_H__
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
Basic class for managing on-disk resources.
Definition: Resource.h:98
static ResourceMap _resources
Mapping from resource name to resource.
Definition: ResourceManager.h:102
std::map< std::string, Resource * > ResourceMap
Type declaration for a resource map - mapping file names to resource pointers.
Definition: ResourceManager.h:54
Class to handle management of on-disk resources.
Definition: ResourceManager.h:64
void removeResource(TData *data, std::map< std::string, TData * > &map)
Tempalted function for removing a resource from the managed databse.
Definition: ManagedData.h:238
TData * getResource(const std::string &name, std::map< std::string, TData * > &map)
Templated function for acquiring a managed data resource from its name.
Definition: ManagedData.h:189