00001 #ifndef _DBVALUE_H_ 00002 #define _DBVALUE_H_ 00003 00004 #include <iostream> 00005 #include <sstream> 00006 #include <vector> 00007 #include "../Exceptions/Exception.h" 00008 00009 using namespace std; 00010 using namespace ILCException; 00011 00012 class DBValue{ 00013 protected: 00014 bool isNull; 00015 00016 public: 00017 00018 virtual string getType()=0; 00019 virtual bool null(); 00020 virtual string toString()=0; 00021 virtual ~DBValue(){}; 00022 00023 virtual string getString(); 00024 virtual int getInt(); 00025 virtual vector<int> getIntVector(); 00026 00027 virtual void setString(string s); 00028 virtual void setInt(int i); 00029 virtual void setIntVector(vector<int> v); 00030 virtual void setNull(); 00031 00032 00033 }; 00034 #endif