DIOS.Dev.DapMoudle.hpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #pragma once
  2. #include <string>
  3. #include <minwindef.h>
  4. #include "ResDataObject.h"
  5. #include "CCOS.Dev.IODevice.hpp"
  6. #include "CCOS.Dev.IODevice.Detail.hpp"
  7. namespace CCOS::Dev::Detail::DAP
  8. {
  9. //-----------------------------------------------------------------------------
  10. // Dap
  11. //-----------------------------------------------------------------------------
  12. namespace nsDev = CCOS::Dev;
  13. static const char* DapUnitType = "{DFCB1BE5-C0D7-411B-8DF3-57EA097923CB}";
  14. class DapDevice : public IODeviceDetail
  15. {
  16. using super = IODeviceDetail;
  17. float m_fDAP;
  18. void FireNotify(string key, WORD value);
  19. protected:
  20. std::shared_ptr <CCOS::Dev::IOEventCenter> m_EventCenter;
  21. public:
  22. DapDevice(std::shared_ptr <CCOS::Dev::IOEventCenter> EventCenter);
  23. ~DapDevice();
  24. virtual std::string GetGUID() const override;
  25. virtual bool Prepare();
  26. virtual void Register();
  27. RET_STATUS JSClearDAP(std::string in, std::string& out);
  28. RET_STATUS JSQueryDAP(std::string in, std::string& out);
  29. RET_STATUS JSGetDAP(std::string& out);
  30. virtual RET_STATUS ClearDAP(ResDataObject& pParam);
  31. virtual RET_STATUS QueryDAP(ResDataObject& pParam);
  32. void UpdateMammo_DAP(float Value);
  33. };
  34. }