Salome HOME
Merge branch 'nct/helpmenu'
[modules/med.git] / idl / MEDCouplingCorbaServant.idl
1 // Copyright (C) 2007-2020  CEA/DEN, EDF R&D, OPEN CASCADE
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, or (at your option) any later version.
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 // Author : Anthony Geay (CEA/DEN)
20
21 #ifndef __MEDCOUPLINGCORBASERVANT_IDL__
22 #define __MEDCOUPLINGCORBASERVANT_IDL__
23
24 #include "SALOME_Types.idl"
25 #include "SALOME_GenericObj.idl"
26
27 module SALOME_MED
28 {
29   interface MEDCouplingTimeLabelCorbaInterface
30   {
31     long getTimeLabel();
32     string versionStr();
33     void versionMajMinRel(out long maj, out long min, out long releas);
34   };
35
36   interface MEDCouplingRefCountCorbaInterface : SALOME::ExportableObject, MEDCouplingTimeLabelCorbaInterface
37   {
38   };
39
40   interface DataArrayCorbaInterface : MEDCouplingRefCountCorbaInterface
41   {
42     string getName();
43     SALOME_TYPES::ListOfString getInfoOnComponents();
44   };
45
46   interface DataArrayDoubleCorbaInterface : DataArrayCorbaInterface
47   {
48     void getTinyInfo(out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfString sa);
49     void getSerialisationData(out SALOME_TYPES::ListOfDouble da);
50   };
51
52   interface DataArrayIntCorbaInterface : DataArrayCorbaInterface
53   {
54     void getTinyInfo(out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfString sa);
55     void getSerialisationData(out SALOME_TYPES::ListOfLong la);
56   };
57
58   interface MEDCouplingMeshCorbaInterface : MEDCouplingRefCountCorbaInterface
59   {
60     string getName();
61     //!CORBA implementation of MEDCouplingPointSet::getTinySerializationInformation
62     void getTinyInfo(out SALOME_TYPES::ListOfDouble da, out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfString sa);
63     void getSerialisationData(out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfDouble da);
64   };
65
66   interface MEDCouplingPointSetCorbaInterface : MEDCouplingMeshCorbaInterface
67   {
68     DataArrayDoubleCorbaInterface getCoords();
69   };
70
71   interface MEDCouplingUMeshCorbaInterface : MEDCouplingPointSetCorbaInterface
72   {
73   };
74
75   interface MEDCoupling1GTUMeshCorbaInterface : MEDCouplingPointSetCorbaInterface
76   {
77   };
78
79   interface MEDCoupling1SGTUMeshCorbaInterface : MEDCoupling1GTUMeshCorbaInterface
80   {
81   };
82
83   interface MEDCoupling1DGTUMeshCorbaInterface : MEDCoupling1GTUMeshCorbaInterface
84   {
85   };
86
87   interface MEDCouplingExtrudedMeshCorbaInterface : MEDCouplingMeshCorbaInterface
88   {
89   };
90
91   interface MEDCouplingStructuredMeshCorbaInterface : MEDCouplingMeshCorbaInterface
92   {
93   };
94
95   interface MEDCouplingCMeshCorbaInterface : MEDCouplingStructuredMeshCorbaInterface
96   {
97   };
98
99   interface MEDCouplingCurveLinearMeshCorbaInterface : MEDCouplingStructuredMeshCorbaInterface
100   {
101   };
102
103   interface MEDCouplingIMeshCorbaInterface : MEDCouplingStructuredMeshCorbaInterface
104   {
105   };
106
107   interface MEDCouplingFieldCorbaInterface : MEDCouplingRefCountCorbaInterface
108   {
109     MEDCouplingMeshCorbaInterface getMesh();
110   };
111   
112   interface MEDCouplingFieldTemplateCorbaInterface : MEDCouplingFieldCorbaInterface
113   {
114     //!returns the 3 tiny arrays to prepare the new instance locally.
115     void getTinyInfo(out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfDouble da, out SALOME_TYPES::ListOfString sa);
116     void getSerialisationData(out SALOME_TYPES::ListOfLong la);
117   };
118
119   interface MEDCouplingFieldDoubleCorbaInterface : MEDCouplingFieldCorbaInterface
120   {
121     string getName();
122     SALOME_TYPES::ListOfString getInfoOnComponents();
123     //!returns the 3 tiny arrays to prepare the new instance locally.
124     void getTinyInfo(out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfDouble da, out SALOME_TYPES::ListOfString sa);
125     void getSerialisationData(out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfDouble2 da2);
126   };
127
128   typedef sequence<MEDCouplingMeshCorbaInterface> MEDCouplingMeshesCorbaInterface;
129
130   interface MEDCouplingMultiFieldsCorbaInterface : MEDCouplingRefCountCorbaInterface
131   {
132     string getName();
133     SALOME_TYPES::ListOfString getInfoOnComponents();
134     long getMainTinyInfo(out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfDouble da, out long nbOfArrays, out long nbOfFields);
135     //!for field templates
136     void getTinyInfo(in long id, out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfDouble da, out SALOME_TYPES::ListOfString sa);
137     void getSerialisationData(in long id, out SALOME_TYPES::ListOfLong la);
138     //!for arrays
139     DataArrayDoubleCorbaInterface getArray(in long id);
140     //! for meshes
141     MEDCouplingMeshesCorbaInterface getMeshes();
142     MEDCouplingMeshCorbaInterface getMeshWithId(in long id);
143   };
144
145   interface MEDCouplingFieldOverTimeCorbaInterface : MEDCouplingMultiFieldsCorbaInterface
146   {
147     void getTinyInfoAboutTimeDefinition(out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfDouble da);
148   };
149 };
150
151 #endif