1853c0dc5SEd Tanous #pragma once 2853c0dc5SEd Tanous #include <nlohmann/json.hpp> 3853c0dc5SEd Tanous 4853c0dc5SEd Tanous namespace power_distribution 5853c0dc5SEd Tanous { 6853c0dc5SEd Tanous // clang-format off 7853c0dc5SEd Tanous 8853c0dc5SEd Tanous enum class PowerEquipmentType{ 9853c0dc5SEd Tanous Invalid, 10853c0dc5SEd Tanous RackPDU, 11853c0dc5SEd Tanous FloorPDU, 12853c0dc5SEd Tanous ManualTransferSwitch, 13853c0dc5SEd Tanous AutomaticTransferSwitch, 14853c0dc5SEd Tanous Switchgear, 15853c0dc5SEd Tanous PowerShelf, 16853c0dc5SEd Tanous Bus, 17*a8d8f9d8SEd Tanous BatteryShelf, 18853c0dc5SEd Tanous }; 19853c0dc5SEd Tanous 20853c0dc5SEd Tanous enum class TransferSensitivityType{ 21853c0dc5SEd Tanous Invalid, 22853c0dc5SEd Tanous High, 23853c0dc5SEd Tanous Medium, 24853c0dc5SEd Tanous Low, 25853c0dc5SEd Tanous }; 26853c0dc5SEd Tanous 27853c0dc5SEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(PowerEquipmentType, { 28853c0dc5SEd Tanous {PowerEquipmentType::Invalid, "Invalid"}, 29853c0dc5SEd Tanous {PowerEquipmentType::RackPDU, "RackPDU"}, 30853c0dc5SEd Tanous {PowerEquipmentType::FloorPDU, "FloorPDU"}, 31853c0dc5SEd Tanous {PowerEquipmentType::ManualTransferSwitch, "ManualTransferSwitch"}, 32853c0dc5SEd Tanous {PowerEquipmentType::AutomaticTransferSwitch, "AutomaticTransferSwitch"}, 33853c0dc5SEd Tanous {PowerEquipmentType::Switchgear, "Switchgear"}, 34853c0dc5SEd Tanous {PowerEquipmentType::PowerShelf, "PowerShelf"}, 35853c0dc5SEd Tanous {PowerEquipmentType::Bus, "Bus"}, 36*a8d8f9d8SEd Tanous {PowerEquipmentType::BatteryShelf, "BatteryShelf"}, 37853c0dc5SEd Tanous }); 38853c0dc5SEd Tanous 39853c0dc5SEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(TransferSensitivityType, { 40853c0dc5SEd Tanous {TransferSensitivityType::Invalid, "Invalid"}, 41853c0dc5SEd Tanous {TransferSensitivityType::High, "High"}, 42853c0dc5SEd Tanous {TransferSensitivityType::Medium, "Medium"}, 43853c0dc5SEd Tanous {TransferSensitivityType::Low, "Low"}, 44853c0dc5SEd Tanous }); 45853c0dc5SEd Tanous 46853c0dc5SEd Tanous } 47853c0dc5SEd Tanous // clang-format on 48