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

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