00001 /* $Id: CommonEnviromentParserList.h,v 1.2 2001/04/04 08:11:18 pfb Exp $ */ 00002 00003 #ifndef _CommonEnviromentParserList_h 00004 #define _CommonEnviromentParserList_h 00005 00006 #include "CommonEnviromentParseElement.h" 00007 #include <slist> 00008 00013 class CommonEnviromentParserList 00014 { 00015 //---------------------------------------------------------------------------- 00016 public: 00017 00018 typedef slist<CommonEnviromentParseElement> Element; 00019 00023 CommonEnviromentParserList(); 00024 00028 CommonEnviromentParserList(const CommonEnviromentParserList& rhs); 00029 00033 virtual ~CommonEnviromentParserList(); 00034 00039 CommonEnviromentParserList& operator=(const CommonEnviromentParserList& rhs); 00040 00048 bool operator==(const CommonEnviromentParserList& rhs) const; 00049 00055 bool operator!=(const CommonEnviromentParserList& rhs) const; 00056 00061 bool empty() const; 00062 00067 int size() const; 00068 00076 void push(string key, double argument); 00077 00085 void push(string key, string argument); 00086 00092 bool find(string key) const; 00093 00100 CommonEnviromentParseElement argument(string key) const; 00101 00107 Element::const_iterator iterator() const; 00108 00113 Element::const_iterator begin() const; 00114 00120 Element::const_iterator end() const; 00121 00122 //---------------------------------------------------------------------------- 00123 private: 00124 00125 Element _list; 00126 }; 00127 00128 #endif // _CommonEnviromentParserList_h 00129 00130 /* 00131 * $Log: CommonEnviromentParserList.h,v $ 00132 * Revision 1.2 2001/04/04 08:11:18 pfb 00133 * Added copy ctor and operators etc. 00134 * 00135 * Revision 1.1 2001/04/03 09:53:25 pfb 00136 * Initial rev. 00137 * 00138 */