Archana Kakani | 24e9a9b | 2025-02-04 00:27:25 -0600 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <sdbusplus/bus.hpp> |
| 4 | #include <sdbusplus/server.hpp> |
| 5 | #include <sdbusplus/server/object.hpp> |
| 6 | #include <xyz/openbmc_project/Inventory/Item/PowerSupply/server.hpp> |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | namespace pldm |
| 11 | { |
| 12 | namespace dbus |
| 13 | { |
| 14 | using ItemPowerSupply = sdbusplus::server::object_t< |
| 15 | sdbusplus::xyz::openbmc_project::Inventory::Item::server::PowerSupply>; |
| 16 | |
| 17 | class PowerSupply : public ItemPowerSupply |
| 18 | { |
| 19 | public: |
| 20 | PowerSupply() = delete; |
| 21 | ~PowerSupply() = default; |
| 22 | PowerSupply(const PowerSupply&) = delete; |
| 23 | PowerSupply& operator=(const PowerSupply&) = delete; |
| 24 | PowerSupply(PowerSupply&&) = delete; |
| 25 | PowerSupply& operator=(PowerSupply&&) = delete; |
| 26 | |
| 27 | PowerSupply(sdbusplus::bus_t& bus, const std::string& objPath) : |
| 28 | ItemPowerSupply(bus, objPath.c_str()) |
| 29 | {} |
| 30 | }; |
| 31 | |
| 32 | } // namespace dbus |
| 33 | } // namespace pldm |