redfish-core/lib/systems.hpp
inline std::string rfToDbusWDTTimeOutAct(const std::string& rfAction)
{
    if (rfAction == "None")
    {
        return "xyz.openbmc_project.State.Watchdog.Action.None";
    }
    if (rfAction == "PowerCycle")
    {
        return "xyz.openbmc_project.State.Watchdog.Action.PowerCycle";
    }
    if (rfAction == "PowerDown")
    {
        return "xyz.openbmc_project.State.Watchdog.Action.PowerOff";
    }
    if (rfAction == "ResetSystem")
    {
        return "xyz.openbmc_project.State.Watchdog.Action.HardReset";
    }

    return "";
}
/**
 *@brief Translates timeout action from Redfish to DBUS property value.
 *
 *@param[in] rfAction The timeout action in Redfish.
 *
 *@return Returns as a string, the time_out action as expected by DBUS.
 *If translation cannot be done, returns an empty string.
 */
@brief Translates timeout action from Redfish to DBUS property value.
@param[in] rfAction The timeout action in Redfish.

@return Returns as a string, the time_out action as expected by DBUS.
If translation cannot be done, returns an empty string.
@brief Translates timeout action from Redfish to DBUS property value . @param [ in ] rfAction The timeout action in Redfish . @return Returns as a string the time_out action as expected by DBUS . If translation cannot be done returns an empty string .
inline std::string rfToDbusWDTTimeOutAct(const std::string& rfAction)
{
    if (rfAction == "None")
    {
        return "xyz.openbmc_project.State.Watchdog.Action.None";
    }
    if (rfAction == "PowerCycle")
    {
        return "xyz.openbmc_project.State.Watchdog.Action.PowerCycle";
    }
    if (rfAction == "PowerDown")
    {
        return "xyz.openbmc_project.State.Watchdog.Action.PowerOff";
    }
    if (rfAction == "ResetSystem")
    {
        return "xyz.openbmc_project.State.Watchdog.Action.HardReset";
    }
    return "";
}
inline std :: string rfToDbusWDTTimeOutAct ( const std :: string & rfAction ) { if ( rfAction == " " ) { return " " ; } if ( rfAction == " " ) { return " " ; } if ( rfAction == " " ) { return " " ; } if ( rfAction == " " ) { return " " ; } return " " ; }
@brief Translates timeout action from Redfish to DBUS property value.
@brief Translates timeout action from Redfish to DBUS property value .