blob: d13e69fc7a29fa452588d1ec9f4907eb595ddcb6 [file]
#pragma once
#include <sdbusplus/bus.hpp>
#include <sdbusplus/server.hpp>
#include <sdbusplus/server/object.hpp>
#include <xyz/openbmc_project/Inventory/Item/Chassis/server.hpp>
#include <string>
namespace pldm
{
namespace dbus
{
using ItemChassisIntf = sdbusplus::server::object_t<
sdbusplus::xyz::openbmc_project::Inventory::Item::server::Chassis>;
class ItemChassis : public ItemChassisIntf
{
public:
ItemChassis() = delete;
~ItemChassis() override = default;
ItemChassis(const ItemChassis&) = delete;
ItemChassis& operator=(const ItemChassis&) = delete;
ItemChassis(ItemChassis&&) = delete;
ItemChassis& operator=(ItemChassis&&) = delete;
ItemChassis(sdbusplus::bus_t& bus, const std::string& objPath) :
ItemChassisIntf(bus, objPath.c_str())
{}
/** Get value of Type */
ChassisType type() const override;
/** Set value of Type */
ChassisType type(ChassisType value) override;
};
} // namespace dbus
} // namespace pldm