Salome HOME
Revert "Synchronize adm files"
[modules/kernel.git] / idl / Calcium_Ports.idl.in
1 // Copyright (C) 2007-2014  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 //  File   : SALOME_Ports.idl
23 //  Author : Eric Fayolle, EDF
24 //
25 #ifndef _CALCIUM_PORTS_IDL_
26 #define _CALCIUM_PORTS_IDL_
27
28 #include "SALOME_Ports.idl"
29
30 module Ports {
31
32   module Calcium_Ports {
33
34     const long UNLIMITED_STORAGE_LEVEL = -70;   
35     enum DependencyType      { UNDEFINED_DEPENDENCY, TIME_DEPENDENCY, ITERATION_DEPENDENCY };
36     enum DateCalSchem        { TI_SCHEM, TF_SCHEM , ALPHA_SCHEM};
37     enum InterpolationSchem  { L0_SCHEM, L1_SCHEM };
38     enum ExtrapolationSchem  { UNDEFINED_EXTRA_SCHEM, E0_SCHEM, E1_SCHEM};
39
40     //    enum DisconnectDirective {UNDEFINED_DIRECTIVE,CONTINUE,STOP};
41     typedef boolean DisconnectDirective;
42     const DisconnectDirective stop = FALSE;
43     const DisconnectDirective cont = TRUE;
44
45     interface Calcium_Port : Ports::Data_Port, Ports::PortProperties {
46       void disconnect(in DisconnectDirective mode);
47     };
48
49     typedef sequence<long>                      seq_long;
50     typedef sequence<long long>                 seq_long_long;
51     typedef sequence< @CALCIUM_IDL_INT_F77@ >   seq_integer;
52
53     typedef sequence<float>     seq_float;
54     typedef sequence<double>    seq_double;
55     typedef sequence<string>    seq_string;
56     typedef sequence<boolean>   seq_boolean;
57     typedef seq_float           seq_complex;
58
59     //Fortran int size conforming port  
60     interface Calcium_Integer_Port : Calcium_Port {
61       void put (in seq_integer data, in double time, in long tag);
62     };
63
64     interface Calcium_Intc_Port : Calcium_Port {
65       void put (in seq_long data, in double time, in long tag);
66     };
67
68     interface Calcium_Long_Port : Calcium_Port {
69       void put (in seq_long_long data, in double time, in long tag);
70     };
71
72
73     interface Calcium_Real_Port : Calcium_Port {
74       void put (in seq_float data, in double time, in long tag);
75     };
76
77     interface Calcium_Double_Port : Calcium_Port {
78       void put (in seq_double data, in double time, in long tag);
79     };
80
81     interface Calcium_String_Port : Calcium_Port {
82       void put (in seq_string data, in double time, in long tag);
83     };
84
85     interface Calcium_Logical_Port : Calcium_Port {
86       void put (in seq_boolean data, in double time, in long tag);
87     };
88
89     interface Calcium_Complex_Port : Calcium_Port {
90       void put (in seq_complex data, in double time, in long tag);
91     };
92
93   };
94 };
95
96 #endif