Salome HOME
Ajout des properties
[modules/kernel.git] / src / DSC / DSC_User / Datastream / Calcium / CalciumTypes.hxx
1 //  Copyright (C) 2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
3 // 
4 //  This library is free software; you can redistribute it and/or 
5 //  modify it under the terms of the GNU Lesser General Public 
6 //  License as published by the Free Software Foundation; either 
7 //  version 2.1 of the License. 
8 // 
9 //  This library is distributed in the hope that it will be useful, 
10 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 //  Lesser General Public License for more details. 
13 // 
14 //  You should have received a copy of the GNU Lesser General Public 
15 //  License along with this library; if not, write to the Free Software 
16 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
17 // 
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20 //
21 //
22 //  File   : CalciumTypes.hxx
23 //  Author : Eric Fayolle (EDF)
24 //  Module : KERNEL
25 // Modified by : $LastChangedBy$
26 // Date        : $LastChangedDate: 2007-02-28 15:26:32 +0100 (mer, 28 fév 2007) $
27 // Id          : $Id$
28
29 #ifndef __CALCIUM_TYPES__ 
30 #define __CALCIUM_TYPES__
31
32 namespace CalciumTypes {
33
34
35   const float EPSILON =  1.e-6;
36
37
38   /* Type de dependance des variables   */
39   const int     CP_TEMPS        =       40;
40   const int     CP_ITERATION    =       41;
41   const int     CP_SEQUENTIEL   =       42;
42   /* Mode de dependance inconnu         */
43   const int     CPIT   = 6;
44
45   /* Directive de continuation d'une instance  */
46   const int     CP_CONT         =       20;
47   const int     CP_ARRET        =       21;
48
49   /* Type d'interpolation                      */
50   const int     CP_LINEAIRE     =       100;
51   const int     CP_ESCALIER     =       101;
52
53
54   /* Repere dans cycle de temps                */
55   const int     TI              =       110;
56   const int     TF              =       111;
57
58
59   /* Niveaux                                   */
60   const int     CP_ILLIMITE     =       -70;
61   const int     CP_AUTESP       =       -71;
62
63
64     
65   typedef int  InfoType ;
66   const   int  UNLIMITED_STORAGE_LEVEL = CP_ILLIMITE;
67   typedef enum {UNDEFINED_DEPENDENCY=CPIT,TIME_DEPENDENCY=CP_TEMPS,
68                 ITERATION_DEPENDENCY=CP_ITERATION,
69                 // TYPE uniquement utilisé ds CalciumInterface 
70                 SEQUENCE_DEPENDENCY =CP_SEQUENTIEL 
71                                                    }                        DependencyType;
72   typedef enum {TI_SCHEM=TI,TF_SCHEM=TF,ALPHA_SCHEM}                        DateCalSchem;
73   typedef enum {L0_SCHEM=CP_ESCALIER,L1_SCHEM=CP_LINEAIRE}                  InterpolationSchem;
74   typedef enum {UNDEFINED_EXTRA_SCHEM,E0_SCHEM,E1_SCHEM}                    ExtrapolationSchem;
75   typedef enum {UNDEFINED_DIRECTIVE,CONTINUE=CP_CONT,STOP=CP_ARRET}         DisconnectDirective;
76
77   /* Codes d'erreur                     */
78
79   /* Pas d'erreur                       */
80   const int CPOK   = 0;
81
82   /* Emetteur inconnu                   */
83   const int CPERIU = 1;
84
85   /* Nom de variable inconnu            */
86   const int CPNMVR = 2;
87   
88   /* Type entree/sortie incompatible    */
89   const int CPIOVR = 3;
90   
91   /* Type inconnu                               */
92   const int CPTP   = 4;
93   
94   /* Type de variable incompatible      */
95   const int CPTPVR = 5;
96   
97   /* Mode de dependance inconnu         */
98   // Déclaré au dessus 
99   // const int CPIT   = 6;
100
101   /* Mode dependance incompatible               */
102   const int CPITVR = 7;
103
104   /* Requete non autorisee              */
105   const int CPRENA = 8;
106
107   /* Type de deconnexion incorrect      */
108   const int CPDNTP = 9;
109
110   /* Directive de deconnexion incorrecte        */
111   const int CPDNDI = 10;
112
113   /* Nom de code inconnu                        */
114   const int CPNMCD = 11;
115
116   /* Nom d'instance inconnu             */
117   const int CPNMIN = 12;
118
119   /* Attente                            */
120   const int CPATTENTE = 13;
121
122   /* Blocage                            */
123   const int CPBLOC    = 14;
124
125   /* Nombre de valeurs transmises egal a zero   */
126   const int CPNTNULL  = 15;
127
128   /* Longueur de variable insuffisante  */
129   const int CPLGVR    = 16;
130
131   /* L'instance doit s'arreter          */
132   const int CPSTOP    = 17;
133
134   /* Arret anormal                      */
135   const int CPATAL    = 18;
136
137   /* Coupleur absent                    */
138   const int CPNOCP    = 19;
139
140   /* Variable sortante non connectee    */
141   const int CPCTVR    = 20;
142
143   /* Nombre de pas a executer egal a zero       */
144   const int CPPASNULL = 21;
145
146   /* Machine inconnue                   */
147   const int CPMACHINE = 22;
148
149   /* COUPLAGE_GROUPE non positionnee    */
150   const int CPGRNU    = 23;
151
152   /* Groupe d'instances incorrect               */
153   const int CPGRIN    = 24;
154
155   /* Fin du fichier d'entree            */
156   const int CPFINFICH = 25;
157
158   /* Erreur de format dans un fichier   */
159   const int CPERRFICH = 26;
160
161   /* Requete d'avance de n pas annulee  */
162   /* par passage en mode NORMAL         */
163   const int CPNORERR  = 27;
164
165   /* Coupleur en mode NORMAL pour une   */
166   /* requete RUN_N_PAS ou DEF_*         */
167   const int CPRUNERR  = 28;
168
169   /* Option inconnue                    */
170   const int CPOPT     = 29;
171
172   /* Valeur d'option inconnue           */
173   const int CPVALOPT  = 30;
174
175   /* Ecriture impossible par effacement */
176   const int CPECREFF  = 31;
177
178   /* Lecture d'une variable non connectee       */
179   /* ou n'appartenant pas a un lien VAS */
180   /* ou VAV s'il s'agit d'une sortante  */
181   const int CPLIEN    = 32;
182
183   /* Lecture d'une variable d'une instance*/
184   /* deconnectee avec directive CP_ARRET        */
185   const int CPINARRET = 33;
186
187   /* Les lectures sequentielles ne pourront plus        */
188   /* etre satisfaites : instance productrice arretee    */
189   const int CPSTOPSEQ = 34;
190
191   /* Erreur dans la chaine de declaration       */
192   const int CPDECL    = 35;
193
194   /* Erreur dans l'execution de l'instance ajoutee */
195   const int CPINEXEC  = 36;
196
197   /* Erreur PVM                         */
198   //   const int CPPVM = 37;
199   //   const int CPCOM = 37;
200   /* Erreur detectee au niveau de l'int CPERRINST = 38;
201   /* Mode d'execution non defini                */
202   const int CPMODE    = 39;
203
204   /* Instance deconnectee                       */
205   const int CPINSTDEC = 40;
206
207 }
208 #endif