Changeset 1606 for code/branches/core3/src/util
- Timestamp:
- Jun 16, 2008, 7:53:40 PM (17 years ago)
- Location:
- code/branches/core3/src/util
- Files:
-
- 2 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/util/CMakeLists.txt
r1586 r1606 2 2 ArgReader.cc 3 3 Clipboard.cc 4 Error.cc 4 5 ExprParser.cc 5 6 Math.cc -
code/branches/core3/src/util/Error.cc
r1605 r1606 33 33 34 34 #include "Error.h" 35 #include " util/Debug.h"35 #include "Debug.h" 36 36 37 37 namespace orxonox … … 39 39 Error::Error(std::string errorMsg, int errorCode) 40 40 { 41 COUT(1) << "############################ " << std::endl42 << "# Error "<<errorCode<< " #"<< std::endl43 << "############################ "<< std::endl44 << "An error occured in Orxonox: "<< std::endl;41 COUT(1) << "############################ " << std::endl 42 << "# Error " << errorCode << " #" << std::endl 43 << "############################ " << std::endl 44 << "An error occured in Orxonox: " << std::endl; 45 45 46 if (errorMsg =="")46 if (errorMsg == "") 47 47 { 48 48 switch (errorCode) … … 51 51 errorMsg = "Some error!"; 52 52 break; 53 53 54 default: 54 55 errorMsg = "Unknown error!"; 55 56 } 56 57 } 57 COUT(1) << errorMsg << std::endl << std::endl;58 COUT(1) << errorMsg << std::endl << std::endl; 58 59 } 59 60 } -
code/branches/core3/src/util/Error.h
r1605 r1606 35 35 #define _Error_H__ 36 36 37 #include " CorePrereqs.h"37 #include "UtilPrereqs.h" 38 38 39 39 #include <string> … … 41 41 namespace orxonox 42 42 { 43 class _ CoreExport Error43 class _UtilExport Error 44 44 { 45 45 public: -
code/branches/core3/src/util/UtilPrereqs.h
r1586 r1606 62 62 class ArgReader; 63 63 class Convert; 64 class ExprParser; 64 65 class MultiTypePrimitive; 65 66 class MultiTypeString; 66 67 class MultiTypeMath; 67 class OutputHandler;68 68 class SubString; 69 69 … … 72 72 class OutputBuffer; 73 73 class OutputBufferListener; 74 class Error; 75 class OutputHandler; 74 76 } 75 77
Note: See TracChangeset
for help on using the changeset viewer.