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 | Private Attributes
DtInteractionProcessor Class Reference

DtInteractionProcessor - Generic registry of DtIInteractionEventSource instances for one WebSocket connection.

Owns a list of event sources and calls subscribe() / unsubscribe() on them during initialize() / shutdown(). Has no knowledge of specific interaction types.

To add a new interaction type: implement DtIInteractionEventSource and register an instance via addEventSource() before the processor is initialized. No code in this class changes.

Inheritance diagram for DtInteractionProcessor:
Inheritance graph
[legend]

Public Member Functions

 DtInteractionProcessor ()=default
 
 ~DtInteractionProcessor () override=default
 
void initialize (const DtVrfContext &context) override
 
void poll () override
 
void dispatchPendingEvents () override
 
void shutdown () override
 
int count () const override
 
void addEventSource (std::shared_ptr< DtIInteractionEventSource > source)
 
- Public Member Functions inherited from DtProcessor
virtual ~DtProcessor ()=default
 

Private Attributes

std::vector< std::shared_ptr
< DtIInteractionEventSource > > 
myEventSources
 

Constructor & Destructor Documentation

DtInteractionProcessor::DtInteractionProcessor ( )
default
DtInteractionProcessor::~DtInteractionProcessor ( )
overridedefault

Member Function Documentation

void DtInteractionProcessor::initialize ( const DtVrfContext &  context)
overridevirtual

Called once before the first tick.

Parameters
contextVRF runtime objects owned by DtVrfManager. All pointers remain valid for the processor's lifetime. See DtVrfContext for the thread-safety contract.

Implements DtProcessor.

void DtInteractionProcessor::poll ( )
inlineoverridevirtual

Called each tick while the VRF API mutex is held. Collect state changes and queue them internally.

Implements DtProcessor.

void DtInteractionProcessor::dispatchPendingEvents ( )
inlineoverridevirtual

Called each tick AFTER the VRF API mutex is released. Deliver any queued change notifications.

Implements DtProcessor.

void DtInteractionProcessor::shutdown ( )
overridevirtual

Called on teardown. Release any resources.

Implements DtProcessor.

int DtInteractionProcessor::count ( ) const
inlineoverridevirtual

Number of objects currently known to this processor.

Implements DtProcessor.

void DtInteractionProcessor::addEventSource ( std::shared_ptr< DtIInteractionEventSource >  source)

Register an event source. Must be called before initialize().

Member Data Documentation

std::vector<std::shared_ptr<DtIInteractionEventSource> > DtInteractionProcessor::myEventSources
private

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)