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