Registration criteria for an event handler.
More...
#include <tsPluginEventHandlerRegistry.h>
|
std::optional< uint32_t > | event_code {} |
| When specified, the event must use that code.
|
|
std::optional< size_t > | plugin_index {} |
| When specified, the plugin must be at that index in the chain.
|
|
std::optional< UString > | plugin_name {} |
| When specified, the plugin must match that name.
|
|
std::optional< PluginType > | plugin_type {} |
| When specified, the plugin must be of this type.
|
|
|
static const Criteria | Any |
| A common empty criteria, meaning "any event".
|
|
Registration criteria for an event handler.
A handler can be registered for any combination of:
- Plugin name
- Plugin index in the chain
- Plugin type (input, packet processing, output).
- Event code (32-bit plugin-specific value).
- All plugins (when no criteria is specified).
◆ Criteria() [1/4]
ts::PluginEventHandlerRegistry::Criteria::Criteria |
( |
| ) |
|
|
default |
Default constructor.
No criteria is set, meaning it matches all events.
◆ Criteria() [2/4]
ts::PluginEventHandlerRegistry::Criteria::Criteria |
( |
uint32_t |
code | ) |
|
|
inline |
Constructor with an event code.
It matches all events with that code from any plugin.
- Parameters
-
◆ Criteria() [3/4]
ts::PluginEventHandlerRegistry::Criteria::Criteria |
( |
PluginType |
type | ) |
|
|
inline |
Constructor with a plugin type.
It matches all events from any plugin of that type.
- Parameters
-
◆ Criteria() [4/4]
ts::PluginEventHandlerRegistry::Criteria::Criteria |
( |
const UString & |
name | ) |
|
|
inline |
Constructor with a plugin name.
It matches all events from any plugin of that name.
- Parameters
-
The documentation for this class was generated from the following file: