|
stmm-input-doc
0.17.0
|
Helper class that represents a listener. More...
Public Member Functions | |
| ListenerData () noexcept | |
| bool | handleEventCallIf (int32_t nClassTypeIdx, const shared_ptr< Event > &refEvent) const noexcept |
| Send event to the listener with callif evaluation. More... | |
| uint64_t | getAddedTimeStamp () const noexcept |
| The time stamp the listener was added to the device manager. More... | |
| shared_ptr< CallIf > | getCallIf () const noexcept |
| The callif associated with the listener. More... | |
| shared_ptr< CallIf > | getCallIf (int32_t nClassTypeIdx) const noexcept |
| The simplified callif for one of the supported event classes. More... | |
| template<class ED > | |
| void | getExtraData (ED *&p0ExtraData) noexcept |
| Get listener's extra data. More... | |
Helper class that represents a listener.
|
inlinenoexcept |
|
inlinenoexcept |
The time stamp the listener was added to the device manager.
|
inlinenoexcept |
The callif associated with the listener.
|
inlinenoexcept |
The simplified callif for one of the supported event classes.
| nClassTypeIdx | The index of the class. |
|
inlinenoexcept |
Get listener's extra data.
The first time this function is called an instance of type ED is created with its default constructor. Further calls must have the same type ED and will return the same instance.
ED must be a subclass of ListenerExtraData and should override method ListenerExtraData::reset() to initialize the data.
| p0ExtraData | The pointer to the data. |
|
noexcept |
Send event to the listener with callif evaluation.
The event is sent only if callif allows it.
| nClassTypeIdx | The index of the class. If you pass -1 it calls getEventClassIndex(const Event::Class&) const. |
| refEvent | The event to send. |
1.8.13