48 virtual void poll()
override;
51 virtual int count()
const override;
59 std::vector<DtDatasource::DtEntitySnapshot>
queryAll()
const;
std::shared_ptr< DtDatasource::DtEntitySnapshot > snapshotForEntity(DtWebServerObjectPtr obj) const
DtDatasource::DtEntitySnapshot query(const std::string &objectName) const
Return the snapshot for a single entity by objectName. Returns a default-constructed DtEntitySnapshot...
virtual void shutdown() override
Called on teardown. Release any resources.
virtual void poll() override
Called each tick while the VRF API mutex is held. Collect state changes and queue them internally...
DtVrfContext myVrfContext
Definition: entityProcessor.h:76
virtual void dispatchPendingEvents() override
Called each tick AFTER the VRF API mutex is released. Deliver any queued change notifications.
DtEntitySnapshot - Complete state of an entity at a point in time. VRF-agnostic intermediate represen...
Definition: dataTypes.h:57
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
void parseIffForEntity(DtWebServerObjectPtr obj, std::shared_ptr< DtDatasource::DtEntitySnapshot > &ptr) const
DtEntityProcessor()=default
std::vector< DtDatasource::DtEntitySnapshot > queryAll() const
Return snapshots for all currently known entities. TODO: implement once the shared VRF data store is ...
virtual ~DtEntityProcessor() override=default
DtEntityProcessor - Lightweight per-client entity processor.
Definition: entityProcessor.h:38
virtual int count() const override
Number of objects currently known to this processor.
std::shared_ptr< DtWebServerObject > DtWebServerObjectPtr
Definition: webServerObject.h:90
virtual void initialize(const DtVrfContext &context) override
Called once before the first tick.