1
2 ///////////////////////////////////////////////////////////
3 // //
4 // SAGA //
5 // //
6 // System for Automated Geoscientific Analyses //
7 // //
8 // Tool Library //
9 // RivFlow //
10 // //
11 //-------------------------------------------------------//
12 // //
13 // TLB_Interface.cpp //
14 // //
15 // Copyright (C) 2014 by //
16 // Christian Alwardt //
17 // //
18 //-------------------------------------------------------//
19 // //
20 // This file is part of 'SAGA - System for Automated //
21 // Geoscientific Analyses'. SAGA is free software; you //
22 // can redistribute it and/or modify it under the terms //
23 // of the GNU General Public License as published by the //
24 // Free Software Foundation, either version 2 of the //
25 // License, or (at your option) any later version. //
26 // //
27 // SAGA is distributed in the hope that it will be //
28 // useful, but WITHOUT ANY WARRANTY; without even the //
29 // implied warranty of MERCHANTABILITY or FITNESS FOR A //
30 // PARTICULAR PURPOSE. See the GNU General Public //
31 // License for more details. //
32 // //
33 // You should have received a copy of the GNU General //
34 // Public License along with this program; if not, //
35 // write to the Free Software Foundation, Inc., //
36 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, //
37 // USA. //
38 // //
39 //-------------------------------------------------------//
40 // //
41 // e-mail: alwardt@ifsh.de //
42 // //
43 // contact: Christian Alwardt //
44 // Institute for Peace Research //
45 // and Security Policy (IFSH) //
46 // University of Hamburg //
47 // Germany //
48 // //
49 ///////////////////////////////////////////////////////////
50
51 ///////////////////////////////////////////////////////////
52 // //
53 // The Tool Link Library Interface //
54 // //
55 ///////////////////////////////////////////////////////////
56
57
58
59 //---------------------------------------------------------
60 //#########################################################
61
62 ///////////////////////////////////////////////////////////
63 // //
64 // RivTool 0.1 //
65 // //
66 ///////////////////////////////////////////////////////////
67
68 //---------------------------------------------------------
69 // 1. Include the appropriate SAGA-API header...
70
71 #include <saga_api/saga_api.h>
72
73
74 //---------------------------------------------------------
75 // 2. Place general tool library informations here...
76
Get_Info(int i)77 CSG_String Get_Info(int i)
78 {
79 switch( i )
80 {
81 default:
82 case TLB_INFO_Name: return( _TL("RivFlow") );
83 case TLB_INFO_Category: return( _TL("Simulation") );
84 case TLB_INFO_Author: return( "Christian Alwardt" );
85 case TLB_INFO_Description: return( _TL("RivFlow.") );
86 case TLB_INFO_Version: return( "3.1" );
87 case TLB_INFO_Menu_Path: return( _TL("Simulation|Hydrology|RivFlow") );
88 }
89 }
90
91
92 //---------------------------------------------------------
93 // 3. Include the headers of your tools here...
94
95 #include "RivBasin.h"
96 #include "LandFlow.h"
97 #include "RivCourseImpr.h"
98 #include "RivGridPrep.h"
99 #include "GridComb.h"
100
101 //---------------------------------------------------------
102 // 4. Allow your tools to be created here...
103
Create_Tool(int i)104 CSG_Tool * Create_Tool(int i)
105 {
106 // Don't forget to continuously enumerate the case switches
107 // when adding new tools! Also bear in mind that the
108 // enumeration always has to start with [case 0:] and
109 // that [default:] must return NULL!...
110
111 switch( i )
112 {
113 case 0: return( new CRivBasin );
114 case 1: return( new CLandFlow );
115 case 2: return( new CRivCourseImpr );
116 case 3: return( new CRivGridPrep );
117 case 4: return( new CGridComb );
118 }
119
120 return( NULL );
121 }
122
123
124 ///////////////////////////////////////////////////////////
125 // //
126 // //
127 // //
128 ///////////////////////////////////////////////////////////
129
130 //---------------------------------------------------------
131 //{{AFX_SAGA
132
133 TLB_INTERFACE
134
135 //}}AFX_SAGA
136