C++/Common/Enviroment/CommonEnviromentParserList.h

Go to the documentation of this file.
00001 /* $Id: CommonEnviromentParserList.h,v 1.4 2005/06/10 07:49:02 pfb Exp $ */
00002 
00003 #ifndef _CommonEnviromentParserList_h
00004 #define _CommonEnviromentParserList_h
00005 
00010 #include "CommonEnviromentParseElement.h"
00011 #include <list>
00012 
00017 class CommonEnviromentParserList
00018   {
00019   //----------------------------------------------------------------------------
00020                              public:
00021 
00022   typedef std::list<CommonEnviromentParseElement> Element;
00023 
00027   CommonEnviromentParserList();
00028 
00032   CommonEnviromentParserList(const CommonEnviromentParserList& rhs); 
00033   
00037   virtual ~CommonEnviromentParserList();
00038 
00043   CommonEnviromentParserList& operator=(const CommonEnviromentParserList& rhs);
00044 
00052   bool operator==(const CommonEnviromentParserList& rhs) const;
00053 
00059   bool operator!=(const CommonEnviromentParserList& rhs) const;
00060 
00065   bool Empty() const;
00066 
00071   int Size() const;
00072 
00080   void Push(std::string key, double argument);
00081 
00089   void Push(std::string key, std::string argument);
00090 
00096   bool Find(std::string key) const;
00097 
00104   CommonEnviromentParseElement Argument(std::string key) const;
00105 
00111   Element::const_iterator Iterator() const;
00112 
00117   Element::const_iterator Begin() const;
00118 
00124   Element::const_iterator End() const; 
00125 
00126   //----------------------------------------------------------------------------
00127                              private:
00128 
00129   Element  list;
00130   };
00131 
00135 #endif // _CommonEnviromentParserList_h
00136 
00137 /*
00138  * $Log: CommonEnviromentParserList.h,v $
00139  * Revision 1.4  2005/06/10 07:49:02  pfb
00140  * Changes made as a result of dev. machine update from woody to sarge.
00141  * Most of the changes are because of the upgrade from gcc-2.95 to gcc-3.3.
00142  *
00143  * Revision 1.3  2005/05/11 10:38:30  pfb
00144  * Initial rev.
00145  *
00146  * Revision 1.2  2004/07/13 10:20:46  pfb
00147  * Fixed expansion keywords.
00148  *
00149  * Revision 1.1  2004/07/13 10:06:37  pfb
00150  * Initial rev.
00151  *
00152  *
00153  */