xref: /openbmc/pldm/host-bmc/dbus/vrm.hpp (revision 2832f2cdd6b04c0359cb5ba712e3b88be7ce1c26)
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/Vrm/server.hpp>
7 
8 #include <string>
9 
10 namespace pldm
11 {
12 namespace dbus
13 {
14 using ItemVRM = sdbusplus::server::object_t<
15     sdbusplus::xyz::openbmc_project::Inventory::Item::server::Vrm>;
16 
17 class 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 
VRM(sdbusplus::bus_t & bus,const std::string & objPath)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
37