#pragma once // SANE-Options accessible offline // // created on 2022-09-22 // #include "base_opt.h" #include #include class hguser; class offline_opts : public sane_opt_provider { hguser* user_; std::string drv_ver_; std::map> oper_; void init(void); public: offline_opts(hguser* user); protected: virtual ~offline_opts(); public: virtual std::string get_json_text(void) override; virtual int get_value(const char* name, void* buf, int* len, bool curval = true) override; virtual int set_value(const char* name, void* value) override; virtual bool has_option(const char* name) override; };