mwconfig.h

Go to the documentation of this file.
00001 
00002 
00003 
00015 
00016 // Copyright (C) 1997-2010 by Pawel Pilarczyk.
00017 //
00018 // This file is part of the Homology Library.  This library is free software;
00019 // you can redistribute it and/or modify it under the terms of the GNU
00020 // General Public License as published by the Free Software Foundation;
00021 // either version 2 of the License, or (at your option) any later version.
00022 //
00023 // This library is distributed in the hope that it will be useful,
00024 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00025 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00026 // GNU General Public License for more details.
00027 //
00028 // You should have received a copy of the GNU General Public License along
00029 // with this software; see the file "license.txt".  If not, write to the
00030 // Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
00031 // MA 02111-1307, USA.
00032 
00033 // Started on August 10, 2004. Last revision: November 29, 2007.
00034 
00035 
00036 #ifndef _CHOMP_MULTIWORK_MWCONFIG_H_
00037 #define _CHOMP_MULTIWORK_MWCONFIG_H_
00038 
00039 
00040 // --------------------------------------------------
00041 // --------------------- mwData ---------------------
00042 // --------------------------------------------------
00043 
00044 // use the 'bool' data type
00045 #ifndef mwBOOL
00046         #define mwBOOL 1
00047 #endif // mwBOOL
00048 
00049 // use 'long long' (does not work under MS Visual C++ 6.0)
00050 #ifndef mwLONGLONG
00051         #if defined (_MSC_VER) || defined (__STRICT_ANSI__)
00052                 #define mwLONGLONG 0
00053         #else
00054                 #define mwLONGLONG 1
00055         #endif
00056 #endif // mwLONGLONG
00057 
00058 // use the 'string' class from the standard library
00059 #ifndef mwSTRING
00060         #define mwSTRING 1
00061 #endif // mwBOOL
00062 
00063 // create stream I/O operators << and >> (for binary streams only!)
00064 #ifndef mwSTREAMS
00065         #define mwSTREAMS 1
00066 #endif
00067 
00068 
00069 // --------------------------------------------------
00070 // ---------------------- bool ----------------------
00071 // --------------------------------------------------
00072 
00073 // if the 'bool' data type seems to be unknown to the compiler,
00074 // define your own 'bool', 'true' and 'false' to use in the program
00075 #if !mwBOOL
00076         #define bool unsigned char
00077         #define true 1
00078         #define false 0
00079 #endif // no mwBOOL
00080 
00081 
00082 // --------------------------------------------------
00083 // ---------------- network settings ----------------
00084 // --------------------------------------------------
00085 
00086 // are we in a network environment (otherwise this is a single process)
00087 #ifndef mwNETWORK
00088 
00089 
00090 
00091 
00092 
00093         #define mwNETWORK 1
00094 #endif // mwNETWORK
00095 
00100 #define mwWXWIN 0
00101 
00102 // should the wxWindows sockets be used?
00103 #ifndef mwWXWIN
00104         #if (defined (__WXMSW__) || defined (__WXGTK__) || \
00105                 defined (__WXMOTIF__) || defined (__WXX11__) || \
00106                 defined (__WXMAC__) || defined (__WXUNIVERSAL__))
00107                 #define mwWXWIN 1
00108         #else
00109                 #define mwWXWIN 0
00110         #endif
00111 #endif // mwWXWIN
00112 
00113 
00114 // --------------------------------------------------
00115 // -------------------- defaults --------------------
00116 // --------------------------------------------------
00117 
00118 #ifndef mwPORT
00119 
00120 
00121         #define mwPORT 5885
00122 #endif // mwPORT
00123         
00124 #ifndef mwCTRLNUM
00125 
00126         #define mwCTRLNUM 16780
00127 #endif // mwCTRLNUM
00128 
00129 #ifndef mwTIMEOUT
00130 
00131         #define mwTIMEOUT 28800
00132 #endif // mwTIMEOUT
00133 
00134 
00135 // --------------------------------------------------
00136 // ------------------ limitations -------------------
00137 // --------------------------------------------------
00138 
00139 #ifndef mwMAXWORK
00140 
00141 
00142 
00143 
00144         #define mwMAXWORK 1024
00145 #endif // mwMAXWORK
00146 
00147 
00148 // --------------------------------------------------
00149 // ------------------- constants --------------------
00150 // --------------------------------------------------
00151 
00152 namespace chomp {
00153 namespace multiwork {
00154 
00157 enum mwConstants
00158 {
00160         mwOk = 0,
00161 
00163         mwError = -1,
00164 
00167         mwNoData = -2,
00168 
00170         mwReject = -3
00171 
00172 }; /* enum mwConstants */
00173 
00174 } // namespace multiwork
00175 } // namespace chomp
00176 
00177 
00178 #endif // _CHOMP_MULTIWORK_MWCONFIG_H_
00179 
00181