xref: /openbmc/pldm/host-bmc/dbus/board.hpp (revision d432b48b6b5c908248d9bc6cce316514a05f3ed0)
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/Board/server.hpp>
7 
8 #include <string>
9 
10 namespace pldm
11 {
12 namespace dbus
13 {
14 using ItemBoard = sdbusplus::server::object_t<
15     sdbusplus::xyz::openbmc_project::Inventory::Item::server::Board>;
16 
17 class Board : public ItemBoard
18 {
19   public:
20     Board() = delete;
21     ~Board() = default;
22     Board(const Board&) = delete;
23     Board& operator=(const Board&) = delete;
24     Board(Board&&) = delete;
25     Board& operator=(Board&&) = delete;
26 
Board(sdbusplus::bus_t & bus,const std::string & objPath)27     Board(sdbusplus::bus_t& bus, const std::string& objPath) :
28         ItemBoard(bus, objPath.c_str()), path(objPath)
29     {}
30 
31   private:
32     std::string path;
33 };
34 
35 } // namespace dbus
36 } // namespace pldm
37