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