#ifndef SERIALIZER_H_ #define SERIALIZER_H_ #include #include #include #include #include #define SERIALIZATION_DIR "/etc/fantasize" #define FANS_JSON_FILENAME "fans.json" using json = nlohmann::json; class Serializer { public: Serializer(); void Serialize(std::vector> fans); std::vector> Deserialize(std::vector> availableSensors); private: void WriteJson(json o); json ReadJson(); }; #endif // SERIALIZER_H_