00001
00002
00003 #ifndef _CommonEnviromentParser_h
00004 #define _CommonEnviromentParser_h
00005
00010 #include "../Parser/FileParser.h"
00011
00012
00013
00017 class CommonEnviromentParser : public FileParser
00018 {
00019
00020
00021 public:
00022
00027 CommonEnviromentParser(const std::string& file);
00028
00032 ~CommonEnviromentParser();
00033
00038 bool Parse();
00039
00044 const std::string& DatasetBase() const;
00045
00050 int DefaultThreeDXSize() const;
00051
00056 int DefaultThreeDYSize() const;
00057
00062 const std::string& InstrumentType() const;
00063
00068 int DefaultPingsPerSwath() const;
00069
00074 int DefaultSwathsToFilter() const;
00075
00076
00077 protected:
00078
00084 bool Find(const std::string& lvalue);
00085
00093 int Type(const std::string& lvalue);
00094
00101 double Nargument(const std::string& lvalue);
00102
00109 std::string Aargument(const std::string& lvalue);
00110
00111
00112 private:
00113
00117 CommonEnviromentParser(const CommonEnviromentParser& );
00118 CommonEnviromentParser& operator=(const CommonEnviromentParser& );
00119
00123 std::string datasetBase;
00124
00128 int defaultThreeDXSize;
00129
00133 int defaultThreeDYSize;
00134
00138 std::string instrumentType;
00139
00143 int pingsPerSwath;
00144
00148 int swathsToFilter;
00149 };
00150
00151 extern "C"
00152 {
00158 void pusha(const char *lvalue, const char *rvalue);
00159
00164 void pushn(const char *lvalue, double);
00165 }
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00200 #endif