![]() |
VR-Forces Developer's Guide
|
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:

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 |
|
virtualdefault |
|
pure virtual |
Called once before the first tick.
| context | VRF 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.
|
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.
|
pure virtual |
Called each tick AFTER the VRF API mutex is released. Deliver any queued change notifications.
Implemented in DtEntityProcessor, DtAggregateProcessor, DtTacticalGraphicProcessor, and DtInteractionProcessor.
|
pure virtual |
Called on teardown. Release any resources.
Implemented in DtEntityProcessor, DtAggregateProcessor, DtTacticalGraphicProcessor, and DtInteractionProcessor.
|
pure virtual |
Number of objects currently known to this processor.
Implemented in DtEntityProcessor, DtAggregateProcessor, DtTacticalGraphicProcessor, and DtInteractionProcessor.