VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
DtIInteractionEventSource Class Referenceabstract

DtIInteractionEventSource - Abstract interface for a per-interaction-type event collector.

An event source subscribes to one or more VRF event manager signals in subscribe(), accumulates serialized JSON records, and exposes drain methods for consumption by a paired DtIInteractionTypeSender.

Implementations must be thread-safe: subscribe()/unsubscribe() are called on the VRF lifecycle thread, while drain methods are called from the WebSocket timer thread.

To add a new interaction type, implement this interface and register the instance with DtInteractionProcessor via addEventSource(). No changes to DtInteractionProcessor itself are required.

Inheritance diagram for DtIInteractionEventSource:
Inheritance graph
[legend]

Public Member Functions

virtual ~DtIInteractionEventSource ()=default
 
virtual void subscribe (makVrfEvents::DtEventManager *em)=0
 
virtual void unsubscribe ()=0
 

Constructor & Destructor Documentation

virtual DtIInteractionEventSource::~DtIInteractionEventSource ( )
virtualdefault

Member Function Documentation

virtual void DtIInteractionEventSource::subscribe ( makVrfEvents::DtEventManager *  em)
pure virtual

Subscribe to relevant signals on em. Called once by DtInteractionProcessor::initialize().

Implemented in DtFireDetonationEventSource, and DtObjectConsoleEventSource.

virtual void DtIInteractionEventSource::unsubscribe ( )
pure virtual

Disconnect all signal subscriptions. Called once by DtInteractionProcessor::shutdown().

Implemented in DtFireDetonationEventSource, and DtObjectConsoleEventSource.


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)