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