Main Page | User's Guide | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members

Talos.hxx

00001 // Copyright (C) 2004-2007, Vivien Mallet
00002 //
00003 // This file is part of Talos library, which provides miscellaneous tools to
00004 // make up for C++ lacks and to ease C++ programming.
00005 //
00006 // Talos is free software; you can redistribute it and/or modify it under the
00007 // terms of the GNU General Public License as published by the Free Software
00008 // Foundation; either version 2 of the License, or (at your option) any later
00009 // version.
00010 //
00011 // Talos is distributed in the hope that it will be useful, but WITHOUT ANY
00012 // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00013 // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
00014 // details.
00015 //
00016 // For more information, visit the Talos home page:
00017 //     http://vivienmallet.net/lib/talos/
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

Generated on Tue Oct 23 14:06:14 2007 for Talos by  doxygen 1.4.2