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