#pragma once #include #include #include "ResDataObject.h" #include "CCOS.Dev.IODevice.hpp" #include "CCOS.Dev.IODevice.Detail.hpp" namespace CCOS::Dev::Detail::DAP { //----------------------------------------------------------------------------- // Dap //----------------------------------------------------------------------------- namespace nsDev = CCOS::Dev; static const char* DapUnitType = "{DFCB1BE5-C0D7-411B-8DF3-57EA097923CB}"; class DapDevice : public IODeviceDetail { using super = IODeviceDetail; float m_fDAP; void FireNotify(string key, WORD value); protected: std::shared_ptr m_EventCenter; public: DapDevice(std::shared_ptr EventCenter); ~DapDevice(); virtual std::string GetGUID() const override; virtual bool Prepare(); virtual void Register(); RET_STATUS JSClearDAP(std::string in, std::string& out); RET_STATUS JSQueryDAP(std::string in, std::string& out); RET_STATUS JSGetDAP(std::string& out); virtual RET_STATUS ClearDAP(ResDataObject& pParam); virtual RET_STATUS QueryDAP(ResDataObject& pParam); void UpdateMammo_DAP(float Value); }; }