Salome HOME
3466b4c4f4267f6b721f66835456ffdd35d13587
[modules/yacs.git] / src / yacsloader_swig / loader.i
1 // Copyright (C) 2006-2024  CEA, EDF
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
20 // ----------------------------------------------------------------------------
21 //
22 %define LOADERDOCSTRING
23 "Module to load an calculation schema from a XML file."
24 %enddef
25
26 %module(docstring=LOADERDOCSTRING) loader
27
28 //work around SWIG bug #1863647
29 #if SWIG_VERSION >= 0x010336
30 #define SwigPyIterator loader_PySwigIterator
31 #else
32 #define PySwigIterator loader_PySwigIterator
33 #endif
34
35 %feature("autodoc", "1");
36
37 #ifdef DOXYGEN_IS_OK
38 %include docyacsloader.i
39 #endif
40
41 %include "engtypemaps.i"
42
43 // ----------------------------------------------------------------------------
44
45 %{
46 #include "parsers.hxx"
47 #include "LoadState.hxx"
48 #include "TypeCode.hxx"
49 %}
50
51 %types(YACS::ENGINE::Node *);
52 %types(YACS::ENGINE::InputPort *,YACS::ENGINE::OutputPort *,YACS::ENGINE::InputDataStreamPort *,YACS::ENGINE::OutputDataStreamPort *);
53 %types(YACS::ENGINE::InGate *,YACS::ENGINE::OutGate *,YACS::ENGINE::InPort *,YACS::ENGINE::OutPort *,YACS::ENGINE::Port *);
54 %types(YACS::ENGINE::Container *, YACS::ENGINE::HomogeneousPoolContainer *);
55
56 %import "pilot.i"
57
58 /*
59  * Ownership section
60  */
61 //Take ownership : it is not the default (constructor) as it is a factory
62 %newobject YACS::YACSLoader::load;
63 /*
64  * End of Ownership section
65  */
66
67 %include "YACSloaderExport.hxx"
68 %include "parsers.hxx"
69 %import "xmlParserBase.hxx"
70 %include "LoadState.hxx"
71