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/FabricAdapter/server.hpp> 7 8 #include <string> 9 10 namespace pldm 11 { 12 namespace dbus 13 { 14 using ItemFabricAdapter = sdbusplus::server::object_t< 15 sdbusplus::xyz::openbmc_project::Inventory::Item::server::FabricAdapter>; 16 17 class 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 FabricAdapter(sdbusplus::bus_t & bus,const std::string & objPath)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 37