1 2 /////////////////////////////////////////////////////////// 3 // // 4 // SAGA // 5 // // 6 // System for Automated Geoscientific Analyses // 7 // // 8 // Tool Library // 9 // dev_tools // 10 // // 11 //-------------------------------------------------------// 12 // // 13 // arctoolbox.h // 14 // // 15 // Copyright (C) 2015 by // 16 // Olaf Conrad // 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, see // 35 // <http://www.gnu.org/licenses/>. // 36 // // 37 //-------------------------------------------------------// 38 // // 39 // e-mail: oconrad@saga-gis.org // 40 // // 41 // contact: Olaf Conrad // 42 // Institute of Geography // 43 // University of Hamburg // 44 // Germany // 45 // // 46 /////////////////////////////////////////////////////////// 47 48 //--------------------------------------------------------- 49 #ifndef HEADER_INCLUDED__arctoolbox_H 50 #define HEADER_INCLUDED__arctoolbox_H 51 52 53 /////////////////////////////////////////////////////////// 54 // // 55 // // 56 // // 57 /////////////////////////////////////////////////////////// 58 59 //--------------------------------------------------------- 60 #include <saga_api/saga_api.h> 61 62 63 /////////////////////////////////////////////////////////// 64 // // 65 // // 66 // // 67 /////////////////////////////////////////////////////////// 68 69 //--------------------------------------------------------- 70 class CArcToolBox : public CSG_Tool 71 { 72 public: ////// public members and functions: ////////////// 73 74 CArcToolBox(void); 75 76 77 protected: /// protected members and functions: /////////// 78 79 virtual bool On_Execute (void); 80 81 82 private: ///// private members and functions: ///////////// 83 84 int m_ArcVersion; 85 86 87 CSG_String Get_Formatted (CSG_String String, int Type); 88 CSG_String Get_Description (CSG_Tool *pTool, int Type); 89 CSG_String Get_ID (CSG_Parameter *pParameter, const CSG_String &Modifier); 90 CSG_Parameter * Get_GridTarget (CSG_Parameters *pParameters); 91 92 bool Get_Parameter (CSG_Parameter *pParameter, CSG_Strings &Info, CSG_Strings &Init, CSG_MetaData &Descs, const CSG_String &Name, const CSG_String &Identifier); 93 bool Get_Parameter (CSG_Parameter *pParameter, CSG_Strings &Info, CSG_Strings &Init, CSG_MetaData &Descs, CSG_Parameter *pGridTarget); 94 bool Get_Tool (CSG_Tool_Library *pLibrary, int iTool, CSG_String &Code, CSG_MetaData &Description); 95 96 bool Save (CSG_Tool_Library *pLibrary, const CSG_String &Directory, const CSG_Strings &Names, const CSG_Strings &Codes, const CSG_Strings &Descs); 97 98 }; 99 100 101 /////////////////////////////////////////////////////////// 102 // // 103 // // 104 // // 105 /////////////////////////////////////////////////////////// 106 107 //--------------------------------------------------------- 108 #endif // #ifndef HEADER_INCLUDED__arctoolbox_H 109