include/CParameters.h

Go to the documentation of this file.
00001 
00020 #ifndef __CPARAMETERS_H__
00021 #define __CPARAMETERS_H__
00022 
00023 /* Headers */
00024 #include <string>
00025 #include <map>
00026 
00027 using namespace::std;
00028 using std::string;
00029 
00030 
00031 typedef union {
00032 
00033     int i;
00034     char* szString;
00035 }ParamType;
00036 typedef enum {
00037     
00038     PARENT = 0,
00039     CHILD,
00040     SIBLING
00041         
00042 }RelationshipType;
00043     
00049 class CParameters {
00050 
00051   public:
00052 
00056     CParameters();
00060     CParameters(CParameters &);
00064     ~CParameters();
00065 
00072     bool setParamName(string szParamName);
00073 
00079     string getParamName();
00080 
00087     bool setParamValue(ParamType valueType);
00088 
00094         ParamType getParamValue();
00095 
00102     int getDataType(string szPropParam);
00103     
00111     const CParameters & operator=(const CParameters & right);
00112         
00113 
00114 
00115   private:
00116 
00117     string szParamName; 
00119     ParamType valueType; 
00122 };
00123 
00124 #endif

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