00001 /* $Id: CommonEnviromentParseElement.h,v 1.3 2001/04/03 08:56:59 pfb Exp $ */ 00002 00003 #ifndef _CommonEnviromentParseElement_h 00004 #define _CommonEnviromentParseElement_h 00005 00006 #include <string> 00007 00011 class CommonEnviromentParseElement 00012 { 00013 /*--------------------------------------------------------------------------*/ 00014 public: 00015 00016 enum Rvalue_type 00017 { 00018 NUMERIC, 00019 ALPHA 00020 }; 00021 00027 CommonEnviromentParseElement(string key, double rvalue); 00028 00034 CommonEnviromentParseElement(string key, string rvalue); 00035 00040 CommonEnviromentParseElement(const CommonEnviromentParseElement& rhs); 00041 00045 virtual ~CommonEnviromentParseElement(); 00046 00052 CommonEnviromentParseElement& 00053 operator=(const CommonEnviromentParseElement& rhs); 00054 00060 bool operator==(const CommonEnviromentParseElement& e) const; 00061 00067 bool operator!=(const CommonEnviromentParseElement& e) const; 00068 00073 Rvalue_type type() const; 00074 00079 string lvalue() const; 00080 00085 double numeric() const; 00086 00091 string alpha() const; 00092 00093 /*--------------------------------------------------------------------------*/ 00094 private: 00095 00096 Rvalue_type _type; 00097 string _lvalue; 00098 string _alpha; 00099 double _numeric; 00100 }; 00101 00102 #endif // _CommonEnviromentParseElement_h 00103