123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- /*
- * Create by LocalUser on 2020/9/22
- */
- #include "FingerPrint_Impl.h"
- #include<cstring>
- #include <cstdio>
- FingerPrintImpl::FingerPrintImpl()
- {
- }
- FingerPrintImpl::~FingerPrintImpl()
- {
- }
- ErrorCodeEnum FingerPrintImpl::GetDevCategory(DevCategoryInfo& devCategory)
- {
- ErrorCodeEnum err = Error_Succeed;
- /*std::strcpy(devCategory.szModel, "szModel");
- std::strcpy(devCategory.szType, "szCategory");
- std::strcpy(devCategory.szVendor, "szVendor");*/
- return err;
- }
- ErrorCodeEnum FingerPrintImpl::Reset()
- {
- ErrorCodeEnum err = Error_Unexpect;
- m_mode = 0;
- return err;
- }
- ErrorCodeEnum FingerPrintImpl::DevOpen(DWORD dwPort, DWORD dwBaudRate)
- {
- ErrorCodeEnum err = Error_Succeed;
-
- return err;
- }
- ErrorCodeEnum FingerPrintImpl::Image2Feature(const char* imageName, LPBYTE lpbFeature, int& iLength)
- {
- return Error_NotImpl;
- }
- ErrorCodeEnum FingerPrintImpl::Image2Template(const char* imagePath1, const char* imagePath2, const char* imagePath3, LPBYTE lpbTemplate, int& iLength)
- {
- return Error_NotImpl;
- }
- ErrorCodeEnum FingerPrintImpl::Match(LPBYTE lpbTemplate[], int iTemplateLen[], int templateNum, LPBYTE lbpFeature, int& iFeatureLen, int level /* = 3 */)
- {
- return Error_NotImpl;
- }
- ErrorCodeEnum FingerPrintImpl::Cancel()
- {
- return Error_Succeed;
- }
- ErrorCodeEnum FingerPrintImpl::DevClose()
- {
- ErrorCodeEnum err = Error_Succeed;
- return err;
- }
- ErrorCodeEnum FingerPrintImpl::GetLastErr(DevErrorInfo& devErrInfo)
- {
- return Error_Succeed;
- }
- DEVICEBASE_API ErrorCodeEnum CreateDevComponent(DeviceBaseClass*& baseObj)
- {
- baseObj = new FingerPrintImpl();
- if (baseObj == NULL) {
- return Error_Resource;
- }
- else {
- return Error_Succeed;
- }
- }
- DEVICEBASE_API ErrorCodeEnum ReleaseDevComponent(DeviceBaseClass*& pBaseObj)
- {
- if (pBaseObj == NULL) {
- return Error_Param;
- }
- if (FingerPrintImpl * pTmp = dynamic_cast<FingerPrintImpl*>(pBaseObj))
- {
- delete pTmp;
- pTmp = NULL;
- return Error_Succeed;
- }
- return Error_Param;
- }
- #ifdef NEWER_COMPILER_WORKAROUNDS
- DEVICEBASE_API ErrorCodeEnum GetDevAdapterVersion(DevSoftVersion& retVesion)
- {
- retVesion.wMajor = retVesion.wMinor = retVesion.wBuild = retVesion.wRevision = 0;
- return Error_Succeed;
- }
- #endif // NEWER_COMPILER_WORKAROUNDS
|