Kamalkumar Patel | 2ed986c | 2024-05-08 02:20:47 -0500 | [diff] [blame] | 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; |
Andrew Jeffery | d769c6d | 2024-07-25 22:43:50 +0930 | [diff] [blame] | 29 | Motherboard(Motherboard&&) = delete; |
| 30 | Motherboard& operator=(Motherboard&&) = delete; |
Kamalkumar Patel | 2ed986c | 2024-05-08 02:20:47 -0500 | [diff] [blame] | 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 |