13 #include <json/json.h>
14 #include <tbb/spin_mutex.h>
15 #include <boost/signals2.hpp>
21 namespace makVrfEvents
24 class DtDetonationEvent;
DtFireDetonationEventSource()=default
boost::signals2::connection myDetonationConnection
Definition: fireDetonationSender.h:61
DtFireDetonationSender - Filters and delivers WeaponFire and MunitionDetonation interactions for one ...
Definition: fireDetonationSender.h:86
boost::signals2::connection myFireConnection
Definition: fireDetonationSender.h:60
DtIInteractionTypeSender - Abstract interface for a single interaction type sub-sender.
Definition: iInteractionTypeSender.h:26
The DtEventManager handles the sending and receipt of system events (fire, detonate, command, etc). It provides a thread-safe way for the sim engine to send and receive such events, between both components within this sim engine and other remote applications.
Definition: eventManager.h:33
std::shared_ptr< DtIInteractionEventSource > eventSource() const override
Returns the event source for registration with DtInteractionProcessor.
Definition: fireDetonationSender.h:93
Contains the DtUUID class declaration.
std::vector< Json::Value > myPendingFireEvents
Definition: fireDetonationSender.h:57
std::vector< Json::Value > drainFireEvents()
Atomically swap-and-return all pending fire event records.
std::vector< Json::Value > myPendingDetonationEvents
Definition: fireDetonationSender.h:58
std::vector< Json::Value > drainFiltered(DtWebLvcClientSession &session) override
Drain events from the owned source, apply filtering against session, and return the JSON records that...
void onFireEvent(const makVrfEvents::DtEvent &event)
std::set< std::string > mySentFireEventIds
EventIds of fire events forwarded to this client whose matching detonation has not yet been seen...
Definition: fireDetonationSender.h:102
~DtFireDetonationSender() override=default
std::vector< Json::Value > drainDetonationEvents()
Atomically swap-and-return all pending detonation event records.
~DtFireDetonationEventSource() override=default
tbb::spin_mutex myQueueMutex
Definition: fireDetonationSender.h:56
DtFireDetonationEventSource - Subscribes to VRF fire and detonation signals, serializes events to JSO...
Definition: fireDetonationSender.h:37
void onDetonationEvent(const makVrfEvents::DtEvent &event)
void unsubscribe() override
Disconnect all signal subscriptions. Called once by DtInteractionProcessor::shutdown().
void subscribe(makVrfEvents::DtEventManager *em) override
Subscribe to relevant signals on em. Called once by DtInteractionProcessor::initialize().
std::shared_ptr< DtFireDetonationEventSource > myEventSource
Definition: fireDetonationSender.h:98
WebLVC Client Session - Tracks state for each connected client per SISO-STD-017-2022 Section 5...
Definition: webLVCClientSession.h:28
DtIInteractionEventSource - Abstract interface for a per-interaction-type event collector.
Definition: iInteractionEventSource.h:27