redfish-core/lib/systems.hpp
inline std::string dbusToRfBootSource(const std::string& dbusSource)
{
    if (dbusSource == "xyz.openbmc_project.Control.Boot.Source.Sources.Default")
    {
        return "None";
    }
    if (dbusSource == "xyz.openbmc_project.Control.Boot.Source.Sources.Disk")
    {
        return "Hdd";
    }
    if (dbusSource ==
        "xyz.openbmc_project.Control.Boot.Source.Sources.ExternalMedia")
    {
        return "Cd";
    }
    if (dbusSource == "xyz.openbmc_project.Control.Boot.Source.Sources.Network")
    {
        return "Pxe";
    }
    if (dbusSource ==
        "xyz.openbmc_project.Control.Boot.Source.Sources.RemovableMedia")
    {
        return "Usb";
    }
    return "";
}
/**
 * @brief Translates boot source DBUS property value to redfish.
 *
 * @param[in] dbusSource    The boot source in DBUS speak.
 *
 * @return Returns as a string, the boot source in Redfish terms. If translation
 * cannot be done, returns an empty string.
 */
@brief Translates boot source DBUS property value to redfish.
@param[in] dbusSource    The boot source in DBUS speak.

@return Returns as a string, the boot source in Redfish terms. If translation
cannot be done, returns an empty string.
@brief Translates boot source DBUS property value to redfish . @param [ in ] dbusSource The boot source in DBUS speak . @return Returns as a string the boot source in Redfish terms . If translation cannot be done returns an empty string .
inline std::string dbusToRfBootSource(const std::string& dbusSource)
{
    if (dbusSource == "xyz.openbmc_project.Control.Boot.Source.Sources.Default")
    {
        return "None";
    }
    if (dbusSource == "xyz.openbmc_project.Control.Boot.Source.Sources.Disk")
    {
        return "Hdd";
    }
    if (dbusSource ==
        "xyz.openbmc_project.Control.Boot.Source.Sources.ExternalMedia")
    {
        return "Cd";
    }
    if (dbusSource == "xyz.openbmc_project.Control.Boot.Source.Sources.Network")
    {
        return "Pxe";
    }
    if (dbusSource ==
        "xyz.openbmc_project.Control.Boot.Source.Sources.RemovableMedia")
    {
        return "Usb";
    }
    return "";
}
inline std :: string dbusToRfBootSource ( const std :: string & dbusSource ) { if ( dbusSource == " " ) { return " " ; } if ( dbusSource == " " ) { return " " ; } if ( dbusSource == " " ) { return " " ; } if ( dbusSource == " " ) { return " " ; } if ( dbusSource == " " ) { return " " ; } return " " ; }
@brief Translates boot source DBUS property value to redfish.
@brief Translates boot source DBUS property value to redfish .