Go to the documentation of this file.00001 #ifndef BRICS_OODL_ERRORS_H
00002 #define BRICS_OODL_ERRORS_H
00003
00004
00005 #include <map>
00006 using namespace std;
00007
00008 #include <string>
00009 #include <iostream>
00010 #include "Logger.hpp"
00011 namespace brics_oodl {
00012
00017 class Errors {
00018 public:
00019 Errors();
00020
00021 virtual ~Errors();
00022
00023 void getNextError(std::string& name, std::string& description);
00024
00025 void getAllErrors(map<std::string, std::string>& allErrors);
00026
00027 unsigned int getAmountOfErrors();
00028
00029 void addError(std::string name, std::string description);
00030
00031 void deleteAllErrors();
00032
00033 void printErrorsToConsole();
00034
00035
00036 private:
00037
00038 map<std::string, std::string> occurredErrors;
00039
00040 map<std::string,std::string>::iterator iter;
00041
00042 };
00043
00044 }
00045 #endif