| #pragma once | |
| #include <cstdint> | |
| #include <nlohmann/json.hpp> | |
| namespace cooling_loop | |
| { | |
| // clang-format off | |
| enum class CoolantType : std::uint8_t{ | |
| Invalid, | |
| Water, | |
| Hydrocarbon, | |
| Fluorocarbon, | |
| Dielectric, | |
| }; | |
| NLOHMANN_JSON_SERIALIZE_ENUM(CoolantType, { | |
| {CoolantType::Invalid, "Invalid"}, | |
| {CoolantType::Water, "Water"}, | |
| {CoolantType::Hydrocarbon, "Hydrocarbon"}, | |
| {CoolantType::Fluorocarbon, "Fluorocarbon"}, | |
| {CoolantType::Dielectric, "Dielectric"}, | |
| }); | |
| } // namespace cooling_loop | |
| // clang-format on |