00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef TALOS_FILE_TALOS_HXX
00021
00022
00023 #include <iostream>
00024 #include <algorithm>
00025 #include <string>
00026 #include <fstream>
00027 #include <sstream>
00028 #include <vector>
00029 #include <exception>
00030 #include <stdexcept>
00031
00033 #ifndef ERR
00034 #define ERR(x) std::cout << "Hermes - " #x << std::endl
00035 #endif
00036
00037 #ifndef DISP
00038 #define DISP(x) std::cout << #x ": " << (x) << std::endl
00039 #endif
00040
00041 #ifdef TRY
00042 #undef TRY
00043 #endif
00044 #define TRY try\
00045 {
00046
00047 #ifdef END
00048 #undef END
00049 #endif
00050 #define END \
00051 }\
00052 catch (std::exception& Err)\
00053 {\
00054 cout << "C++ exception: " << Err.what() << endl;\
00055 return 1;\
00056 }\
00057 catch (std::string& str)\
00058 {\
00059 cout << str << endl;\
00060 return 1;\
00061 }\
00062 catch (const char* str)\
00063 {\
00064 cout << str << endl;\
00065 return 1;\
00066 }\
00067 catch(...)\
00068 {\
00069 cout << "Unknown exception..." <<endl;\
00070 return 1;\
00071 }
00072
00074 namespace Talos
00075 {
00076 using namespace std;
00077 }
00078
00079 #include "String.cxx"
00080 #include "Date.cxx"
00081 #include "Files.cxx"
00082
00083 #define TALOS_FILE_TALOS_HXX
00084 #endif