twain3.0/huagao/twglue.hpp

18 lines
498 B
C++
Raw Normal View History

#ifndef TWGLUE_HPP
#define TWGLUE_HPP
#include <functional>
#include "Device/PublicFunc.h"
struct TwGlue {
TwGlue(const std::function<void(const GScanCap&)>& scan, const std::function<void()>& cancel, std::function<int(int feedmode, bool isget)> feedmode) :
m_scan(scan), m_cancel(cancel),m_feedmode(feedmode){}
std::function<void(const GScanCap&)> m_scan;
std::function<void()> m_cancel;
std::function<int(int feedmode,bool isget)> m_feedmode;
};
#endif // TWGLUE_HPP