1234567891011121314151617181920212223 |
- #ifndef FOUNDATION_IOTACQ_LOADJSONFILE_H
- #define FOUNDATION_IOTACQ_LOADJSONFILE_H
- #include <vendor_global.h>
- #include <settings/config_parser.h>
- #include <json/json.h>
- namespace iot_acq {
- class LoadJsonFile {
- public:
- LoadJsonFile();
- ~LoadJsonFile();
- bool LoadJson(const std::string &filePath, Json::Value &root);
- bool LoadChannelFromJson(const std::string &filePath);
- bool LoadDevicesFromJson(const std::string &filePath);
- bool ParseJson(const Json::Value &root);
- bool ParseChannels(const Json::Value &jsonChn);
- bool ParseDevices(const Json::Value &jsonDevice);
- private:
- };
- } // namespace iot_acq
- #endif // FOUNDATION_IOTACQ_LOADJSONFILE_H
|