plcJsonConfig.h 329 B

123456789101112131415161718192021
  1. /**
  2. * @project shutter_verify
  3. * @brief $BRIEF$
  4. * @author lz
  5. * @data 2023/4/13
  6. **/
  7. #pragma once
  8. #include "json/json.h"
  9. class plcJsonConfig {
  10. public:
  11. explicit plcJsonConfig(std::string path);
  12. ~plcJsonConfig() = default;
  13. std::string ip();
  14. private:
  15. std::string m_path;
  16. Json::Value m_config;
  17. };