mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-11 15:28:13 -05:00
23 lines
472 B
C++
23 lines
472 B
C++
// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md
|
|
|
|
#include "Device.hpp"
|
|
|
|
namespace devices
|
|
{
|
|
|
|
Device::Device(std::string name) : name(std::move(name))
|
|
{}
|
|
|
|
bool Device::IsEnabled() const noexcept
|
|
{
|
|
return isEnabled;
|
|
}
|
|
|
|
[[nodiscard]] auto Device::GetName() const noexcept -> std::string
|
|
{
|
|
return name;
|
|
}
|
|
|
|
} // namespace devices
|