blob: 40e26e3963468a4c410006bf13ec4cc5740eb581 [file] [log] [blame]
Archana Kakani24e9a9b2025-02-04 00:27:25 -06001#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
10namespace pldm
11{
12namespace dbus
13{
14using ItemPowerSupply = sdbusplus::server::object_t<
15 sdbusplus::xyz::openbmc_project::Inventory::Item::server::PowerSupply>;
16
17class 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