//#ifndef _DB_ENGINE_H_ //#define _DB_ENGINE_H_ //#include "DST_Common.h" //#include "DST_CommonAPI.h" // //#if 1 // //typedef struct _CDB CDB; // //typedef void (*_CDB_Destructor)(CDB* this); //typedef int (*_CDB_Query)(CDB* this, const char* strSQL, ...); //typedef int (*_CDB_GetTable)(CDB* this, const char* strSQL, ...); //typedef int (*_CDB_GetRow)(CDB* this); //typedef int (*_CDB_GetCol)(CDB* this); //typedef char* (*_CDB_GetResult)(CDB* this, int i); // //struct _CDB //{ // int mRow; // int mCol; // char **mResult; // _CDB_Destructor Destructor; // _CDB_Query Query; // _CDB_GetTable GetTable; // _CDB_GetRow GetRow; // _CDB_GetCol GetCol; // _CDB_GetResult GetResult; //}; // //void NewCDB(CDB* p); //void DeleteCDB(CDB* p); // //#else //class CDB //{ //private: // // int mRow; // int mCol; // char **mResult; // //public: // CDB(); // ~CDB(); // int Query(const char* strSQL, ...); // int GetTable(const char* strSQL, ...); // // int GetRow(); // int GetCol(); // char* GetResult(int i); // //}; //#endif //#endif //