stmm-games-doc  0.32.0
Public Member Functions | List of all members
stmi::testing::FakeKeyDevice Class Reference

Fake device that implements the key capability. More...

Inheritance diagram for stmi::testing::FakeKeyDevice:
Inheritance graph
[legend]

Public Member Functions

 FakeKeyDevice (const shared_ptr< DeviceManager > &refDeviceManager, const std::string &sName) noexcept
 
 FakeKeyDevice () noexcept
 
- Public Member Functions inherited from stmi::testing::FakeDevice< FakeKeyCapability >
 FakeDevice (const shared_ptr< DeviceManager > &refDeviceManager, const std::string &sName, const shared_ptr< FakeKeyCapability > &refCapability) noexcept
 Constructor. More...
 
std::string getName () const noexcept override
 
shared_ptr< DeviceManagergetDeviceManager () const noexcept override
 The device manager that manages the device. More...
 
shared_ptr< CapabilitygetCapability (const Capability::Class &oClass) const noexcept override
 Requests the instance of a capability class. More...
 
shared_ptr< CapabilitygetCapability (int32_t nCapabilityId) const noexcept override
 Returns the capability with the given id, or null if not found. More...
 
std::vector< Capability::ClassgetCapabilityClasses () const noexcept override
 The capability classes supported by this device. More...
 
std::vector< int32_t > getCapabilities () const noexcept override
 Returns the ids of all the device's capabilities. More...
 
- Public Member Functions inherited from stmi::Device
virtual ~Device () noexcept=default
 
int32_t getId () const noexcept
 The device id. More...
 
template<typename TCapa >
bool getCapability (shared_ptr< TCapa > &refCapa) const noexcept
 Request a registered capability from this device. More...
 

Additional Inherited Members

- Protected Member Functions inherited from stmi::Device
 Device () noexcept
 

Detailed Description

Fake device that implements the key capability.

Constructor & Destructor Documentation

◆ FakeKeyDevice() [1/2]

stmi::testing::FakeKeyDevice::FakeKeyDevice ( const shared_ptr< DeviceManager > &  refDeviceManager,
const std::string &  sName 
)
inlinenoexcept
See also
FakeDevice<CAPA>::FakeDevice()

◆ FakeKeyDevice() [2/2]

stmi::testing::FakeKeyDevice::FakeKeyDevice ( )
inlinenoexcept
See also
FakeDevice<CAPA>::FakeDevice()