plcJsonConfig.cpp 373 B

12345678910111213141516171819
  1. /**
  2. * @project shutter_verify
  3. * @brief $BRIEF$
  4. * @author lz
  5. * @data 2023/4/13
  6. **/
  7. #include "plcJsonConfig.h"
  8. #include <utility>
  9. plcJsonConfig::plcJsonConfig(std::string path) {
  10. m_path = path;
  11. }
  12. std::string plcJsonConfig::ip() {
  13. std::string ip;
  14. ReadJsonFile(m_path, m_config);
  15. JV_STRING(m_config, "ip", ip, DEFAULT_STRING);
  16. return ip;
  17. }