VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
interactionProcessor.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (c) 2026 MAK Technologies, Inc.
3  * All rights reserved.
4  ******************************************************************************/
5 
6 #pragma once
7 
8 #include "iProcessor.h"
10 
11 #include <memory>
12 #include <vector>
13 
25 {
26 public:
27  DtInteractionProcessor() = default;
28  ~DtInteractionProcessor() override = default;
29 
30  // DtProcessor interface
31  void initialize(const DtVrfContext& context) override;
32  void poll() override {}
33  void dispatchPendingEvents() override {}
34  void shutdown() override;
35  int count() const override { return 0; }
36 
38  void addEventSource(std::shared_ptr<DtIInteractionEventSource> source);
39 
40 private:
41  std::vector<std::shared_ptr<DtIInteractionEventSource>> myEventSources;
42 };
~DtInteractionProcessor() override=default
void initialize(const DtVrfContext &context) override
Called once before the first tick.
void poll() override
Called each tick while the VRF API mutex is held. Collect state changes and queue them internally...
Definition: interactionProcessor.h:32
DtInteractionProcessor - Generic registry of DtIInteractionEventSource instances for one WebSocket co...
Definition: interactionProcessor.h:24
std::vector< std::shared_ptr< DtIInteractionEventSource > > myEventSources
Definition: interactionProcessor.h:41
void addEventSource(std::shared_ptr< DtIInteractionEventSource > source)
Register an event source. Must be called before initialize().
DtVrfContext - Bundles the VRF runtime objects passed to a processor on initialization. All pointers remain valid for the lifetime of the processor.
Definition: vrfManager.h:59
DtProcessor - Abstract base interface for per-client data processors.
Definition: iProcessor.h:25
int count() const override
Number of objects currently known to this processor.
Definition: interactionProcessor.h:35
const char * source
Definition: lz4.h:442
void shutdown() override
Called on teardown. Release any resources.
void dispatchPendingEvents() override
Called each tick AFTER the VRF API mutex is released. Deliver any queued change notifications.
Definition: interactionProcessor.h:33
DtInteractionProcessor()=default

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)