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

DtFireDetonationEventSource - Subscribes to VRF fire and detonation signals, serializes events to JSON, and queues them for delivery.

Thread safety: Signal callbacks fire on the VRF tick thread. Queue access is protected by myQueueMutex. drain methods may be called from any thread.

Inheritance diagram for DtFireDetonationEventSource:
Inheritance graph
[legend]

Public Member Functions

 DtFireDetonationEventSource ()=default
 
 ~DtFireDetonationEventSource () override=default
 
void subscribe (makVrfEvents::DtEventManager *em) override
 
void unsubscribe () override
 
std::vector< Json::Value > drainFireEvents ()
 
std::vector< Json::Value > drainDetonationEvents ()
 
- Public Member Functions inherited from DtIInteractionEventSource
virtual ~DtIInteractionEventSource ()=default
 

Private Member Functions

void onFireEvent (const makVrfEvents::DtEvent &event)
 
void onDetonationEvent (const makVrfEvents::DtEvent &event)
 

Private Attributes

tbb::spin_mutex myQueueMutex
 
std::vector< Json::Value > myPendingFireEvents
 
std::vector< Json::Value > myPendingDetonationEvents
 
boost::signals2::connection myFireConnection
 
boost::signals2::connection myDetonationConnection
 

Constructor & Destructor Documentation

DtFireDetonationEventSource::DtFireDetonationEventSource ( )
default
DtFireDetonationEventSource::~DtFireDetonationEventSource ( )
overridedefault

Member Function Documentation

void DtFireDetonationEventSource::subscribe ( makVrfEvents::DtEventManager *  em)
overridevirtual

Subscribe to relevant signals on em. Called once by DtInteractionProcessor::initialize().

Implements DtIInteractionEventSource.

void DtFireDetonationEventSource::unsubscribe ( )
overridevirtual

Disconnect all signal subscriptions. Called once by DtInteractionProcessor::shutdown().

Implements DtIInteractionEventSource.

std::vector<Json::Value> DtFireDetonationEventSource::drainFireEvents ( )

Atomically swap-and-return all pending fire event records.

std::vector<Json::Value> DtFireDetonationEventSource::drainDetonationEvents ( )

Atomically swap-and-return all pending detonation event records.

void DtFireDetonationEventSource::onFireEvent ( const makVrfEvents::DtEvent &  event)
private
void DtFireDetonationEventSource::onDetonationEvent ( const makVrfEvents::DtEvent &  event)
private

Member Data Documentation

tbb::spin_mutex DtFireDetonationEventSource::myQueueMutex
mutableprivate
std::vector<Json::Value> DtFireDetonationEventSource::myPendingFireEvents
private
std::vector<Json::Value> DtFireDetonationEventSource::myPendingDetonationEvents
private
boost::signals2::connection DtFireDetonationEventSource::myFireConnection
private
boost::signals2::connection DtFireDetonationEventSource::myDetonationConnection
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)