Singleton for managing resources compiled into an executable. More...
#include <resourcemgr.h>
Classes | |
class | Private |
Public Member Functions | |
void | registerResources (const Resource resources[], int numResources) |
bool | copyCategory (const char *categoryName, const char *targetDir) const |
bool | copyResource (const char *name, const char *targetDir) const |
bool | copyResourceAs (const char *name, const char *targetDir, const char *targetName) const |
QCString | getAsString (const char *name) const |
Static Public Member Functions | |
static ResourceMgr & | instance () |
Private Member Functions | |
const Resource * | get (const char *name) const |
ResourceMgr () | |
~ResourceMgr () | |
Private Attributes | |
Private * | p |
Singleton for managing resources compiled into an executable.
Definition at line 32 of file resourcemgr.h.
|
private |
Definition at line 41 of file resourcemgr.cpp.
|
private |
Definition at line 46 of file resourcemgr.cpp.
bool ResourceMgr::copyCategory | ( | const char * | categoryName, |
const char * | targetDir | ||
) | const |
Copies all resource belonging to a given category to a given target directory
Definition at line 59 of file resourcemgr.cpp.
bool ResourceMgr::copyResource | ( | const char * | name, |
const char * | targetDir | ||
) | const |
Copies a registered resource to a given target directory
Definition at line 159 of file resourcemgr.cpp.
bool ResourceMgr::copyResourceAs | ( | const char * | name, |
const char * | targetDir, | ||
const char * | targetName | ||
) | const |
Copies a registered resource to a given target directory under a given target name
Definition at line 76 of file resourcemgr.cpp.
|
private |
Returns a pointer to the resource object with the given name.
Definition at line 164 of file resourcemgr.cpp.
QCString ResourceMgr::getAsString | ( | const char * | name | ) | const |
Gets the resource data as a C string
Definition at line 169 of file resourcemgr.cpp.
|
static |
Returns the one and only instance of this class
Definition at line 35 of file resourcemgr.cpp.
void ResourceMgr::registerResources | ( | const Resource | resources[], |
int | numResources | ||
) |
|
private |
Definition at line 59 of file resourcemgr.h.