You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
851 B
C++

// KeyenceBL600.h: interface for the CKeyenceBL600 class.
//
//////////////////////////////////////////////////////////////////////
#pragma once
#include <string>
#include "Scanner.h"
#include "Utility.h"
#ifdef BUILD_COMMDLL
#define COMMDLL_DLLCLASS __declspec(dllexport)
#else
#define COMMDLL_DLLCLASS __declspec(dllimport)
#endif
class COMMDLL_DLLCLASS CKeyenceBL600 : public CScanner
{
public:
// ctor
CKeyenceBL600();
virtual ~CKeyenceBL600();
// methods
bool WaitForBarcode(DWORD dwTimeout, std::string& csBarcode);
void ReceiveComm(const char* cpcBuffer, int nSize) override;
bool ReadBarCode(DWORD dwTimeout, std::string& csBarcode, bool bWaitResult = TRUE);
std::string GetReceiveData();
bool Off();
bool On();
private:
std::string m_strBarcode;
HANDLE m_hSuccess;
HANDLE m_hAck;
};