25class MIDIRootComplexUSBHosted :
public MIDIRootComplex {
27#pragma GCC diagnostic push
28#pragma GCC diagnostic ignored "-Winvalid-offsetof"
30#pragma GCC diagnostic pop
33 MIDIRootComplexUSBHosted(
const MIDIRootComplexUSBHosted&) =
delete;
34 MIDIRootComplexUSBHosted(MIDIRootComplexUSBHosted&&) =
delete;
35 MIDIRootComplexUSBHosted& operator=(
const MIDIRootComplexUSBHosted&) =
delete;
36 MIDIRootComplexUSBHosted& operator=(MIDIRootComplexUSBHosted&&) =
delete;
38 MIDIRootComplexUSBHosted();
39 ~MIDIRootComplexUSBHosted()
override;
41 [[nodiscard]] RootComplexType getType()
const override {
return RootComplexType::RC_USB_HOST; }
43 [[nodiscard]]
size_t getNumCables()
const override {
return hostedMIDIDevices_.getNumElements(); }
44 [[nodiscard]]
MIDICable* getCable(
size_t index)
override;
46 [[nodiscard]]
NamedThingVector& getHostedMIDIDevices() {
return hostedMIDIDevices_; }
47 [[nodiscard]]
NamedThingVector const& getHostedMIDIDevices()
const {
return hostedMIDIDevices_; }
49 void flush()
override;
50 [[nodiscard]] Error
poll()
override;