2025-09-28 00:50:05 -04:00
|
|
|
#ifndef DEVICEROLE_H
|
|
|
|
|
#define DEVICEROLE_H
|
|
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
#include <user/deviceAttachmentSpec.h>
|
|
|
|
|
|
|
|
|
|
namespace smo {
|
|
|
|
|
namespace device {
|
|
|
|
|
|
2025-09-28 01:15:36 -04:00
|
|
|
class Device; // Forward declaration
|
|
|
|
|
|
2025-09-28 00:50:05 -04:00
|
|
|
class DeviceRole
|
|
|
|
|
{
|
|
|
|
|
public:
|
2025-09-28 01:15:36 -04:00
|
|
|
DeviceRole(
|
|
|
|
|
Device& parentDevice,
|
|
|
|
|
std::shared_ptr<DeviceAttachmentSpec>& spec)
|
|
|
|
|
: parentDevice(parentDevice), deviceAttachmentSpec(spec)
|
2025-09-28 00:50:05 -04:00
|
|
|
{}
|
|
|
|
|
|
2025-09-28 01:15:36 -04:00
|
|
|
Device& parentDevice;
|
|
|
|
|
std::shared_ptr<DeviceAttachmentSpec> deviceAttachmentSpec;
|
2025-09-28 00:50:05 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace device
|
|
|
|
|
} // namespace smo
|
|
|
|
|
|
|
|
|
|
#endif // DEVICEROLE_H
|