00001 //------------------------------------------------------------------------------ 00002 // 00003 // Thomas Berger (main author), Pepijn Schreinemachers, and Thorsten Arnold 00004 // 00005 // 00006 // Hohenheim University (490d) 00007 // Professorship for Land Use Economics in the Tropics and Subtropics 00008 // 00009 // May not be distributed without permission by main author 00010 // 00011 // File: MainAuxiliaryFunctions.h (formerly main_fkt.h) 00012 // 00013 // Contents: Auxiliary class, contains some outsourced functions of main() 00014 // 00015 // 00016 // 00017 //------------------------------------------------------------------------------ 00018 00019 #ifndef _MainAuxiliaryFunctions_h 00020 #define _MainAuxiliaryFunctions_h 00021 00022 #include "BasicEnums.h" 00023 #include <string> 00024 using namespace std; // std::stream --> stream (simpler) 00025 00026 void set_WRITE_MTX(bool b_); 00027 bool WRITE_MTX(); 00028 00029 00030 // Some initialization functions 00031 void printToScreen_InputOptions(); 00032 void MAS_inputArgumentHandling(int ac, char **av); 00033 00034 void output_InitializePeriod(int numYears); 00035 void MainMas_WriteLogFile_Start(); 00036 void MasMain_InitializeHydrologicalModel(); 00037 00038 // ... calls global time handler 00039 int GETPERIODE(); 00040 00041 int getNumberOfNoneZeroRows(); 00042 int getNumberOfNoneZeroCols(); 00043 00044 // ------------------------------------------------------------ 00045 // Functions MEMORY / DEALLOCATION 00046 // --> 00047 // ------------------------------------------------------------ 00048 00049 void fehlerabbruch(); //writes error message and exits program 00050 extern char fehlertxt[]; 00051 void FREE_MEMO(); //free memory 00052 //some warning/error handling 00053 void writeWarningMsgFile();//writes warning message into file (WIN32) 00054 00055 00056 //void destructGisKey(); 00057 00058 00059 // EDIC variables 00060 //void updateSwitches(); 00061 00062 00063 00064 // Description of spatial info / content type 00065 void readSpatialExportInfo(); 00066 bool spatialExportIsMonthly(Content cont); 00067 void spatialExportPrintToScreen(); 00068 void spatialExportPrintToScreen(Content cont); 00069 bool spatialExportIsMonthly(Content cont); 00070 00071 00072 00073 #endif