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 FAUDES_DEFINITIONS_H
00033 #define FAUDES_DEFINITIONS_H
00034 
00035 #include "configuration.h"
00036 
00037 #include <sstream>
00038 #include <iostream>
00039 
00040 namespace faudes {
00041 
00043 typedef unsigned int Idx;
00044 
00046 #define FD_NAMELEN 13
00047 
00049 #define FD_MAXCONTAINERNAME 70
00050 
00052 #define FD_SMALLTRANSREL 100
00053 
00055 #define FD_CONSECUTIVE 6
00056 
00058 #ifndef FAUDES_VERSION
00059 #define FAUDES_VERSION "undefined version"
00060 #endif
00061 
00062 
00064 #define FAUDES_WRITE_STDERR(message) { *faudes::DebugStream() << message << std::endl ; faudes::DebugStream()->flush() ;  };
00065 
00067 #define FD_WARN(message) FAUDES_WRITE_STDERR(message);
00068 
00070 #ifdef FAUDES_DEBUG_CODE
00071 #define FD_ERR(message) FAUDES_WRITE_STDERR("FAUDES_CODE:"  << message << " in " \
00072     << __FILE__ << ":" << __LINE__ );
00073 #else
00074 #define FD_ERR(message)
00075 #endif
00076 
00078 #ifdef FAUDES_WRITE_PROGRESS 
00079 #define FD_WP(message) std::cout << message << std::endl;
00080 #else
00081 #define FD_WP(message)
00082 #endif
00083 
00085 #ifdef FAUDES_DEBUG_FUNCTION
00086 #define FD_DF(message) FAUDES_WRITE_STDERR("FAUDES_FUNCTION: " << message);
00087 #else
00088 #define FD_DF(message)
00089 #endif
00090 
00091 
00093 #ifdef FAUDES_DEBUG_GENERATOR
00094 #define FD_DG(message) FAUDES_WRITE_STDERR("FAUDES_GENERATOR: " << message);
00095 #else
00096 #define FD_DG(message)
00097 #endif
00098 
00100 #ifdef FAUDES_DEBUG_CONTAINER
00101 #define FD_DC(message) FAUDES_WRITE_STDERR("FAUDES_CONTAINER: " << message);
00102 #else
00103 #define FD_DC(message)
00104 #endif
00105 
00107 #ifdef FAUDES_DEBUG_VERBOSE
00108 #define FD_DV(message) FAUDES_WRITE_STDERR("FAUDES_VERBOSE: " <<  message);
00109 #else
00110 #define FD_DV(message)
00111 #endif
00112 
00114 #ifndef FAUDES_DOXYGEN
00115 #define FAUDES_NODOC(a) a
00116 #else
00117 #define FAUDES_NODOC(a)
00118 #endif
00119 
00121 #ifndef FAUDES_DOXYGEN
00122 #define FAUDES_TYPE public Type
00123 #else
00124 #define FAUDES_TYPE
00125 #endif
00126 
00127 
00128 } // namespace faudes
00129 
00130 #endif 
00131 
00132 

Generated on Mon Nov 10 08:13:14 2008 for libFAUDES 2.11v by  doxygen 1.4.4