blob: bf6203660a9a5a34c924faf347ce021d7aef4e12 [file] [log] [blame]
Kamalkumar Patel2ed986c2024-05-08 02:20:47 -05001#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
10namespace pldm
11{
12namespace dbus
13{
14using 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 */
22class Motherboard : public ItemMotherboard
23{
24 public:
25 Motherboard() = delete;
26 ~Motherboard() = default;
27 Motherboard(const Motherboard&) = delete;
28 Motherboard& operator=(const Motherboard&) = delete;
Andrew Jefferyd769c6d2024-07-25 22:43:50 +093029 Motherboard(Motherboard&&) = delete;
30 Motherboard& operator=(Motherboard&&) = delete;
Kamalkumar Patel2ed986c2024-05-08 02:20:47 -050031
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