Salome HOME
c47ce3147546e0dbab98111e1c5fbb71972b9fda
[modules/yacs.git] / src / bases / define.hxx
1 // Copyright (C) 2006-2023  CEA, EDF
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef __DEFINE_HXX__
21 #define __DEFINE_HXX__
22
23 namespace YACS
24 {
25   //for algs of graphs and trees
26   typedef enum
27     {
28       White = 10,
29       Grey  = 11,
30       Black = 12
31     } Colour;
32
33   typedef enum
34     {
35       UNDEFINED    = -1,
36       INVALID      =  99,
37       READY        = 100,
38       TOLOAD       = 101,
39       LOADED       = 102,
40       TOACTIVATE   = 103,
41       ACTIVATED    = 104,
42       DESACTIVATED = 105,
43       DONE         = 106,
44       SUSPENDED    = 107,
45       LOADFAILED   = 108,
46       EXECFAILED   = 109,
47       PAUSE        = 110,
48       TORECONNECT  = 111,
49       INTERNALERR  = 666,
50       DISABLED     = 777,
51       FAILED       = 888,
52       ERROR        = 999
53     } StatesForNode;
54
55   typedef enum
56     {
57       NOEVENT      = 200,
58       START        = 201,
59       FINISH       = 202,
60       ABORT        = 203
61     } Event;
62
63   typedef enum
64     {
65       NOTYETINITIALIZED = 300,
66       INITIALISED       = 301,
67       RUNNING           = 302,
68       WAITINGTASKS      = 303,
69       PAUSED            = 304,
70       FINISHED          = 305,
71       STOPPED           = 306
72     } ExecutorState;
73
74   typedef enum
75     {
76       CONTINUE        = 0,
77       STEPBYSTEP      = 1,
78       STOPBEFORENODES = 2
79     } ExecutionMode;
80 }
81 #endif