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