-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpygahm.i
More file actions
67 lines (59 loc) · 1.69 KB
/
Copy pathpygahm.i
File metadata and controls
67 lines (59 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
%module pygahm
%insert("python")
%{
import signal
signal.signal(signal.SIGINT, signal.SIG_DFL)
%}
%{
#define SWIG_FILE_WITH_INIT
#include "datatypes/Datetime.hpp"
#include "datatypes/Grid.hpp"
#include "datatypes/Point.hpp"
#include "datatypes/PointCloud.hpp"
#include "datatypes/QuadCode.hpp"
#include "datatypes/QuadUnitVec.hpp"
#include "datatypes/Vec.hpp"
#include "atcf/AtcfIO.hpp"
#include "atcf/AtcfPeriod.hpp"
#include "atcf/AtcfTrack.hpp"
#include "output/RadialProfile.hpp"
#include "output/PointOutput.hpp"
#include "storm/Isotach.hpp"
#include "storm/Quadrant.hpp"
#include "storm/StormTranslation.hpp"
%}
%include <std_string.i>
%include <exception.i>
%include <std_vector.i>
%include <windows.i>
%exception {
try {
$action
} catch (const std::exception& e) {
SWIG_exception(SWIG_RuntimeError, e.what());
} catch (const std::string& e) {
SWIG_exception(SWIG_RuntimeError, e.c_str());
}
}
namespace std {
%template(PeriodVector) vector<Gahm::Atcf::AtcfPeriod>;
%template(DoubleVector) vector<double>;
%template(DoubleDoubleVector) vector<vector<double>>;
%template(PointVector) vector<Gahm::Types::Point>;
%template(SolutionPointVector) vector<Gahm::Output::PointOutput::SolutionPoint>;
}
%include "datatypes/Datetime.hpp"
%include "datatypes/Grid.hpp"
%include "datatypes/Point.hpp"
%include "datatypes/PointCloud.hpp"
%include "datatypes/QuadCode.hpp"
%include "datatypes/QuadUnitVec.hpp"
%include "datatypes/Vec.hpp"
%include "atcf/AtcfIO.hpp"
%include "atcf/AtcfPeriod.hpp"
%include "atcf/AtcfTrack.hpp"
%include "output/RadialProfile.hpp"
%include "output/PointOutput.hpp"
%include "storm/Isotach.hpp"
%include "storm/Quadrant.hpp"
%include "storm/StormTranslation.hpp"