12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #pragma once
- #include <string>
- #include <minwindef.h>
- #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 <CCOS::Dev::IOEventCenter> m_EventCenter;
- public:
- DapDevice(std::shared_ptr <CCOS::Dev::IOEventCenter> 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);
- };
- }
|