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
DtProcessor Class Referenceabstract

DtProcessor - Abstract base interface for per-client data processors.

A processor is a lightweight per-connection object owned by the WebSocket layer. DtVrfManager holds a registry of active processors and calls poll() / dispatchPendingEvents() on each tick without knowing their concrete type.

Lifecycle:

  1. Construction - default, no external dependencies
  2. initialize() - optional per-processor setup
  3. poll() - called while holding the VRF API mutex each tick; collect any pending state changes
  4. dispatchPendingEvents() - called OUTSIDE the VRF API mutex; deliver change notifications
  5. shutdown() - tear down any resources
Inheritance diagram for DtProcessor:
Inheritance graph
[legend]

Public Member Functions

virtual ~DtProcessor ()=default
 
virtual void initialize (const DtVrfContext &context)=0
 
virtual void poll ()=0
 
virtual void dispatchPendingEvents ()=0
 
virtual void shutdown ()=0
 
virtual int count () const =0
 

Constructor & Destructor Documentation

virtual DtProcessor::~DtProcessor ( )
virtualdefault

Member Function Documentation

virtual void DtProcessor::initialize ( const DtVrfContext &  context)
pure virtual

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.

Implemented in DtEntityProcessor, DtAggregateProcessor, DtTacticalGraphicProcessor, and DtInteractionProcessor.

virtual void DtProcessor::poll ( )
pure virtual

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

Implemented in DtEntityProcessor, DtAggregateProcessor, DtTacticalGraphicProcessor, and DtInteractionProcessor.

virtual void DtProcessor::dispatchPendingEvents ( )
pure virtual

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

Implemented in DtEntityProcessor, DtAggregateProcessor, DtTacticalGraphicProcessor, and DtInteractionProcessor.

virtual void DtProcessor::shutdown ( )
pure virtual

Called on teardown. Release any resources.

Implemented in DtEntityProcessor, DtAggregateProcessor, DtTacticalGraphicProcessor, and DtInteractionProcessor.

virtual int DtProcessor::count ( ) const
pure virtual

Number of objects currently known to this processor.

Implemented in DtEntityProcessor, DtAggregateProcessor, DtTacticalGraphicProcessor, and DtInteractionProcessor.


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)