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