Archana Kakani | 413f51e | 2025-02-03 04:14:36 -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/Fan/server.hpp> |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | namespace pldm |
| 11 | { |
| 12 | namespace dbus |
| 13 | { |
| 14 | using ItemFan = sdbusplus::server::object_t< |
| 15 | sdbusplus::xyz::openbmc_project::Inventory::Item::server::Fan>; |
| 16 | |
| 17 | class Fan : public ItemFan |
| 18 | { |
| 19 | public: |
| 20 | Fan() = delete; |
| 21 | ~Fan() = default; |
| 22 | Fan(const Fan&) = delete; |
| 23 | Fan& operator=(const Fan&) = delete; |
| 24 | Fan(Fan&&) = delete; |
| 25 | Fan& operator=(Fan&&) = delete; |
| 26 | |
| 27 | Fan(sdbusplus::bus_t& bus, const std::string& objPath) : |
| 28 | ItemFan(bus, objPath.c_str()) |
| 29 | {} |
| 30 | }; |
| 31 | |
| 32 | } // namespace dbus |
| 33 | } // namespace pldm |