source: svn/zasc/app_c/DST_DB_Engine.h @ 22

Last change on this file since 22 was 22, checked in by phkim, 11 years ago
  1. phkim
  2. newcon3sk 를 kctv 로 브랜치 함
File size: 1.1 KB
Line 
1//#ifndef _DB_ENGINE_H_
2//#define _DB_ENGINE_H_
3//#include "DST_Common.h"
4//#include "DST_CommonAPI.h"
5//
6//#if 1
7//
8//typedef struct _CDB CDB;
9//
10//typedef void (*_CDB_Destructor)(CDB* this);
11//typedef int (*_CDB_Query)(CDB* this, const char* strSQL, ...);
12//typedef int (*_CDB_GetTable)(CDB* this, const char* strSQL, ...);
13//typedef int (*_CDB_GetRow)(CDB* this);
14//typedef int (*_CDB_GetCol)(CDB* this);
15//typedef char* (*_CDB_GetResult)(CDB* this, int i);
16//
17//struct _CDB
18//{
19//      int mRow;
20//      int mCol;
21//      char **mResult;
22//      _CDB_Destructor Destructor;
23//      _CDB_Query Query;
24//      _CDB_GetTable GetTable;
25//      _CDB_GetRow GetRow;
26//      _CDB_GetCol GetCol;
27//      _CDB_GetResult GetResult;
28//};
29//
30//void NewCDB(CDB* p);
31//void DeleteCDB(CDB* p);
32//
33//#else
34//class CDB
35//{
36//private:
37//     
38//      int mRow;
39//      int mCol;
40//      char **mResult;
41//
42//public:
43//      CDB();
44//      ~CDB();
45//      int Query(const char* strSQL, ...);
46//      int GetTable(const char* strSQL, ...);
47//     
48//      int GetRow();
49//      int GetCol();
50//      char* GetResult(int i);
51//     
52//};
53//#endif
54//#endif
55//
Note: See TracBrowser for help on using the repository browser.