C++/Common/Enviroment/CommonEnviromentParser.h

Go to the documentation of this file.
00001 /* $Id: CommonEnviromentParser.h,v 1.8 2005/06/10 07:49:02 pfb Exp $ */
00002 
00003 #ifndef _CommonEnviromentParser_h
00004 #define _CommonEnviromentParser_h
00005 
00010 #include "../Parser/FileParser.h"
00011 
00012 // class CommonEnviromentParserList;
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  * $Log: CommonEnviromentParser.h,v $
00169  * Revision 1.8  2005/06/10 07:49:02  pfb
00170  * Changes made as a result of dev. machine update from woody to sarge.
00171  * Most of the changes are because of the upgrade from gcc-2.95 to gcc-3.3.
00172  *
00173  * Revision 1.7  2005/05/11 10:38:30  pfb
00174  * Initial rev.
00175  *
00176  * Revision 1.6  2004/12/27 14:17:32  pfb
00177  * Added DefaultPingsPerSwath() and DefaultSwathsToFilter().
00178  *
00179  * Revision 1.5  2004/11/09 03:42:50  pfb
00180  * Documentation change.
00181  *
00182  * Revision 1.4  2004/07/21 08:02:21  pfb
00183  * Fixed obvius problem with Parse() and temporary return in Aargument().
00184  *
00185  * Revision 1.3  2004/07/20 04:54:57  pfb
00186  * Added InstrumentType().
00187  *
00188  * Revision 1.2  2004/07/18 14:29:28  pfb
00189  * Sorted out lvlist.
00190  *
00191  * Revision 1.1  2004/07/13 10:06:37  pfb
00192  * Initial rev.
00193  *
00194  *
00195  */
00196 
00200 #endif