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