00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include "../library.h"
00021 #ifndef REGISTRY_H
00022 #define REGISTRY_H
00023
00024 class Registry{
00025 static bool instanceFlag;
00026 static Registry *single;
00027 Registry();
00028 public:
00029 ~Registry();
00030 static Registry* getInstance();
00031 void set(std::string label, void * object);
00032 void * get(std::string label);
00033 std::map<std::string, void *> store;
00034 };
00035
00036 #endif