Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

BasicStrings.h

Go to the documentation of this file.
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:       BasicStrings.h (formerly init_strings.h)
00012 //
00013 //  Contents:   Auxiliary class, specific string handling
00014 //
00015 //
00016 //
00017 //------------------------------------------------------------------------------
00018 
00019 
00020 #ifndef _BasicStrings_h
00021 #define _BasicStrings_h
00022 
00023 #ifdef AIX
00024    #define _SLASH_ "/"
00025 #else
00026     #define _SLASH_ "\\"
00027 #endif /* AIX */
00028 
00029 
00030 #include <string.h>
00031 #include <string>
00032 using namespace std;  // std::stream  --> stream (simpler)
00033 
00034 #include "BasicEnums.h"
00035 // Contains string headers for
00036 //       file_exists(string filename),
00037 //       chk_dir(string dirName)
00038 #include "BasicStreams.h"
00039 // Contains #define
00040 #include "BasicDefines.h"
00041 
00042 
00043 //MAST_2006
00044 void set_ACTWASIMOUTDIR(string out);
00045 string ACTWASIMOUTDIR();
00046 
00047 void set_WASIMINDIR(string out);
00048 string WASIMINDIR();
00049 
00050 void set_WASIMOUTDIR(string out);
00051 string WASIMOUTDIR();
00052 
00053 void printWASIMFN();
00054 void initWASIMFN(int maxFN);
00055 
00056 // Function in init_strings
00057 void setWASIMFN(ExportType expTP, string fn);
00058 string WASIMFN(ExportType expTP);
00059 
00060 
00061 void set_GISOUTDIR(string out);
00062 string GISOUTDIR();
00063 
00064 void set_MASINPUTDIR(string out);
00065 string MASINPUTDIR();
00066 
00067 void set_MASOUTPUTDIR(string out);
00068 string MASOUTPUTDIR();
00069 
00070 
00071 //Arnold2007_01_01_a
00072 //
00073 //Handling of filenames
00074 //
00075 //All filenames are handled by functions
00076 //      - void initFILENAMES()
00077 //      - void set_FILENAMES(KEYTYPE key, string s)
00078 //      - string FILENAMES(KEYTYPE key)
00079 //Access to FILENAMES is done versus en enum-type "KEYTYPE", in "enum_def.h"
00080 //
00081 //To access a filename as a char, use a copy command, z.B.
00082 //      char d[200];
00083 //      sprintf(d, "%s", FILENAME(keyDATAINI).c_str())
00084 //
00085 //vThere should be no filenames in the code any more!
00086 //
00087 //To add a filename, simply define new KEYTYPE ("key####") and add to initFILENAMES
00088 void initFILENAMES();
00089 void set_FILENAMES(KEYTYPE key, string s);
00090 string FILENAMES(KEYTYPE key);
00091 
00092 // ALL THESE ARE INITIALIZED FOR WASIM COUPLING (InflowsKey.txt)
00093 // -->
00094 void set_ABSTRFILE_fn(string s);
00095 string ABSTRFILE_fn();
00096 
00097 // Name of directory for WASIM calibration mode
00098 void set_WASIM_CNTRL(string s);
00099 string WASIM_CNTRL();
00100 
00101 
00103 // --> Content type functions
00104 // =====================================================================
00105 
00106 
00107 
00108 
00109 // Indicates which data should be passed via TDT
00110 ExportType getExpTpFromContent(Content cont);
00111 
00112 string getEXPSTRING(ExportType expTP);
00113 
00114 // renaming from above, no new functions
00115 ExportType cont2exptp(Content cont);
00116 Content exptp2cont(ExportType expTP);
00117 Content getContFromExpTP(ExportType expTP);
00118 
00119 
00120 // Directory of KEY files (iniFiles)
00121 string KEYDIR();
00122 void set_KEYDIR(string out);
00123 
00124 // Destination for saving GIS files passed by controller
00125 string OUTGIS();
00126 void set_OUTGIS(string outg);
00127 
00128 void set_OUTDIR(string outStr);
00129 string OUTDIR();
00130 
00131 void set_LogFileNameDir(string str);
00132 
00133 void set_SIMNAME(string outStr);
00134 string SIMNAME();
00135 
00136 void set_XMLDIR(string outStr);
00137 string XMLDIR();
00138 
00139 
00140 void set_TEMPDIR(string outStr);
00141 string TEMPDIR();
00142 
00143 void set_INDIR(string outStr);
00144 string INDIR();
00145 
00146 
00147 //MAST_2006_08
00148 string ISIRR(void);
00149 bool DOIRR(void);
00150 void set_ISIRR(string out);
00151 void set_ISIRR(int out);
00152 
00153 string SECTOR_MAP_NAME();
00154 void set_SECTOR_MAP_NAME(string out);
00155 
00156 string StringToLower(string strToConvert);
00157 string StringToUpper(string strToConvert);
00158 
00159 #endif

Generated on Thu Aug 28 12:38:44 2008 for MPMAS by  doxygen 1.3.9.1