8 #include <nlohmann/json.hpp>
53 static bool LoadStation(nlohmann::json& data, std::string stationId);
61 static bool LoadSensor(nlohmann::json& data, std::string sensorId);
Provides methods to update and load station and sensor data stored locally in JSON format.
Definition LocalDB.h:18
static void UpdateIndex(std::string data)
Updates the index file with new data.
static bool LoadSensor(nlohmann::json &data, std::string sensorId)
Loads a specific sensor's data from the local JSON file.
static bool LoadStation(nlohmann::json &data, std::string stationId)
Loads a specific station's data from the local JSON file.
static void UpdateStation(std::string stationId, std::string data)
Updates a specific station's data file.
static bool LoadIndex(nlohmann::json &data)
Loads the index data from the local JSON file.
static void UpdateSensor(std::string sensorId, std::string data)
Updates a specific sensor's data file.