]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/bases/define.hxx
Salome HOME
copy tag mergefrom_BR_V0_1_CC_Salome_04oct07
[modules/yacs.git] / src / bases / define.hxx
index 7f8d85e04cc36e26074118af12dc591f2c7c9965..2cfe716be7542eb544fd0739aa954f21cb58e929 100644 (file)
@@ -11,23 +11,9 @@ namespace YACS
       Black = 12
     } Colour;
 
-//   typedef enum
-//     {
-//       Double = 41,
-//       Int = 42,
-//       String = 44,
-//       Bool = 45,
-//       //CorbaRef = 46,
-//       None = 49
-//     } DynType;
-
-//   typedef enum
-//     {
-//       SDouble = 71
-//     } StreamType;
-
   typedef enum
     {
+      UNDEFINED    = -1,
       INITED       = 100,
       TOLOAD       = 101,
       LOADED       = 102,
@@ -38,7 +24,11 @@ namespace YACS
       SUSPENDED    = 107,
       LOADFAILED   = 108,
       EXECFAILED   = 109,
-      PAUSE        = 110
+      PAUSE        = 110,
+      INTERNALERR  = 666,
+      DISABLED     = 777,
+      FAILED       = 888,
+      ERROR        = 999
     } StatesForNode;
 
   typedef enum
@@ -48,6 +38,23 @@ namespace YACS
       FINISH       = 202,
       ABORT        = 203
     } Event;
-}
 
+  typedef enum
+    {
+      NOTYETINITIALIZED = 300,
+      INITIALISED       = 301,
+      RUNNING           = 302,
+      WAITINGTASKS      = 303,
+      PAUSED            = 304,
+      FINISHED          = 305,
+      STOPPED           = 306
+    } ExecutorState;
+
+  typedef enum
+    {
+      CONTINUE        = 0,
+      STEPBYSTEP      = 1,
+      STOPBEFORENODES = 2
+    } ExecutionMode;
+}
 #endif