1 #pragma once 2 #include <nlohmann/json.hpp> 3 4 namespace coolant_connector 5 { 6 // clang-format off 7 8 enum class CoolantConnectorType{ 9 Invalid, 10 Pair, 11 Supply, 12 Return, 13 Inline, 14 Closed, 15 }; 16 17 NLOHMANN_JSON_SERIALIZE_ENUM(CoolantConnectorType, { 18 {CoolantConnectorType::Invalid, "Invalid"}, 19 {CoolantConnectorType::Pair, "Pair"}, 20 {CoolantConnectorType::Supply, "Supply"}, 21 {CoolantConnectorType::Return, "Return"}, 22 {CoolantConnectorType::Inline, "Inline"}, 23 {CoolantConnectorType::Closed, "Closed"}, 24 }); 25 26 } 27 // clang-format on 28