xref: /openbmc/pldm/host-bmc/dbus/motherboard.hpp (revision a34a64bb)
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/Motherboard/server.hpp>
7 
8 #include <string>
9 
10 namespace pldm
11 {
12 namespace dbus
13 {
14 using ItemMotherboard =
15     sdbusplus::server::object_t<sdbusplus::xyz::openbmc_project::Inventory::
16                                     Item::Board::server::Motherboard>;
17 
18 /** @class Motherboard
19  *  @brief This class is mapped to Inventory.Item.Board.Motherboard properties
20  *         in D-Bus interface path.
21  */
22 class Motherboard : public ItemMotherboard
23 {
24   public:
25     Motherboard() = delete;
26     ~Motherboard() = default;
27     Motherboard(const Motherboard&) = delete;
28     Motherboard& operator=(const Motherboard&) = delete;
29     Motherboard(Motherboard&&) = delete;
30     Motherboard& operator=(Motherboard&&) = delete;
31 
32     Motherboard(sdbusplus::bus_t& bus, const std::string& objPath) :
33         ItemMotherboard(bus, objPath.c_str())
34     {}
35 };
36 
37 } // namespace dbus
38 } // namespace pldm
39