include/CProperties.h

Go to the documentation of this file.
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 union {
00031     int i;
00032     char* 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);
00105         
00106 
00107   private:
00108 
00109     string szPropName; 
00111     PropType valueType; 
00112 };
00113 
00114 #endif

Generated on Tue Feb 24 16:21:31 2009 for calendar-backend by  doxygen 1.5.1