definitions.h

Go to the documentation of this file.
00001 
00010 /* FAU Discrete Event Systems Library (libfaudes)
00011 
00012    Copyright (C) 2006  Bernd Opitz
00013    Copyright (C) 2008  Thomas Moor
00014    Exclusive copyright is granted to Klaus Schmidt
00015 
00016    This library is free software; you can redistribute it and/or
00017    modify it under the terms of the GNU Lesser General Public
00018    License as published by the Free Software Foundation; either
00019    version 2.1 of the License, or (at your option) any later version.
00020 
00021    This library is distributed in the hope that it will be useful,
00022    but WITHOUT ANY WARRANTY; without even the implied warranty of
00023    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00024    Lesser General Public License for more details.
00025 
00026    You should have received a copy of the GNU Lesser General Public
00027    License along with this library; if not, write to the Free Software
00028    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
00029 
00030 
00031 
00032 #ifndef DEFINITIONS_H
00033 
00034 #include <iostream>
00035 #include <sstream>
00036 #include <iostream>
00037 
00038 namespace faudes {
00039 
00041 typedef unsigned int Idx;
00042 
00044 #define FD_NAMELEN 13
00045 
00047 #define FD_MAXCONTAINERNAME 70
00048 
00050 #define FD_SMALLTRANSREL 100
00051 
00053 #define FD_CONSECUTIVE 6
00054 
00056 #ifndef FAUDES_VERSION
00057 #define FAUDES_VERSION "undefined version"
00058 #endif
00059 
00061 #define FD_WARN(message) std::cerr << "FAUDES_WARNING: " << message << std::endl
00062 
00064 #ifdef FAUDES_DEBUG_CODE
00065 #define FD_ERR(message) std::cerr << "FAUDES_ERROR: " << message << " in " \
00066     << __FILE__ << ":" << __LINE__ << std::endl
00067 #else
00068 #define FD_ERR(message)
00069 #endif
00070 
00072 #ifdef FAUDES_WRITE_PROGRESS 
00073 #define FD_WP(message) std::cout << message << std::endl
00074 #else
00075 #define FD_WP(message)
00076 #endif
00077 
00079 #ifdef FAUDES_DEBUG_FUNCTION
00080 #define FD_DF(message) std::cerr << "FAUDES_FUNCTION: " << message << std::endl
00081 #else
00082 #define FD_DF(message)
00083 #endif
00084 
00085 
00087 #ifdef FAUDES_DEBUG_GENERATOR
00088 #define FD_DG(message) std::cerr << "FAUDES_GENERATOR: " << message << std::endl
00089 #else
00090 #define FD_DG(message)
00091 #endif
00092 
00094 #ifdef FAUDES_DEBUG_CONTAINER
00095 #define FD_DC(message) std::cerr << "FAUDES_CONTAINER: " << message << std::endl;
00096 #else
00097 #define FD_DC(message)
00098 #endif
00099 
00101 #ifdef FAUDES_DEBUG_VERBOSE
00102 #define FD_DV(message) std::cerr << "FAUDES_VERBOSE: " <<  message << std::endl;
00103 #else
00104 #define FD_DV(message)
00105 #endif
00106 
00107 
00108 
00109 } // namespace faudes
00110 
00111 #define DEFINITIONS_H
00112 #endif 
00113 
00114 

Generated on Fri May 9 11:26:47 2008 for libFAUDES 2.09b by  doxygen 1.4.4