Version: 8.3.0
SALOME_ModuleCatalog.idl
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 : SALOME_ModuleCatalog.idl
24 // Author : Estelle Deville
25 // $Header$
26 //
37 module SALOME_ModuleCatalog
38 {
43  MESH,
44  Med,
46  DATA,
47  VISU,
50  } ;
53  {
54  string Parametertype;
55  string Parametername;
56  } ;
57 
63  } ;
64 
67  {
68  string Parametertype;
69  string Parametername;
71  } ;
72 
74  typedef sequence<ServicesParameter> ListOfServicesParameter;
76  typedef sequence<ServicesDataStreamParameter> ListOfServicesDataStreamParameter;
77 
79  typedef sequence<string> ListOfString;
80 
82  enum TypeKind
83  {
84  NONE ,
85  Dble ,
86  Int ,
87  Str ,
88  Bool ,
89  Objref ,
90  Seq ,
91  Array ,
93  };
94 
97  {
98  string name;
99  string type;
100  };
102  typedef sequence<MemberDefinition> ListOfMemberDefinition;
103 
106  {
107  string name;
109  string id;
110  string content;
111  ListOfString bases;
112  ListOfMemberDefinition members;
113  };
114 
116  typedef sequence<TypeDefinition> ListOfTypeDefinition;
117 
119  struct Service
120  {
121  string ServiceName;
122  ListOfServicesParameter ServiceinParameter;
123  ListOfServicesParameter ServiceoutParameter;
124  ListOfServicesDataStreamParameter ServiceinDataStreamParameter;
125  ListOfServicesDataStreamParameter ServiceoutDataStreamParameter;
127  boolean TypeOfNode;
128  } ;
130  typedef sequence<Service> ListOfInterfaceService;
132  typedef sequence<string> ListOfServices ;
135  {
136  string interfacename ;
137  ListOfInterfaceService interfaceservicelist ;
138  } ;
140  typedef sequence<DefinitionInterface> ListOfDefInterface ;
142  typedef sequence<string> ListOfInterfaces ;
143 
147  struct PathPrefix {
148  string machine;
149  string path;
150  };
151 
153  typedef sequence<PathPrefix> PathPrefixes;
154 
156  enum ImplType {
157  SO,
158  PY,
159  EXE,
161  } ;
162 
165  {
167  string name;
168  string username;
169  boolean multistudy;
171  string implname;
172  string icon;
173  string constraint;
174  ListOfDefInterface interfaces;
175  PathPrefixes paths;
176  };
177 
179  typedef sequence<string> ListOfComponents ;
181  typedef sequence<string> ListOfComputers ;
183  struct IAPP_Affich
184  {
185  string modulename;
186  string moduleusername;
187  string moduleicone;
188  string moduleversion;
189  string modulecomment;
190  };
195  typedef sequence<IAPP_Affich> ListOfIAPP_Affich ;
196 
198  exception NotFound
199  {
200  string what ;
201  } ;
202 
207  interface Acomponent
208  {
213  ListOfInterfaces GetInterfaceList() ;
214 
221  DefinitionInterface GetInterface(in string interfacename) raises(NotFound);
222 
229  ListOfServices GetServiceList(in string interfacename) raises(NotFound);
230 
231 
239  Service GetService(in string interfacename,
240  in string servicename) raises(NotFound);
241 
248  Service GetDefaultService(in string interfacename) raises(NotFound);
249 
256  string GetPathPrefix(in string machinename) raises(NotFound);
257 
262  readonly attribute string constraint ;
263 
266  readonly attribute string componentname;
267 
270  readonly attribute string componentusername;
271 
274  readonly attribute boolean multistudy;
275 
278  readonly attribute ComponentType component_type ;
279 
282  readonly attribute string component_icone;
283 
288  readonly attribute ImplType implementation_type;
294  readonly attribute string implementation_name;
295  } ;
296 
301  interface ModuleCatalog
302  {
305  void ping();
306 
309  long getPID();
310 
313  oneway void ShutdownWithExit();
314 
317  ListOfTypeDefinition GetTypes();
318 
321  ListOfComputers GetComputerList();
322 
324  string GetPathPrefix(in string machinename) raises(NotFound);
325 
327  ListOfComponents GetComponentList();
328 
332  ListOfIAPP_Affich GetComponentIconeList();
333 
336  ListOfComponents GetTypedComponentList(in ComponentType _component_type);
337 
340  Acomponent GetComponent(in string componentname) raises(NotFound);
341 
344  ComponentDef GetComponentInfo(in string componentName) raises(NotFound);
345 
350  void ImportXmlCatalogFile(in string filename) raises(NotFound);
351 
354  void shutdown();
355  } ;
356 };