|
stmm-input-doc
0.17.0
|
Helper class for implementing a device manager with DeviceMgmtCapability. More...

Public Member Functions | |
| std::vector< Capability::Class > | getCapabilityClasses () const noexcept override |
| The registered capability classes of the device manager. More... | |
| shared_ptr< Capability > | getCapability (const Capability::Class &oClass) const noexcept override |
| Requests the instance of a capability class. More... | |
| shared_ptr< Capability > | getCapability (int32_t nCapabilityId) const noexcept override |
| Returns the device manager's capability with the given id, or null if not found. More... | |
Public Member Functions inherited from stmi::BasicDeviceManager | |
| shared_ptr< Device > | getDevice (int32_t nDeviceId) const noexcept override |
| Returns the device with the given id, or null if not found. More... | |
| std::vector< int32_t > | getDevicesWithCapabilityClass (const Capability::Class &oCapabilityClass) const noexcept override |
| Returns the ids of the devices that have the given capability class. More... | |
| std::vector< int32_t > | getDevices () const noexcept override |
| Returns the ids of all the device manager's devices. More... | |
| std::vector< Capability::Class > | getCapabilityClasses () const noexcept override |
| The registered capability classes of the device manager. More... | |
| std::vector< Capability::Class > | getDeviceCapabilityClasses () const noexcept override |
| The registered capability classes of the device manager's devices. More... | |
| std::vector< Event::Class > | getEventClasses () const noexcept override |
| The registered event classes the device manager and all its devices can send. More... | |
| bool | isEventClassEnabled (const Event::Class &oEventClass) const noexcept override |
| Tells whether an event class is enabled. More... | |
| void | enableEventClass (const Event::Class &oEventClass) noexcept override |
| Enables an event class. More... | |
| bool | addAccessor (const shared_ptr< Accessor > &) noexcept override |
| Default empty implementation. More... | |
| bool | removeAccessor (const shared_ptr< Accessor > &) noexcept override |
| Default empty implementation. More... | |
| bool | hasAccessor (const shared_ptr< Accessor > &) noexcept override |
| Default empty implementation. More... | |
| bool | addEventListener (const shared_ptr< EventListener > &refEventListener, const shared_ptr< CallIf > &refCallIf) noexcept override |
| Adds an event listener with its callif condition to the device manager. More... | |
| bool | addEventListener (const shared_ptr< EventListener > &refEventListener) noexcept override |
| Adds an event listener to the device manager. More... | |
| bool | removeEventListener (const shared_ptr< EventListener > &refEventListener, bool bFinalize) noexcept override |
| Removes an event listener from the device manager. More... | |
| bool | removeEventListener (const shared_ptr< EventListener > &refEventListener) noexcept override |
| Removes an event listener from the device manager. More... | |
Public Member Functions inherited from stmi::ChildDeviceManager | |
| shared_ptr< ParentDeviceManager > | getParent () const noexcept |
| Gets the parent of this child device manager. More... | |
| shared_ptr< ParentDeviceManager > | getParent () noexcept |
| Gets the parent of this child device manager. More... | |
| shared_ptr< ParentDeviceManager > | getRoot () const noexcept |
| Returns the root device manager. More... | |
| shared_ptr< ParentDeviceManager > | getRoot () noexcept |
| Returns the root device manager. More... | |
| bool | isParent () const noexcept |
| Tells whether this instance is also a ParentDeviceManager. More... | |
| shared_ptr< ParentDeviceManager > | getAsParent () const noexcept |
| If a parent returns this object as a parent. More... | |
| shared_ptr< ParentDeviceManager > | getAsParent () noexcept |
| If a parent returns this object as a parent. More... | |
Public Member Functions inherited from stmi::DeviceManager | |
| virtual | ~DeviceManager () noexcept=default |
| template<typename TCapa > | |
| bool | getCapability (shared_ptr< TCapa > &refCapa) const noexcept |
| Request a registered device manager capability. More... | |
Protected Member Functions | |
| StdDeviceManager (const std::vector< Capability::Class > &aDeviceCapabitityClasses, const std::vector< Event::Class > &aEventClasses, bool bEnableEventClasses, const std::vector< Event::Class > &aEnDisableEventClasses) noexcept | |
| Constructor. More... | |
| void | sendDeviceMgmtToListeners (const DeviceMgmtEvent::DEVICE_MGMT_TYPE &eMgmtType, const shared_ptr< Device > &refDevice) noexcept |
| Sends a device mgmt event to the listeners. More... | |
| void | checkWeakPtr () const noexcept |
| shared_ptr< DeviceMgmtCapability > | getDeviceMgmtCapability () noexcept |
Protected Member Functions inherited from stmi::BasicDeviceManager | |
| BasicDeviceManager (const std::vector< Capability::Class > &aCapabitityClasses, const std::vector< Capability::Class > &aDeviceCapabitityClasses, const std::vector< Event::Class > &aEventClasses, bool bEnableEventClasses, const std::vector< Event::Class > &aEnDisableEventClasses) noexcept | |
| Constructor. More... | |
| bool | addDevice (const shared_ptr< Device > &refDevice) noexcept |
| Adding a device. More... | |
| bool | removeDevice (const shared_ptr< Device > &refDevice) noexcept |
| Removing a device. More... | |
| bool | isWithinAListenerCallback () const noexcept |
| Tells whether the caller is within a listener callback. More... | |
| virtual void | finalizeListener (ListenerData &oListenerData) noexcept=0 |
| Finalize listener. More... | |
| shared_ptr< const std::list< ListenerData *> > | getListeners () noexcept |
| Returns the listeners data pointers. More... | |
| int32_t | getEventClassIndex (const Event::Class &oEventClass) const noexcept |
| Returns the index of the event class in the array passed to the constructor. More... | |
| void | resetExtraDataOfAllListeners () noexcept |
| Calls overloaded ListenerExtraData::reset() for each listener. More... | |
Protected Member Functions inherited from stmi::ChildDeviceManager | |
| ChildDeviceManager () noexcept | |
| Constructor. More... | |
Protected Member Functions inherited from stmi::DeviceManager | |
| DeviceManager () noexcept | |
Additional Inherited Members | |
Static Public Member Functions inherited from stmi::DeviceManager | |
| static int64_t | getNowTimeMicroseconds () noexcept |
| Current time from epoch in microseconds. More... | |
Static Protected Member Functions inherited from stmi::BasicDeviceManager | |
| static uint64_t | getUniqueTimeStamp () noexcept |
| Returns a unique time stamp. More... | |
Helper class for implementing a device manager with DeviceMgmtCapability.
|
protectednoexcept |
Constructor.
If bEnableEventClasses is true then all event classes in aEnDisableEventClasses are enabled, all others disabled, if false then all event classes supported by this instance are enabled except those in aEnDisableEventClasses. StdDeviceManager doesn't allow disabling event classes once constructed, only enabling. Example: To enable all the event classes supported by this instance pass
bEnableEventClasses = false, aEnDisableEventClasses = {}
| aDeviceCapabitityClasses | Vector of registered (device) capability classes supported by this manager. |
| aEventClasses | Vector of registered event classes supported by this manager. |
| bEnableEventClasses | Whether to enable or disable all but aEnDisableEventClasses. |
| aEnDisableEventClasses | The event classes to be enabled or disabled according to bEnableEventClasses. |
|
protectednoexcept |
|
overridevirtualnoexcept |
Requests the instance of a capability class.
If the device manager doesn't have the capability null is returned.
| oClass | The requested registered device manager capability class. |
Implements stmi::DeviceManager.
|
overridevirtualnoexcept |
Returns the device manager's capability with the given id, or null if not found.
Implements stmi::DeviceManager.
|
overridevirtualnoexcept |
The registered capability classes of the device manager.
Example: the vector {DeviceMgmtCapability::getClass()} is returned.
Implements stmi::DeviceManager.
|
protectednoexcept |
|
protectednoexcept |
Sends a device mgmt event to the listeners.
The event is sent to a listener only if its callif permits it and the event class is enabled.
| eMgmtType | The type. |
| refDevice | The device involved. Cannot be null. |
1.8.13