MachineMgrBase.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #include "stdafx.h"
  2. #include "MachineMgrBase.h"
  3. #ifdef _DEBUG
  4. #define new DEBUG_NEW
  5. #endif
  6. CMachineMgrBase* g_pCMachineMgrBase = NULL;
  7. CMachineMgrBase::CMachineMgrBase()
  8. {
  9. m_bOpenDevice = 0;
  10. m_pOcxCtrl = NULL;
  11. m_lpCfg = NULL;
  12. }
  13. CMachineMgrBase::CMachineMgrBase(CWnd* pOcx)
  14. {
  15. m_bOpenDevice = 0;
  16. m_pOcxCtrl = pOcx;
  17. m_lpCfg = NULL;
  18. }
  19. CMachineMgrBase::~CMachineMgrBase()
  20. {
  21. if(m_pOcxCtrl)
  22. m_pOcxCtrl = NULL;
  23. if(m_lpCfg)
  24. m_lpCfg = NULL;
  25. }
  26. int CMachineMgrBase::InitMgrCfg(LPDEVICECFG lpCfg)
  27. {
  28. if(lpCfg == NULL)
  29. return 0;
  30. if(m_lpCfg != NULL)
  31. return 1;
  32. m_lpCfg = lpCfg;
  33. return 1;
  34. }
  35. int CMachineMgrBase::OpenDevice()
  36. {
  37. return 1;
  38. }
  39. int CMachineMgrBase::CloseDevice()
  40. {
  41. return 1;
  42. }
  43. //读取记录
  44. int CMachineMgrBase::ReadGeneralLogData(std::vector<STGeneralLogData>* pVData)
  45. {
  46. return 0;
  47. }
  48. int CMachineMgrBase::ReadAllGlLogData(std::vector<STGeneralLogData>* pVData)
  49. {
  50. return 0;
  51. }
  52. int CMachineMgrBase::USBReadSuperLogData(LPWSTR LPSZFileName)
  53. {
  54. return 0;
  55. }
  56. void CMachineMgrBase::SetReadMark(BOOL propVal)
  57. {
  58. }
  59. //设置指纹机可用/不可用
  60. BOOL CMachineMgrBase::SetMachineEnable(BOOL bEnable/*=TRUE*/)
  61. {
  62. return TRUE;
  63. }
  64. //
  65. BOOL CMachineMgrBase::SolveError(CONST LONG& nErroCode)
  66. {
  67. return TRUE;
  68. }
  69. BOOL CMachineMgrBase::DelLogData()
  70. {
  71. return FALSE;
  72. }
  73. //清除所有管理员
  74. int CMachineMgrBase::BenumbAllManager()
  75. {
  76. return 0;
  77. }