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 | Protected Member Functions | Private Attributes
DtAggregateProcessor Class Reference

DtAggregateProcessor - Lightweight per-client aggregate processor.

One instance is created per connected WebSocket client and registered with DtVrfManager so that it participates in the tick loop.

queryAll() / query() are the primary read interface used by the WebSocket layer to build initial-state and periodic-update messages.

Thread safety: poll() - caller holds vrfDataMutex exclusively; must NOT re-acquire it dispatchPendingEvents() - caller holds NO locks queryAll() / query() - acquires vrfDataMutex shared; safe from any thread

Inheritance diagram for DtAggregateProcessor:
Inheritance graph
[legend]

Public Member Functions

 DtAggregateProcessor ()=default
 
virtual ~DtAggregateProcessor () override=default
 
virtual void initialize (const DtVrfContext &context) override
 
virtual void poll () override
 
virtual void dispatchPendingEvents () override
 
virtual void shutdown () override
 
virtual int count () const override
 
std::vector
< DtDatasource::DtAggregateSnapshot > 
queryAll () const
 
DtDatasource::DtAggregateSnapshot query (const std::string &objectName) const
 
virtual void parameterPropertiesFor (DtTrueAggregateRollUp::Leafs &leafs, DtRwProperties &parameters) const override
 
virtual const
makVrf::DtStateDataWrapper * 
lookup (const DtUUID &id) const override
 
virtual std::set< const
makVrf::DtStateDataWrapper * > 
lookup (const std::set< DtUUID > &ids) const override
 
virtual bool isValid (const makVrf::DtStateDataWrapper *state) const override
 
- Public Member Functions inherited from DtProcessor
virtual ~DtProcessor ()=default
 
- Public Member Functions inherited from DtTrueAggregateRollUpFunctor
virtual bool isValid (const DtUUID &id) const
 

Protected Member Functions

std::shared_ptr
< DtDatasource::DtAggregateSnapshot > 
snapshotForAggregate (DtWebServerObjectPtr obj) const
 
void addHealthToSnapshot (std::shared_ptr< DtDatasource::DtAggregateSnapshot > &snapshot, DtWebServerObjectPtr obj) const
 

Private Attributes

DtVrfContext myVrfContext
 

Constructor & Destructor Documentation

DtAggregateProcessor::DtAggregateProcessor ( )
default
virtual DtAggregateProcessor::~DtAggregateProcessor ( )
overridevirtualdefault

Member Function Documentation

virtual void DtAggregateProcessor::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.

virtual void DtAggregateProcessor::poll ( )
overridevirtual

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

Implements DtProcessor.

virtual void DtAggregateProcessor::dispatchPendingEvents ( )
overridevirtual

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

Implements DtProcessor.

virtual void DtAggregateProcessor::shutdown ( )
overridevirtual

Called on teardown. Release any resources.

Implements DtProcessor.

virtual int DtAggregateProcessor::count ( ) const
overridevirtual

Number of objects currently known to this processor.

Implements DtProcessor.

std::vector<DtDatasource::DtAggregateSnapshot> DtAggregateProcessor::queryAll ( ) const

Return snapshots for all currently known aggregate entities. TODO: implement once the VRF SDK aggregate API is confirmed.

DtDatasource::DtAggregateSnapshot DtAggregateProcessor::query ( const std::string &  objectName) const

Return the snapshot for a single aggregate by objectName. Returns a default-constructed DtAggregateSnapshot (empty objectName) when no matching aggregate is found. TODO: implement once the VRF SDK aggregate API is confirmed.

virtual void DtAggregateProcessor::parameterPropertiesFor ( DtTrueAggregateRollUp::Leafs &  leafs,
DtRwProperties &  parameters 
) const
overridevirtual

{ Rollup functor interface

Implements DtTrueAggregateRollUpFunctor.

virtual const makVrf::DtStateDataWrapper* DtAggregateProcessor::lookup ( const DtUUID &  id) const
overridevirtual

Looks up the state data wrapper for the given UUID.

Implements DtTrueAggregateRollUpFunctor.

virtual std::set<const makVrf::DtStateDataWrapper*> DtAggregateProcessor::lookup ( const std::set< DtUUID > &  ids) const
overridevirtual
virtual bool DtAggregateProcessor::isValid ( const makVrf::DtStateDataWrapper *  state) const
overridevirtual
std::shared_ptr<DtDatasource::DtAggregateSnapshot> DtAggregateProcessor::snapshotForAggregate ( DtWebServerObjectPtr  obj) const
protected

}

Build an DtAggregateSnapshot from a tracked VRF object. TODO: verify the VRF SDK methods for:

  • detecting aggregate objects (e.g., obj->isAggregate())
  • reading AggregateState
  • enumerating subordinate entity UUIDs
void DtAggregateProcessor::addHealthToSnapshot ( std::shared_ptr< DtDatasource::DtAggregateSnapshot > &  snapshot,
DtWebServerObjectPtr  obj 
) const
protected

Adds health-related aggregate data parameter to the snapshot if they exist.

Member Data Documentation

DtVrfContext DtAggregateProcessor::myVrfContext
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)