00001
00002
00003
00004
00005
00006
00007
00008 #ifndef STATISTICSMANAGER_H_
00009 #define STATISTICSMANAGER_H_
00010
00011 #include <string>
00012 #include <map>
00013
00025 class StatisticsManager {
00026 public:
00030 void set(const char *key, int value);
00031
00035 int get(const char *key);
00036
00040 void print(const char *key);
00041
00045 void printAll();
00046
00050 void resetAll();
00051
00055 static StatisticsManager* getInstance();
00056
00057 private:
00058 StatisticsManager();
00059 ~StatisticsManager();
00060
00061 void print(const char* key, int value);
00062 std::map<std::string, int> map_;
00063 };
00064
00065 #endif