Lines Matching defs:string
52 #include <string>
94 const std::vector<std::pair<std::string, dbus::utility::DbusVariantType>>&
140 const std::string& service, const std::string& path)
233 const std::string& service, const std::string& path)
262 const std::string* uUID = nullptr;
275 std::string valueStr = *uUID;
304 const std::string* subModel = nullptr;
327 const boost::system::error_code& ec, const std::string& value)
352 std::string,
353 std::vector<std::pair<std::string, std::vector<std::string>>>>&
356 const std::string& path = object.first;
358 const std::vector<std::pair<std::string, std::vector<std::string>>>&
409 dbus::utility::getProperty<std::string>(
458 dbus::utility::getProperty<std::string>(
462 const std::string& hostState) {
535 * @return Returns as a string, the boot source in Redfish terms. If translation
536 * cannot be done, returns an empty string.
538 inline std::string dbusToRfBootSource(const std::string& dbusSource)
570 * @return Returns as a string, the boot type in Redfish terms. If translation
571 * cannot be done, returns an empty string.
573 inline std::string dbusToRfBootType(const std::string& dbusType)
591 * @return Returns as a string, the boot mode in Redfish terms. If translation
592 * cannot be done, returns an empty string.
594 inline std::string dbusToRfBootMode(const std::string& dbusMode)
616 * @return Returns as a string, the boot progress in Redfish terms. If
619 inline std::string dbusToRfBootProgress(const std::string& dbusBootProgress)
623 std::string rfBpLastState = "None";
702 const std::string& rfSource, std::string& bootSource, std::string& bootMode)
762 dbus::utility::getProperty<std::string>(
766 const std::string& bootProgressStr) {
834 dbus::utility::getProperty<std::string>(
838 const std::string& bootType) {
878 dbus::utility::getProperty<std::string>(
882 const std::string& bootModeStr) {
934 dbus::utility::getProperty<std::string>(
938 const std::string& bootSourceStr) {
1312 dbus::utility::getProperty<std::string>(
1316 const std::string& policy) {
1395 std::string path;
1396 std::string service;
1492 std::string path;
1493 std::string serv;
1566 const std::optional<std::string>& bootType)
1568 std::string bootTypeStr;
1619 const std::optional<std::string>& bootEnable)
1695 const std::optional<std::string>& bootSource)
1697 std::string bootSourceStr;
1698 std::string bootModeStr;
1751 const std::optional<std::string>& bootSource,
1752 const std::optional<std::string>& bootType,
1753 const std::optional<std::string>& bootEnable)
1771 const std::string& assetTag)
1807 const std::string& path = subtree[0].first;
1808 const std::string& service = subtree[0].second.begin()->first;
1825 * stopBootOnFault name associated with that string
1833 const std::string& stopBootOnFaultString)
1858 const std::string& stopBootOnFault)
1891 const uint64_t computerSystemIndex, const std::string& automaticRetryConfig)
1924 inline std::string dbusPowerRestorePolicyFromRedfish(std::string_view policy)
1956 std::string powerRestorePolicy = dbusPowerRestorePolicyFromRedfish(policy);
2050 * @brief Translate the PowerMode string to enum value
2052 * @param[in] modeString PowerMode string to be translated
2057 const std::string& modeString)
2111 std::string powerMode;
2112 const std::vector<std::string>* allowedModes = nullptr;
2204 const std::string& path = subtree[0].first;
2205 const std::string& service = subtree[0].second.begin()->first;
2227 * name associated with that string
2232 * @return PowerMode value or empty string if mode is not valid
2234 inline std::string validatePowerMode(
2239 std::string mode;
2286 const std::string& pmode)
2290 std::string powerMode = validatePowerMode(asyncResp, pmode);
2335 const std::string& path = subtree[0].first;
2336 const std::string& service = subtree[0].second.begin()->first;
2358 * @return Returns as a string, the timeout action in Redfish terms. If
2359 * translation cannot be done, returns an empty string.
2361 inline std::string dbusToRfWatchdogAction(const std::string& dbusAction)
2388 *@return Returns as a string, the time_out action as expected by DBUS.
2389 *If translation cannot be done, returns an empty string.
2392 inline std::string rfToDbusWDTTimeOutAct(const std::string& rfAction)
2446 const std::string* expireAction = nullptr;
2465 std::string action = dbusToRfWatchdogAction(*expireAction);
2489 const std::optional<std::string>& wdtTimeOutAction)
2495 std::string wdtTimeOutActStr = rfToDbusWDTTimeOutAct(*wdtTimeOutAction);
2640 const std::string& path = subtree[0].first;
2641 const std::string& service = subtree[0].second.begin()->first;
2740 const std::string& path = subtree[0].first;
2741 const std::string& service = subtree[0].second.begin()->first;
2866 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, std::string& resetType,
2870 std::string command;
2935 const std::string& systemName)
2961 std::string resetType;
2975 const std::string& /*systemName*/)
2990 const std::vector<std::tuple<std::string, std::string, bool>>& socketData)
3000 const std::string& socketPath = get<0>(data);
3001 const std::string& protocolName = get<1>(data);
3038 const std::string& systemName, const uint64_t computerSystemIndex)
3122 systemName](const std::optional<std::string>& validSystemsPath) {
3142 asyncResp, [](const std::string& chassisId,
3176 const std::string& systemName)
3211 std::optional<std::string> indicatorLed;
3212 std::optional<std::string> assetTag;
3213 std::optional<std::string> powerRestorePolicy;
3214 std::optional<std::string> powerMode;
3216 std::optional<std::string> wdtTimeOutAction;
3217 std::optional<std::string> bootSource;
3218 std::optional<std::string> bootType;
3219 std::optional<std::string> bootEnable;
3220 std::optional<std::string> bootAutomaticRetry;
3223 std::optional<std::string> stopBootOnFault;
3245 std::string& systemName, PatchParams& patchParams,
3312 const std::optional<std::string>& validSystemsPath) {
3360 const std::string& systemName)
3419 const std::string& /*systemName*/)
3431 * @brief Translates allowed host transitions to redfish string
3441 const std::string& dbusAllowedHostTran,
3473 const std::vector<std::string>& allowedHostTransitions)
3505 for (const std::string& transition : allowedHostTransitions)
3528 dbus::utility::getProperty<std::vector<std::string>>(
3537 const std::string& systemName)