blob: bc2e5c18e285f6d75fdcd2806111a2a1f72d63d1 [file] [log] [blame]
Archana Kakani42876b62025-02-04 04:22:29 -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/FabricAdapter/server.hpp>
7
8#include <string>
9
10namespace pldm
11{
12namespace dbus
13{
14using ItemFabricAdapter = sdbusplus::server::object_t<
15 sdbusplus::xyz::openbmc_project::Inventory::Item::server::FabricAdapter>;
16
17class FabricAdapter : public ItemFabricAdapter
18{
19 public:
20 FabricAdapter() = delete;
21 ~FabricAdapter() = default;
22 FabricAdapter(const FabricAdapter&) = delete;
23 FabricAdapter& operator=(const FabricAdapter&) = delete;
24 FabricAdapter(FabricAdapter&&) = delete;
25 FabricAdapter& operator=(FabricAdapter&&) = delete;
26
27 FabricAdapter(sdbusplus::bus_t& bus, const std::string& objPath) :
28 ItemFabricAdapter(bus, objPath.c_str()), path(objPath)
29 {}
30
31 private:
32 std::string path;
33};
34
35} // namespace dbus
36} // namespace pldm