load_json_file.h 650 B

1234567891011121314151617181920212223
  1. #ifndef FOUNDATION_IOTACQ_LOADJSONFILE_H
  2. #define FOUNDATION_IOTACQ_LOADJSONFILE_H
  3. #include <vendor_global.h>
  4. #include <settings/config_parser.h>
  5. #include <json/json.h>
  6. namespace iot_acq {
  7. class LoadJsonFile {
  8. public:
  9. LoadJsonFile();
  10. ~LoadJsonFile();
  11. bool LoadJson(const std::string &filePath, Json::Value &root);
  12. bool LoadChannelFromJson(const std::string &filePath);
  13. bool LoadDevicesFromJson(const std::string &filePath);
  14. bool ParseJson(const Json::Value &root);
  15. bool ParseChannels(const Json::Value &jsonChn);
  16. bool ParseDevices(const Json::Value &jsonDevice);
  17. private:
  18. };
  19. } // namespace iot_acq
  20. #endif // FOUNDATION_IOTACQ_LOADJSONFILE_H