00001 00006 #ifndef _VALUE_H 00007 #define _VALUE_H 00008 00009 #include <string> 00010 00014 class Value { 00015 00016 public: 00017 00021 void *memoryPointer; 00022 00026 unsigned size; 00027 00031 unsigned flag; 00032 00036 unsigned long long cas_id; 00037 00041 Value(void *memoryPointer = NULL, unsigned size = 0, unsigned flag = 0, unsigned long long cas_id = 0); 00042 00046 Value(const std::string &s); 00047 00051 virtual ~Value(); 00052 00058 bool isNull(); 00059 00063 std::string toString(); 00064 00065 }; 00066 00067 #endif /* _VALUE_H */ 00068