Capability id callif.
More...
Capability id callif.
Selects events generated by a specific capability instance identified by its id.
◆ CallIfCapabilityId()
| stmi::CallIfCapabilityId::CallIfCapabilityId |
( |
int32_t |
nCapabilityId | ) |
|
|
explicitnoexcept |
Constructor.
Selects events with a specific capability id.
- Parameters
-
| nCapabilityId | The capability id. Must be >=0. |
◆ getCapabilityId()
| int32_t stmi::CallIfCapabilityId::getCapabilityId |
( |
| ) |
const |
|
inlinenoexcept |
The capability id to be selected.
- Returns
- The capability id. Always >= 0.
◆ operator()()
| bool stmi::CallIfCapabilityId::operator() |
( |
const shared_ptr< const Event > & |
refEvent | ) |
const |
|
inlineoverridevirtualnoexcept |
Function that determines whether an event should be sent to a listener.
- Parameters
-
| refEvent | The event. Cannot be null. |
- Returns
true if the event is to be sent to the listener, false otherwise.
Implements stmi::CallIf.