redfish-core/lib/systems.hpp
inline std::string dbusToRfBootMode(const std::string& dbusMode)
{
    if (dbusMode == "xyz.openbmc_project.Control.Boot.Mode.Modes.Regular")
    {
        return "None";
    }
    if (dbusMode == "xyz.openbmc_project.Control.Boot.Mode.Modes.Safe")
    {
        return "Diags";
    }
    if (dbusMode == "xyz.openbmc_project.Control.Boot.Mode.Modes.Setup")
    {
        return "BiosSetup";
    }
    return "";
}
/**
 * @brief Translates boot mode DBUS property value to redfish.
 *
 * @param[in] dbusMode    The boot mode in DBUS speak.
 *
 * @return Returns as a string, the boot mode in Redfish terms. If translation
 * cannot be done, returns an empty string.
 */
@brief Translates boot mode DBUS property value to redfish.
@param[in] dbusMode    The boot mode in DBUS speak.

@return Returns as a string, the boot mode in Redfish terms. If translation
cannot be done, returns an empty string.
@brief Translates boot mode DBUS property value to redfish . @param [ in ] dbusMode The boot mode in DBUS speak . @return Returns as a string the boot mode in Redfish terms . If translation cannot be done returns an empty string .
inline std::string dbusToRfBootMode(const std::string& dbusMode)
{
    if (dbusMode == "xyz.openbmc_project.Control.Boot.Mode.Modes.Regular")
    {
        return "None";
    }
    if (dbusMode == "xyz.openbmc_project.Control.Boot.Mode.Modes.Safe")
    {
        return "Diags";
    }
    if (dbusMode == "xyz.openbmc_project.Control.Boot.Mode.Modes.Setup")
    {
        return "BiosSetup";
    }
    return "";
}
inline std :: string dbusToRfBootMode ( const std :: string & dbusMode ) { if ( dbusMode == " " ) { return " " ; } if ( dbusMode == " " ) { return " " ; } if ( dbusMode == " " ) { return " " ; } return " " ; }
@brief Translates boot mode DBUS property value to redfish.
@brief Translates boot mode DBUS property value to redfish .