Base class for a resource that can be identified by a name in a DeviceState.
More...
#include <StateResource.h>
|
|
| StateResource () noexcept |
| | Initializes a new StateResource instance with an empty name.
|
| |
| std::string & | name () noexcept |
| | Gets the name of the state resource.
|
| |
Base class for a resource that can be identified by a name in a DeviceState.
◆ StateResource()
| spark::render::StateResource::StateResource |
( |
std::string_view | name | ) |
|
|
explicitnoexcept |
Initializes a new StateResource instance.
- Parameters
-
| name | The name of the resource. |
◆ name() [1/2]
| const std::string & spark::render::StateResource::name |
( |
| ) |
const |
|
nodiscardfinalvirtualnoexcept |
◆ name() [2/2]
| std::string & spark::render::StateResource::name |
( |
| ) |
|
|
nodiscardprotectednoexcept |
Gets the name of the state resource.
- Returns
- A std::string& containing the name of the state resource.