OpendTect-6_4  6.4
mmcommunicdefs.h
Go to the documentation of this file.
1 #ifndef mmcommunicdefs_h
2 #define mmcommunicdefs_h
3 
4 /*
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H. Lammertink
9  Date: Dec 2002
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 Defines for MM job communication status tags and codes
14 
15 */
16 
17 
18 #define mPID_TAG 'P'
19 #define mPROC_STATUS 'S'
20 #define mCTRL_STATUS 'C'
21 #define mEXIT_STATUS 'E'
22 #define mERROR_MSG 'e'
23 
24 
25 // Control status values
26 #define mSTAT_UNDEF 0
27 #define mSTAT_WORKING 1
28 #define mSTAT_WRAPUP 2
29 #define mSTAT_FINISHED 3
30 #define mSTAT_ALLDONE 4
31 #define mSTAT_PAUSED 5
32 #define mSTAT_JOBERROR -1
33 #define mSTAT_HSTERROR -2
34 #define mSTAT_KILLED -3
35 #define mSTAT_TIMEOUT -4
36 
37 #define mIsOk( stat ) ( stat >= 0 && stat <= mSTAT_PAUSED )
38 #define mIsError( stat ) ( stat < 0 || stat > mSTAT_PAUSED )
39 
40 
41 // Master Control tag
42 #define mRSP_WORK 'W'
43 #define mRSP_STOP 'S'
44 #define mRSP_PAUSE 'P'
45 #define mRSP_UNDEF 'U'
46 
47 
48 #endif

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019