svc_db.cpp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #include <precomp.h>
  2. #include "svc_db.h"
  3. #define CBCLASS svc_dbI
  4. START_DISPATCH;
  5. CB(OPENTABLE, openTable);
  6. VCB(CLOSETABLE, closeTable);
  7. CB(TESTQUERYFORMAT, testQueryFormat);
  8. END_DISPATCH;
  9. #undef CBCLASS
  10. #define CBCLASS dbSvcTableI
  11. START_DISPATCH;
  12. CB(GETSCANNER, getScanner);
  13. CB(NEWSCANNER, newScanner);
  14. VCB(DELETESCANNER, deleteScanner);
  15. VCB(CBNEW, _new);
  16. VCB(CBINSERT, insert);
  17. VCB(CBCANCEL, cancel);
  18. VCB(CBEDIT, edit);
  19. VCB(CBPOST, post);
  20. VCB(CBDELETE, _delete);
  21. CB(EDITING, editing);
  22. VCB(SETFIELDBYNAME, setFieldByName);
  23. VCB(SETFIELDBYID, setFieldById);
  24. VCB(DELETEFIELDBYNAME, deleteFieldByName);
  25. VCB(DELETEFIELDBYID, deleteFieldById);
  26. VCB(ADDCOLUMN, addColumn);
  27. VCB(ADDINDEXBYNAME, addIndexByName);
  28. VCB(ADDINDEXBYID, addIndexById);
  29. VCB(DROPINDEXBYNAME, dropIndexByName);
  30. VCB(DROPINDEXBYID, dropIndexById);
  31. VCB(SYNC, sync);
  32. END_DISPATCH;
  33. #undef CBCLASS
  34. #define CBCLASS dbSvcScannerI
  35. START_DISPATCH;
  36. VCB(CBFIRST, first);
  37. VCB(CBLAST, last);
  38. VCB(CBNEXT, block_next);
  39. VCB(CBPREVIOUS, block_previous);
  40. CB(CBNEXT2, next);
  41. CB(CBPREVIOUS2, previous);
  42. VCB(CBPUSH, push);
  43. VCB(CBPOP, pop);
  44. CB(CBEOF, eof);
  45. CB(CBBOF, bof);
  46. CB(GETNUMROWS, getNumRows);
  47. VCB(MOVETOROW, moveToRow);
  48. CB(GETCURROW, getCurRow);
  49. CB(LOCATEBYNAME, locateByName);
  50. CB(LOCATEBYID, locateById);
  51. CB(GETNUMCOLS, getNumCols);
  52. CB(ENUMCOL, enumCol);
  53. CB(GETCOLBYNAME, getColByName);
  54. CB(GETCOLBYID, getColByName);
  55. CB(GETFIELDBYNAME, getFieldByName);
  56. CB(GETFIELDBYID, getFieldById);
  57. VCB(SETINDEXBYNAME, setIndexByName);
  58. VCB(SETINDEXBYID, setIndexById);
  59. CB(UNIQUEBYNAME, newUniqueScannerByName);
  60. CB(UNIQUEBYID, newUniqueScannerById);
  61. VCB(DELETEUNIQUE, deleteUniqueScanner);
  62. CB(QUERY, query);
  63. VCB(CANCELQUERY, cancelQuery);
  64. CB(INDEXCHANGED, hasIndexChanged);
  65. VCB(CLEARDIRTYBIT, clearDirtyBit);
  66. VCB(JOINSCANNER, joinScanner);
  67. VCB(UNJOINSCANNER, unjoinScanner);
  68. CB(GETLASTQUERY, getLastQuery);
  69. VCB(SETBLOCKING, setBlocking);
  70. END_DISPATCH;
  71. #undef CBCLASS