Salome HOME
1) Add CMake files to the dist rules (make dist)
[modules/med.git] / idl / MEDCouplingCorbaServant.idl
1 // Copyright (C) 2007-2012  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.
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   };
33
34   interface MEDCouplingRefCountCorbaInterface : SALOME::ExportableObject, MEDCouplingTimeLabelCorbaInterface
35   {
36   };
37
38   interface DataArrayCorbaInterface : MEDCouplingRefCountCorbaInterface
39   {
40     string getName();
41     SALOME_TYPES::ListOfString getInfoOnComponents();
42   };
43
44   interface DataArrayDoubleCorbaInterface : DataArrayCorbaInterface
45   {
46     void getTinyInfo(out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfString sa);
47     void getSerialisationData(out SALOME_TYPES::ListOfDouble da);
48   };
49
50   interface DataArrayIntCorbaInterface : DataArrayCorbaInterface
51   {
52     void getTinyInfo(out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfString sa);
53     void getSerialisationData(out SALOME_TYPES::ListOfLong la);
54   };
55
56   interface MEDCouplingMeshCorbaInterface : MEDCouplingRefCountCorbaInterface
57   {
58     string getName();
59     //!CORBA inplementation of MEDCouplingPointSet::getTinySerializationInformation
60     void getTinyInfo(out SALOME_TYPES::ListOfDouble da, out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfString sa);
61     void getSerialisationData(out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfDouble da);
62   };
63
64   interface MEDCouplingPointSetCorbaInterface : MEDCouplingMeshCorbaInterface
65   {
66     DataArrayDoubleCorbaInterface getCoords();
67   };
68
69   interface MEDCouplingUMeshCorbaInterface : MEDCouplingPointSetCorbaInterface
70   {
71   };
72
73   interface MEDCouplingExtrudedMeshCorbaInterface : MEDCouplingMeshCorbaInterface
74   {
75   };
76
77   interface MEDCouplingCMeshCorbaInterface : MEDCouplingMeshCorbaInterface
78   {
79   };
80
81   interface MEDCouplingFieldCorbaInterface : MEDCouplingRefCountCorbaInterface
82   {
83     MEDCouplingMeshCorbaInterface getMesh();
84   };
85   
86   interface MEDCouplingFieldTemplateCorbaInterface : MEDCouplingFieldCorbaInterface
87   {
88     //!returns the 3 tiny arrays to prepare the new instance locally.
89     void getTinyInfo(out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfDouble da, out SALOME_TYPES::ListOfString sa);
90     void getSerialisationData(out SALOME_TYPES::ListOfLong la);
91   };
92
93   interface MEDCouplingFieldDoubleCorbaInterface : MEDCouplingFieldCorbaInterface
94   {
95     string getName();
96     SALOME_TYPES::ListOfString getInfoOnComponents();
97     //!returns the 3 tiny arrays to prepare the new instance locally.
98     void getTinyInfo(out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfDouble da, out SALOME_TYPES::ListOfString sa);
99     void getSerialisationData(out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfDouble2 da2);
100   };
101
102   typedef sequence<MEDCouplingMeshCorbaInterface> MEDCouplingMeshesCorbaInterface;
103
104   interface MEDCouplingMultiFieldsCorbaInterface : MEDCouplingRefCountCorbaInterface
105   {
106     string getName();
107     SALOME_TYPES::ListOfString getInfoOnComponents();
108     long getMainTinyInfo(out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfDouble da, out long nbOfArrays, out long nbOfFields);
109     //!for field templates
110     void getTinyInfo(in long id, out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfDouble da, out SALOME_TYPES::ListOfString sa);
111     void getSerialisationData(in long id, out SALOME_TYPES::ListOfLong la);
112     //!for arrays
113     DataArrayDoubleCorbaInterface getArray(in long id);
114     //! for meshes
115     MEDCouplingMeshesCorbaInterface getMeshes();
116     MEDCouplingMeshCorbaInterface getMeshWithId(in long id);
117   };
118
119   interface MEDCouplingFieldOverTimeCorbaInterface : MEDCouplingMultiFieldsCorbaInterface
120   {
121     void getTinyInfoAboutTimeDefinition(out SALOME_TYPES::ListOfLong la, out SALOME_TYPES::ListOfDouble da);
122   };
123 };
124
125 #endif