![]() |
VR-Forces Developer's Guide
|
DtRoleSpotReportPerspectiveManager — maintains one DtSpotReportByForceAndUuidPerspective per role that is configured to receive contact reports.
A role "wants contact reports" when its viewed.contactsFromForce or viewed.contactsFromUUID field is non-empty.
All methods must be called on the VRF update thread.
Public Member Functions | |
| DtRoleSpotReportPerspectiveManager ()=default | |
| ~DtRoleSpotReportPerspectiveManager ()=default | |
| DtRoleSpotReportPerspectiveManager (const DtRoleSpotReportPerspectiveManager &)=delete | |
| DtRoleSpotReportPerspectiveManager & | operator= (const DtRoleSpotReportPerspectiveManager &)=delete |
| void | rebuild (DtRemoteControlSpotReportManager &mgr, const std::vector< DtRoleDefinition > &roles, const DtSubordinateResolver *resolver=nullptr) |
| void | clear (DtRemoteControlSpotReportManager &mgr) |
| DtSpotReportByForceAndUuidPerspective * | perspectiveForRole (const std::string &roleName) const |
Private Attributes | |
| std::map< std::string, DtSpotReportByForceAndUuidPerspective * > | myPerspectivesByRole |
|
default |
|
default |
|
delete |
|
delete |
| void DtRoleSpotReportPerspectiveManager::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 configured to receive contact reports. Must be called on the VRF update thread.
| void DtRoleSpotReportPerspectiveManager::clear | ( | DtRemoteControlSpotReportManager & | mgr | ) |
Removes all managed perspectives from mgr and clears the internal map. Must be called on the VRF update thread before mgr is destroyed.
| DtSpotReportByForceAndUuidPerspective* DtRoleSpotReportPerspectiveManager::perspectiveForRole | ( | const std::string & | roleName | ) | const |
Returns the perspective for roleName, or nullptr if the role has no configured contact-report filter.
|
private |
Non-owning pointers — lifetime is managed by DtRemoteControlSpotReportManager via deleteAndUnmanagePerspective().