00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef GLOBAL_INC
00013 #define GLOBAL_INC
00014
00015 #include "header.h"
00016 #include "../external/debug/simple_test.hpp"
00017 #include <ctime>
00018 #include <map>
00019
00020
00024 extern stringstream errorSS;
00025
00029 extern unsigned int totalTests;
00030
00036 #define TEST_BEGIN cout << endl << "Test(" << totalTests << "): " << SIMPLE_CURRENT_FUNCTION;
00037 #define TEST_END totalTests++; \
00038 cout << std::right << setw(20) << "test of " << SIMPLE_CURRENT_FUNCTION << " finished.";
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049 #define MISSING_BRACKET_AT_END -1
00050 #define EMPTY_PATH -2
00051 #define SPACES_AT_THE_BEGINING -3
00052 #define SPACES_AT_THE_END -4
00053 #define SPACES_IN_BETWEEN -5
00054 #define BAD_CHARACTER_IN_PATH -6
00055
00056
00057 namespace moose
00058 {
00059
00067 string fixPath(string path);
00068
00077 int checkPath( const string& path );
00078
00090 string joinPath(string pathA, string pathB);
00091 }
00092
00093 #endif