The Original CHomP Software
mwconfig.h
Go to the documentation of this file.
1
3
15
16// Copyright (C) 1997-2020 by Pawel Pilarczyk.
17//
18// This file is part of my research software package. This is free software:
19// you can redistribute it and/or modify it under the terms of the GNU
20// General Public License as published by the Free Software Foundation,
21// either version 3 of the License, or (at your option) any later version.
22//
23// This software is distributed in the hope that it will be useful,
24// but WITHOUT ANY WARRANTY; without even the implied warranty of
25// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26// GNU General Public License for more details.
27//
28// You should have received a copy of the GNU General Public License
29// along with this software; see the file "license.txt". If not,
30// please, see <https://www.gnu.org/licenses/>.
31
32// Started on August 10, 2004. Last revision: November 29, 2007.
33
34
35#ifndef _CHOMP_MULTIWORK_MWCONFIG_H_
36#define _CHOMP_MULTIWORK_MWCONFIG_H_
37
38
39// --------------------------------------------------
40// --------------------- mwData ---------------------
41// --------------------------------------------------
42
43// use the 'bool' data type
44#ifndef mwBOOL
45 #define mwBOOL 1
46#endif // mwBOOL
47
48// use 'long long' (does not work under MS Visual C++ 6.0)
49#ifndef mwLONGLONG
50 #if defined (_MSC_VER) || defined (__STRICT_ANSI__)
51 #define mwLONGLONG 0
52 #else
53 #define mwLONGLONG 1
54 #endif
55#endif // mwLONGLONG
56
57// use the 'string' class from the standard library
58#ifndef mwSTRING
59 #define mwSTRING 1
60#endif // mwBOOL
61
62// create stream I/O operators << and >> (for binary streams only!)
63#ifndef mwSTREAMS
64 #define mwSTREAMS 1
65#endif
66
67
68// --------------------------------------------------
69// ---------------------- bool ----------------------
70// --------------------------------------------------
71
72// if the 'bool' data type seems to be unknown to the compiler,
73// define your own 'bool', 'true' and 'false' to use in the program
74#if !mwBOOL
75 #define bool unsigned char
76 #define true 1
77 #define false 0
78#endif // no mwBOOL
79
80
81// --------------------------------------------------
82// ---------------- network settings ----------------
83// --------------------------------------------------
84
85// are we in a network environment (otherwise this is a single process)
86#ifndef mwNETWORK
92 #define mwNETWORK 1
93#endif // mwNETWORK
94
99#define mwWXWIN 0
100
101// should the wxWindows sockets be used?
102#ifndef mwWXWIN
103 #if (defined (__WXMSW__) || defined (__WXGTK__) || \
104 defined (__WXMOTIF__) || defined (__WXX11__) || \
105 defined (__WXMAC__) || defined (__WXUNIVERSAL__))
106 #define mwWXWIN 1
107 #else
108 #define mwWXWIN 0
109 #endif
110#endif // mwWXWIN
111
112
113// --------------------------------------------------
114// -------------------- defaults --------------------
115// --------------------------------------------------
116
117#ifndef mwPORT
120 #define mwPORT 5885
121#endif // mwPORT
122
123#ifndef mwCTRLNUM
125 #define mwCTRLNUM 16780
126#endif // mwCTRLNUM
127
128#ifndef mwTIMEOUT
130 #define mwTIMEOUT 28800
131#endif // mwTIMEOUT
132
133
134// --------------------------------------------------
135// ------------------ limitations -------------------
136// --------------------------------------------------
137
138#ifndef mwMAXWORK
143 #define mwMAXWORK 1024
144#endif // mwMAXWORK
145
146
147// --------------------------------------------------
148// ------------------- constants --------------------
149// --------------------------------------------------
150
151namespace chomp {
152namespace multiwork {
153
157{
159 mwOk = 0,
160
163
167
169 mwReject = -3
170
171}; /* enum mwConstants */
172
173} // namespace multiwork
174} // namespace chomp
175
176
177#endif // _CHOMP_MULTIWORK_MWCONFIG_H_
178
180
mwConstants
Various error codes used during the communication.
Definition: mwconfig.h:157
@ mwNoData
There is no data to be sent to workers, for example, because everything has been already sent.
Definition: mwconfig.h:166
@ mwReject
The data has been rejected.
Definition: mwconfig.h:169
@ mwError
A serious error occurred.
Definition: mwconfig.h:162
@ mwOk
Everything is fine.
Definition: mwconfig.h:159
This namespace contains the entire CHomP library interface.
Definition: bitmaps.h:51