1 // Copyright (C) 2006-2014 CEA/DEN, EDF R&D
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // ----------------------------------------------------------------------------
22 %define LOADERDOCSTRING
23 "Module to load an calculation schema from a XML file."
26 %module(docstring=LOADERDOCSTRING) loader
28 //work around SWIG bug #1863647
29 #if SWIG_VERSION >= 0x010336
30 #define SwigPyIterator loader_PySwigIterator
32 #define PySwigIterator loader_PySwigIterator
35 %feature("autodoc", "1");
38 %include docyacsloader.i
41 %include "engtypemaps.i"
43 // ----------------------------------------------------------------------------
46 #include "parsers.hxx"
47 #include "LoadState.hxx"
48 #include "TypeCode.hxx"
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 *);
60 //Take ownership : it is not the default (constructor) as it is a factory
61 %newobject YACS::YACSLoader::load;
63 * End of Ownership section
66 %include "YACSloaderExport.hxx"
67 %include "parsers.hxx"
68 %import "xmlParserBase.hxx"
69 %include "LoadState.hxx"