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

Talos.hxx

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

Generated on Wed Apr 25 11:18:06 2007 for Talos by  doxygen 1.4.2