Salome HOME
mergefrom branch BR_V511_PR tag mergeto_trunk_03feb09
[modules/yacs.git] / src / bases / define.hxx
1 //  Copyright (C) 2006-2008  CEA/DEN, EDF R&D
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.
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 #ifndef __DEFINE_HXX__
20 #define __DEFINE_HXX__
21
22 namespace YACS
23 {
24   //for algs of graphs and trees
25   typedef enum
26     {
27       White = 10,
28       Grey  = 11,
29       Black = 12
30     } Colour;
31
32   typedef enum
33     {
34       UNDEFINED    = -1,
35       INVALID      =  99,
36       READY        = 100,
37       TOLOAD       = 101,
38       LOADED       = 102,
39       TOACTIVATE   = 103,
40       ACTIVATED    = 104,
41       DESACTIVATED = 105,
42       DONE         = 106,
43       SUSPENDED    = 107,
44       LOADFAILED   = 108,
45       EXECFAILED   = 109,
46       PAUSE        = 110,
47       INTERNALERR  = 666,
48       DISABLED     = 777,
49       FAILED       = 888,
50       ERROR        = 999
51     } StatesForNode;
52
53   typedef enum
54     {
55       NOEVENT      = 200,
56       START        = 201,
57       FINISH       = 202,
58       ABORT        = 203
59     } Event;
60
61   typedef enum
62     {
63       NOTYETINITIALIZED = 300,
64       INITIALISED       = 301,
65       RUNNING           = 302,
66       WAITINGTASKS      = 303,
67       PAUSED            = 304,
68       FINISHED          = 305,
69       STOPPED           = 306
70     } ExecutorState;
71
72   typedef enum
73     {
74       CONTINUE        = 0,
75       STEPBYSTEP      = 1,
76       STOPBEFORENODES = 2
77     } ExecutionMode;
78 }
79 #endif