VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
roleSpotReportPerspectiveManager.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (c) 2026 MAK Technologies, Inc.
3  * All rights reserved.
4  ******************************************************************************/
5 
6 #pragma once
7 
8 #include <string>
9 #include <map>
10 #include <vector>
11 
12 struct DtRoleDefinition;
16 
25 {
26 public:
29 
32 
37  const std::vector<DtRoleDefinition>& roles,
38  const DtSubordinateResolver* resolver = nullptr);
39 
43 
46  DtSpotReportByForceAndUuidPerspective* perspectiveForRole(const std::string& roleName) const;
47 
48 private:
51  std::map<std::string, DtSpotReportByForceAndUuidPerspective*> myPerspectivesByRole;
52 };
The DtRemoteControlSpotReportManager class is used manage and keep track of spot reports. by spotter and who they have spotted. To get views on the manager use the DtRemoteControlSpotReportPerspective class It&#39;s a singleton instance, registered at the ScenarioManager.
Definition: remoteControlSpotReportManager.h:31
A spot report perspective that filters by spotter force type and/or spotter UUID. ...
Definition: spotReportByForceAndUuidPerspective.h:28
DtRoleDefinition — a named role with separate commanded, viewed, and overlay policies.
Definition: roleDefinitionStore.h:64
void rebuild(DtRemoteControlSpotReportManager &mgr, const std::vector< DtRoleDefinition > &roles, const DtSubordinateResolver *resolver=nullptr)
Tears down any existing perspectives and creates a new perspective for each role in roles that is con...
DtRoleSpotReportPerspectiveManager & operator=(const DtRoleSpotReportPerspectiveManager &)=delete
std::map< std::string, DtSpotReportByForceAndUuidPerspective * > myPerspectivesByRole
Non-owning pointers — lifetime is managed by DtRemoteControlSpotReportManager via deleteAndUnmanagePe...
Definition: roleSpotReportPerspectiveManager.h:51
DtRoleSpotReportPerspectiveManager — maintains one DtSpotReportByForceAndUuidPerspective per role tha...
Definition: roleSpotReportPerspectiveManager.h:24
DtSpotReportByForceAndUuidPerspective * perspectiveForRole(const std::string &roleName) const
Returns the perspective for roleName, or nullptr if the role has no configured contact-report filter...
Abstract interface for resolving subordinate relationships between entities.
Definition: subordinateResolver.h:12
void clear(DtRemoteControlSpotReportManager &mgr)
Removes all managed perspectives from mgr and clears the internal map. Must be called on the VRF upda...

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)