CCOS.Dev.DapMoudle.hpp 1.2 KB

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