Salome HOME
Revert "Merge branch 'yan/V8_3_BR' into pre/V8_3_BR"
[modules/hydrosolver.git] / src / mascaret_wrapper / mascaret_swig.i
1 //  Copyright (C) 2012-2013 EDF
2 //
3 //  This file is part of SALOME HYDRO module.
4 //
5 //  SALOME HYDRO module is free software: you can redistribute it and/or modify
6 //  it under the terms of the GNU General Public License as published by
7 //  the Free Software Foundation, either version 3 of the License, or
8 //  (at your option) any later version.
9 //
10 //  SALOME HYDRO module is distributed in the hope that it will be useful,
11 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 //  GNU General Public License for more details.
14 //
15 //  You should have received a copy of the GNU General Public License
16 //  along with SALOME HYDRO module.  If not, see <http://www.gnu.org/licenses/>.
17
18 %module mascaret_swig
19
20 %include std_string.i
21
22 %include std_vector.i
23
24 %{
25 #include "Mascaret.hxx"
26 %}
27
28 // Instantiate template used by Mascaret
29 %template(MascaretFileVector) std::vector<SalomeHydro::MascaretFile>;
30
31 // Exception handling
32 %catches(SalomeHydro::MascaretException, ...) SalomeHydro::Mascaret::Mascaret();
33 %catches(SalomeHydro::MascaretException, ...) SalomeHydro::Mascaret::~Mascaret();
34 %catches(SalomeHydro::MascaretException, ...) SalomeHydro::Mascaret::importModel(const MascaretFileList & fileList);
35 %catches(SalomeHydro::MascaretException, ...) SalomeHydro::Mascaret::initState(const std::string & ligFileName);
36 %catches(SalomeHydro::MascaretException, ...) SalomeHydro::Mascaret::compute(double startTime, double endTime, double timeStep);
37 %catches(SalomeHydro::MascaretException, ...) SalomeHydro::Mascaret::compute();
38 %catches(SalomeHydro::MascaretException, ...) SalomeHydro::Mascaret::getInt(const std::string & varName, int index1, int index2, int index3);
39 %catches(SalomeHydro::MascaretException, ...) SalomeHydro::Mascaret::getDouble(const std::string & varName, int index1, int index2, int index3);
40 %catches(SalomeHydro::MascaretException, ...) SalomeHydro::Mascaret::setInt(const std::string & varName, int index1, int index2, int index3, int value);
41 %catches(SalomeHydro::MascaretException, ...) SalomeHydro::Mascaret::setDouble(const std::string & varName, int index1, int index2, int index3, double value);
42
43 %include "Mascaret.hxx"