registerEventAlias#
Fully qualified name: carb::events::registerEventAlias
Defined in carb/events/EventsAdapterUtils.h
- inline bool carb::events::registerEventAlias( )#
Registers an alias between an
EventTypeand event name.This is generally recommended for use with AdapterType::eFullAlias. This allows event adapters created of type AdapterType::eFullAlias to map
eventTypewith the corresponding eventdispatcher::IEventDispatcher event names for pushing (pushEvent) and popping (popEvent).Corresponding with the IEventsAdapter created from type AdapterType::eFullAlias, the following event names will be aliased (where
<eventType>is a base-10 rendering ofeventTypeas if by thePRIu64printf format specifier):AdapterAlias:<eventType>:immediatebecomes an alias topushEventAdapterAlias:<eventType>becomes an alias topopEvent.
When the aliases are no longer needed, unregisterEventAlias() can be used to remove them.
- Parameters:
eventType – The EventType to use with aliasing. May not be 0.
pushEvent – The eventdispatcher::IEventDispatcher event name to use for push (immediate) events.
popEvent – The eventdispatcher::IEventDispatcher event name to use for pop (deferred) events.
- Returns:
trueif the aliases were created;falseif either alias could not be created oreventTypewas 0.