00001 00020 #ifndef __CPROPERTIES_H__ 00021 #define __CPROPERTIES_H__ 00022 00023 /* Headers */ 00024 #include <string> 00025 #include <map> 00026 00027 using namespace::std; 00028 using std::string; 00029 00030 typedef struct { 00031 int i; 00032 string szString; 00033 }PropType; 00034 00040 class CProperties { 00041 00042 public: 00043 00047 CProperties(); 00048 00056 const CProperties & operator=(const CProperties & right); 00057 00061 CProperties(CProperties &); 00062 00066 ~CProperties(); 00067 00074 bool setPropName(string szPropName); 00075 00081 string getPropName(); 00082 00089 bool setPropValue(PropType valueType); 00090 00096 PropType getPropValue(); 00097 00104 int getDataType(string szProp); 00108 string toString(); 00109 00110 00111 00112 private: 00113 00114 string szPropName; 00115 PropType valueType; 00116 }; 00117 00118 #endif