1 /**********************************************************
2 * Version $Id$
3 *********************************************************/
4
5 ///////////////////////////////////////////////////////////
6 // //
7 // SAGA //
8 // //
9 // System for Automated Geoscientific Analyses //
10 // //
11 // Tool Library //
12 // image_io //
13 // //
14 //-------------------------------------------------------//
15 // //
16 // TLB_Interface.cpp //
17 // //
18 // Copyright (C) 2005 by //
19 // Olaf Conrad //
20 // //
21 //-------------------------------------------------------//
22 // //
23 // This file is part of 'SAGA - System for Automated //
24 // Geoscientific Analyses'. SAGA is free software; you //
25 // can redistribute it and/or modify it under the terms //
26 // of the GNU General Public License as published by the //
27 // Free Software Foundation, either version 2 of the //
28 // License, or (at your option) any later version. //
29 // //
30 // SAGA is distributed in the hope that it will be //
31 // useful, but WITHOUT ANY WARRANTY; without even the //
32 // implied warranty of MERCHANTABILITY or FITNESS FOR A //
33 // PARTICULAR PURPOSE. See the GNU General Public //
34 // License for more details. //
35 // //
36 // You should have received a copy of the GNU General //
37 // Public License along with this program; if not, see //
38 // <http://www.gnu.org/licenses/>. //
39 // //
40 //-------------------------------------------------------//
41 // //
42 // e-mail: oconrad@saga-gis.org //
43 // //
44 // contact: SAGA User Group Association //
45 // Institute of Geography //
46 // University of Goettingen //
47 // Goldschmidtstr. 5 //
48 // 37077 Goettingen //
49 // Germany //
50 // //
51 ///////////////////////////////////////////////////////////
52
53 //---------------------------------------------------------
54
55
56 ///////////////////////////////////////////////////////////
57 // //
58 // The Tool Link Library Interface //
59 // //
60 ///////////////////////////////////////////////////////////
61
62 //---------------------------------------------------------
63 // 1. Include the appropriate SAGA-API header...
64
65 #include "MLB_Interface.h"
66
67
68 //---------------------------------------------------------
69 // 2. Place general tool library informations here...
70
Get_Info(int i)71 CSG_String Get_Info(int i)
72 {
73 switch( i )
74 {
75 case TLB_INFO_Name: default:
76 return( _TL("Images") );
77
78 case TLB_INFO_Category:
79 return( _TL("Import/Export") );
80
81 case TLB_INFO_Author:
82 return( SG_T("O. Conrad (c) 2005") );
83
84 case TLB_INFO_Description:
85 return( _TL("Image Import/Export.") );
86
87 case TLB_INFO_Version:
88 return( SG_T("1.0") );
89
90 case TLB_INFO_Menu_Path:
91 return( _TL("File|Grid") );
92 }
93 }
94
95
96 //---------------------------------------------------------
97 // 3. Include the headers of your tools here...
98
99 #include "grid_export.h"
100 #include "grid_import.h"
101 #include "grid_to_kml.h"
102
103
104 //---------------------------------------------------------
105 // 4. Allow your tools to be created here...
106
Create_Tool(int i)107 CSG_Tool * Create_Tool(int i)
108 {
109 switch( i )
110 {
111 case 0: return( new CGrid_Export );
112 case 1: return( new CGrid_Import );
113 case 2: return( new CGrid_to_KML );
114 case 3: return( new CGrid_from_KML );
115
116 default: return( NULL );
117 }
118 }
119
120
121 ///////////////////////////////////////////////////////////
122 // //
123 // //
124 // //
125 ///////////////////////////////////////////////////////////
126
127 //---------------------------------------------------------
128 //{{AFX_SAGA
129
130 TLB_INTERFACE
131
132 //}}AFX_SAGA
133