equal
deleted
inserted
replaced
21 #ifndef EXCEPTIONIMPLEMENTATION_H |
21 #ifndef EXCEPTIONIMPLEMENTATION_H |
22 #define EXCEPTIONIMPLEMENTATION_H |
22 #define EXCEPTIONIMPLEMENTATION_H |
23 |
23 |
24 #include "common.h" |
24 #include "common.h" |
25 |
25 |
26 typedef std::map<int,String> IndexVsMessageMap; |
26 typedef map<int,string> IndexVsMessageMap; |
27 const unsigned int KMAXWARNINGSORERROR = 100; |
27 const unsigned int KMAXWARNINGSORERROR = 100; |
28 |
28 |
29 /** |
29 /** |
30 To include more error or warning messages, Just include the key word here and |
30 To include more error or warning messages, Just include the key word here and |
31 write the key word contents into the Message array at ".cpp" file. |
31 write the key word contents into the Message array at ".cpp" file. |
103 class ExceptionImplementation |
103 class ExceptionImplementation |
104 { |
104 { |
105 public: |
105 public: |
106 static ExceptionImplementation* Instance(unsigned int aCmdFlag); |
106 static ExceptionImplementation* Instance(unsigned int aCmdFlag); |
107 static void DeleteInstance(void); |
107 static void DeleteInstance(void); |
108 String& Message(int aMsgIndex); |
108 string& Message(int aMsgIndex); |
109 void Log(const String aMsg); |
109 void Log(const string aMsg); |
110 void Report(const String aMsg); |
110 void Report(const string aMsg); |
111 |
111 |
112 private: |
112 private: |
113 ofstream iLogStream; |
113 ofstream iLogStream; |
114 IndexVsMessageMap iMessage; |
114 IndexVsMessageMap iMessage; |
115 unsigned int iMsgIndex; |
115 unsigned int iMsgIndex; |