#pragma once #include "registries/base_message_registry.hpp" #include "registries/openbmc_message_registry.hpp" #include "registries/task_event_message_registry.hpp" #include #include namespace redfish::registries { inline std::span getRegistryFromPrefix(std::string_view registryName) { if (task_event::header.registryPrefix == registryName) { return {task_event::registry}; } if (openbmc::header.registryPrefix == registryName) { return {openbmc::registry}; } if (base::header.registryPrefix == registryName) { return {base::registry}; } return {openbmc::registry}; } } // namespace redfish::registries