Lines Matching refs:path

7 void CustomDBus::setLocationCode(const std::string& path, std::string value)  in setLocationCode()  argument
9 if (!location.contains(path)) in setLocationCode()
11 location.emplace(path, in setLocationCode()
13 pldm::utils::DBusHandler::getBus(), path.c_str())); in setLocationCode()
16 location.at(path)->locationCode(value); in setLocationCode()
20 const std::string& path) const in getLocationCode()
22 if (location.contains(path)) in getLocationCode()
24 return location.at(path)->locationCode(); in getLocationCode()
30 void CustomDBus::implementCpuCoreInterface(const std::string& path) in implementCpuCoreInterface() argument
32 if (!cpuCore.contains(path)) in implementCpuCoreInterface()
34 cpuCore.emplace(path, std::make_unique<CPUCore>( in implementCpuCoreInterface()
35 pldm::utils::DBusHandler::getBus(), path)); in implementCpuCoreInterface()
39 void CustomDBus::setMicroCode(const std::string& path, uint32_t value) in setMicroCode() argument
41 if (!cpuCore.contains(path)) in setMicroCode()
43 cpuCore.emplace(path, std::make_unique<CPUCore>( in setMicroCode()
44 pldm::utils::DBusHandler::getBus(), path)); in setMicroCode()
46 cpuCore.at(path)->microcode(value); in setMicroCode()
49 std::optional<uint32_t> CustomDBus::getMicroCode(const std::string& path) const in getMicroCode()
51 if (cpuCore.contains(path)) in getMicroCode()
53 return cpuCore.at(path)->microcode(); in getMicroCode()
59 void CustomDBus::implementPCIeSlotInterface(const std::string& path) in implementPCIeSlotInterface() argument
61 if (!pcieSlot.contains(path)) in implementPCIeSlotInterface()
63 pcieSlot.emplace(path, std::make_unique<PCIeSlot>( in implementPCIeSlotInterface()
64 pldm::utils::DBusHandler::getBus(), path)); in implementPCIeSlotInterface()
68 void CustomDBus::setSlotType(const std::string& path, in setSlotType() argument
73 if (pcieSlot.contains(path)) in setSlotType()
75 pcieSlot.at(path)->slotType(typeOfSlot); in setSlotType()
79 void CustomDBus::implementPCIeDeviceInterface(const std::string& path) in implementPCIeDeviceInterface() argument
81 if (!pcieDevice.contains(path)) in implementPCIeDeviceInterface()
83 pcieDevice.emplace(path, std::make_unique<PCIeDevice>( in implementPCIeDeviceInterface()
84 pldm::utils::DBusHandler::getBus(), path)); in implementPCIeDeviceInterface()
88 void CustomDBus::setPCIeDeviceProps(const std::string& path, size_t lanesInUse, in setPCIeDeviceProps() argument
94 if (pcieDevice.contains(path)) in setPCIeDeviceProps()
96 pcieDevice.at(path)->lanesInUse(lanesInUse); in setPCIeDeviceProps()
97 pcieDevice.at(path)->generationInUse(generationsInUse); in setPCIeDeviceProps()
101 void CustomDBus::implementCableInterface(const std::string& path) in implementCableInterface() argument
103 if (!cable.contains(path)) in implementCableInterface()
105 cable.emplace(path, std::make_unique<Cable>( in implementCableInterface()
106 pldm::utils::DBusHandler::getBus(), path)); in implementCableInterface()
110 void CustomDBus::setCableAttributes(const std::string& path, double length, in setCableAttributes() argument
113 if (cable.contains(path)) in setCableAttributes()
115 cable.at(path)->length(length); in setCableAttributes()
116 cable.at(path)->cableTypeDescription(cableDescription); in setCableAttributes()
120 void CustomDBus::implementMotherboardInterface(const std::string& path) in implementMotherboardInterface() argument
122 if (!motherboard.contains(path)) in implementMotherboardInterface()
124 motherboard.emplace(path, in implementMotherboardInterface()
126 pldm::utils::DBusHandler::getBus(), path)); in implementMotherboardInterface()
130 void CustomDBus::implementFabricAdapter(const std::string& path) in implementFabricAdapter() argument
132 if (!fabricAdapter.contains(path)) in implementFabricAdapter()
135 path, std::make_unique<FabricAdapter>( in implementFabricAdapter()
136 pldm::utils::DBusHandler::getBus(), path.c_str())); in implementFabricAdapter()
140 void CustomDBus::implementBoard(const std::string& path) in implementBoard() argument
142 if (!board.contains(path)) in implementBoard()
144 board.emplace(path, in implementBoard()
146 pldm::utils::DBusHandler::getBus(), path.c_str())); in implementBoard()
150 void CustomDBus::implementPowerSupplyInterface(const std::string& path) in implementPowerSupplyInterface() argument
152 if (!powersupply.contains(path)) in implementPowerSupplyInterface()
155 path, std::make_unique<PowerSupply>( in implementPowerSupplyInterface()
156 pldm::utils::DBusHandler::getBus(), path.c_str())); in implementPowerSupplyInterface()
160 void CustomDBus::implementFanInterface(const std::string& path) in implementFanInterface() argument
162 if (!fan.contains(path)) in implementFanInterface()
164 fan.emplace(path, in implementFanInterface()
166 path.c_str())); in implementFanInterface()
170 void CustomDBus::implementConnecterInterface(const std::string& path) in implementConnecterInterface() argument
172 if (!connector.contains(path)) in implementConnecterInterface()
175 path, std::make_unique<Connector>( in implementConnecterInterface()
176 pldm::utils::DBusHandler::getBus(), path.c_str())); in implementConnecterInterface()
180 void CustomDBus::implementChassisInterface(const std::string& path) in implementChassisInterface() argument
182 if (!chassis.contains(path)) in implementChassisInterface()
184 chassis.emplace(path, in implementChassisInterface()
186 pldm::utils::DBusHandler::getBus(), path.c_str())); in implementChassisInterface()
190 void CustomDBus::implementAssetInterface(const std::string& path) in implementAssetInterface() argument
192 if (!asset.contains(path)) in implementAssetInterface()
194 asset.emplace(path, std::make_unique<Asset>( in implementAssetInterface()
195 pldm::utils::DBusHandler::getBus(), path)); in implementAssetInterface()
199 void CustomDBus::setAvailabilityState(const std::string& path, in setAvailabilityState() argument
202 if (!availabilityState.contains(path)) in setAvailabilityState()
205 path, std::make_unique<Availability>( in setAvailabilityState()
206 pldm::utils::DBusHandler::getBus(), path.c_str())); in setAvailabilityState()
209 availabilityState.at(path)->available(state); in setAvailabilityState()
212 void CustomDBus::updateItemPresentStatus(const std::string& path, in updateItemPresentStatus() argument
215 if (!presentStatus.contains(path)) in updateItemPresentStatus()
218 path, std::make_unique<InventoryItem>( in updateItemPresentStatus()
219 pldm::utils::DBusHandler::getBus(), path.c_str())); in updateItemPresentStatus()
220 std::filesystem::path ObjectPath(path); in updateItemPresentStatus()
223 presentStatus.at(path)->present(true); in updateItemPresentStatus()
227 presentStatus.at(path)->prettyName(ObjectPath.filename()); in updateItemPresentStatus()
232 presentStatus.at(path)->present(isPresent); in updateItemPresentStatus()
236 void CustomDBus::implementPanelInterface(const std::string& path) in implementPanelInterface() argument
238 if (!panel.contains(path)) in implementPanelInterface()
240 panel.emplace(path, in implementPanelInterface()
242 pldm::utils::DBusHandler::getBus(), path.c_str())); in implementPanelInterface()
246 void CustomDBus::implementVRMInterface(const std::string& path) in implementVRMInterface() argument
248 if (!vrm.contains(path)) in implementVRMInterface()
250 vrm.emplace(path, in implementVRMInterface()
252 path.c_str())); in implementVRMInterface()