blob: 61a995d40d5ec01dc7af07e2388b09ecf29d8bcc [file] [log] [blame]
Archana Kakani413f51e2025-02-03 04:14:36 -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/Fan/server.hpp>
7
8#include <string>
9
10namespace pldm
11{
12namespace dbus
13{
14using ItemFan = sdbusplus::server::object_t<
15 sdbusplus::xyz::openbmc_project::Inventory::Item::server::Fan>;
16
17class 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