code_device/hgdriver/hgdev/user-opt/base_opt.h

28 lines
492 B
C
Raw Normal View History

#pragma once
// SANE-Option
//
// created on 2022-09-22
//
#include <string>
#include "../hg_ipc.h" // for refer
class sane_opt_provider : public refer
{
public:
sane_opt_provider()
{}
protected:
virtual ~sane_opt_provider()
{}
public:
virtual std::string get_json_text(void) = 0;
virtual int get_value(const char* name, void* buf, int* len, bool curval = true) = 0;
virtual int set_value(const char* name, void* value) = 0;
virtual bool has_option(const char* name) = 0;
};