Newer
Older
/*
* PacketLib.h
*
* Created on: Nov 24, 2022
* Author: valerio
*/
#ifndef INCLUDE_INAF_OAS_PACKET_STRUCTURE_JSON_H_
#define INCLUDE_INAF_OAS_PACKET_STRUCTURE_JSON_H_
#include <Base_Packet.h>
#include <fstream>
#include <nlohmann/json.hpp>
namespace inaf::oasbo::Packets {
class PacketStructureJson : public inaf::oasbo::PacketLib::BasePacketStructure {
private:
std::vector<std::tuple<uint, std::string, uint>> structure;
std::vector<std::tuple<uint, std::string, uint>> convertToTupleVector(const nlohmann::ordered_json &data,
uint &count);
std::vector<std::tuple<uint, std::string, uint>> readStructureFromSource(
PacketStructureJson(std::string source){
updateStructure(source);
}
};
}
#endif /* INCLUDE_INAF_OAS_PACKET_STRUCTURE_JSON_H_ */