| #pragma once | |
| #include <cstdint> | |
| #include <nlohmann/json.hpp> | |
| namespace pump | |
| { | |
| // clang-format off | |
| enum class PumpType : std::uint8_t{ | |
| Invalid, | |
| Liquid, | |
| Compressor, | |
| }; | |
| NLOHMANN_JSON_SERIALIZE_ENUM(PumpType, { | |
| {PumpType::Invalid, "Invalid"}, | |
| {PumpType::Liquid, "Liquid"}, | |
| {PumpType::Compressor, "Compressor"}, | |
| }); | |
| } // namespace pump | |
| // clang-format on |