1 #pragma once 2 #include <nlohmann/json.hpp> 3 4 namespace cooling_loop 5 { 6 // clang-format off 7 8 enum class CoolantType{ 9 Invalid, 10 Water, 11 Hydrocarbon, 12 Fluorocarbon, 13 Dielectric, 14 }; 15 16 NLOHMANN_JSON_SERIALIZE_ENUM(CoolantType, { 17 {CoolantType::Invalid, "Invalid"}, 18 {CoolantType::Water, "Water"}, 19 {CoolantType::Hydrocarbon, "Hydrocarbon"}, 20 {CoolantType::Fluorocarbon, "Fluorocarbon"}, 21 {CoolantType::Dielectric, "Dielectric"}, 22 }); 23 24 } 25 // clang-format on 26