VR-Engage  2.3
Loading...
Searching...
No Matches
makVre::DtRoleAssignment Struct Reference

Detailed Description

Contains information about a single role on an entity and its assignment status, including both confirmed station assignments and any pending changes. This structure is returned by getRoleAssignments() to provide the UI with all information needed to display a role's state.

Example Usage
std::vector<DtRoleAssignment> assignments = tracker.getRoleAssignments(entityUUID, roles);
for (const auto& assignment : assignments)
{
if (assignment.myHasConflict)
{
showWarningIcon(assignment.myRoleName);
}
}

#include <vreAssignmentTracker.h>

Public Attributes

std::string myRoleName
 
std::vector< std::string > myStationIds
 
std::vector< std::string > myStationNames
 
std::vector< bool > myStationSpectatorFlags
 
std::vector< bool > myStationPendingFlags
 
bool myHasConflict = false
 

Member Data Documentation

◆ myRoleName

std::string makVre::DtRoleAssignment::myRoleName

The role name (e.g., "driver", "gunner", "commander")

◆ myStationIds

std::vector<std::string> makVre::DtRoleAssignment::myStationIds

Station IDs currently assigned to this role (confirmed state)

May contain multiple IDs if multiple stations were assigned to the same role directly at VRE stations (bypassing the Manager Panel). Empty if the role is unassigned.

◆ myStationNames

std::vector<std::string> makVre::DtRoleAssignment::myStationNames

Station names for display (parallel to myStationIds)

◆ myStationSpectatorFlags

std::vector<bool> makVre::DtRoleAssignment::myStationSpectatorFlags

Whether each station is a spectator (parallel to myStationIds)

◆ myStationPendingFlags

std::vector<bool> makVre::DtRoleAssignment::myStationPendingFlags

Whether each station is a pending assignment (parallel to myStationIds)

True for stations that have been assigned via the Manager Panel but not yet submitted. False for confirmed stations from VRE status updates.

◆ myHasConflict

bool makVre::DtRoleAssignment::myHasConflict = false

True if 2+ non-spectator stations are on this role (unresolved conflict)

A conflict exists when two or more stations assigned to the same role are not in spectator mode. This includes both confirmed and pending stations. The Submit button is disabled until all conflicts are resolved.


The documentation for this struct was generated from the following file: