14 namespace makVrf {
class DtVrlinkVrfRemoteController; }
49 const std::vector<DtRoleDefinition>& roles,
UUID is a unique ID wrapper class.
Definition: uuid.h:59
void onScenarioChanged()
Clear the sent-tracking set so that entities reappearing after a scenario reload will be re-evaluated...
std::set< DtUUID > myEligibleUuids
Union of all contactsFromUUID values across active role definitions.
Definition: spotReportAutoEnabler.h:73
void onRoleDefinitionsChanged(const std::vector< DtRoleDefinition > &roles, const DtWebServerObjectList &trackedObjects)
Re-evaluate eligibility based on the current set of active role definitions. Sends requests to any ne...
DtSpotReportAutoEnabler(makVrf::DtVrlinkVrfRemoteController &remoteController)
void onEntityAdded(const DtWebServerObjectPtr &obj)
Evaluate a newly-discovered entity and send the request if eligible.
std::set< DtUUID > mySentUuids
UUIDs that have already been sent the enable request in this session.
Definition: spotReportAutoEnabler.h:76
Contains the DtUUID class declaration.
makVrf::DtVrlinkVrfRemoteController & myRemoteController
Definition: spotReportAutoEnabler.h:66
This class is a specialization of the DtVrfRemoteController for use with a VR-Link exercise connectio...
Definition: vrlinkVrfRemoteController.h:44
DtSpotReportAutoEnabler & operator=(const DtSpotReportAutoEnabler &)=delete
bool isEntityEligible(int forceType, const DtUUID &uuid) const
Returns true if the given force type or UUID is in the eligible sets.
DtSpotReportAutoEnabler — automatically sends DtSetSpotReportingRequestEnableToGuiIfOff to entities w...
Definition: spotReportAutoEnabler.h:32
DtWebServerObjectList — thread-safe container for tracked VRF objects.
Definition: webServerObjectList.h:25
std::set< int > myEligibleForces
Union of all contactsFromForce values across active role definitions.
Definition: spotReportAutoEnabler.h:70
void sendEnableRequest(const DtUUID &uuid)
Sends DtSetSpotReportingRequestEnableToGuiIfOff to the given entity.
void initialize(bool enabled)
Arm or disarm the auto-enabler. When disabled, all other calls are no-ops.
void shutdown()
Clear internal state. Must be called before the remote controller is destroyed.
std::shared_ptr< DtWebServerObject > DtWebServerObjectPtr
Definition: webServerObject.h:90
bool myEnabled
Definition: spotReportAutoEnabler.h:67