17#include <vrfutil/rwUUID.h>
18#include <vlpi/simulationAddress.h>
VreAppStatusMap myVreAppStatusMap
Map of all known VREngage applications.
Definition vreListener.h:232
VreAppStatusCallbackList myVreAppChangedCbList
List of callbacks for application status changes.
Definition vreListener.h:241
virtual void removeVreAppChangedCallback(DtVreAppStatusCallbackFcn fcn, void *usrData)
Unregisters a callback for VREngage application status changes.
virtual void removeVreAppRemovedCallback(DtVreAppStatusCallbackFcn fcn, void *usrData)
Unregisters a callback for VREngage application removal.
virtual void removeVreAppAddedCallback(DtVreAppStatusCallbackFcn fcn, void *usrData)
Unregisters a callback for new VREngage application discovery.
virtual void setTimeoutInterval(int timeoutInterval)
Sets the timeout interval for heartbeating VREngage applications.
makVrv::DtDe & myDe
Reference to the distributed environment.
Definition vreListener.h:227
virtual void doTimeouts()
Processes timeouts for inactive applications.
DtTime myLastTimeoutCheck
Timestamp of the last timeout check.
Definition vreListener.h:244
VreAppStatusCallbackList myVreAppRemovedCbList
List of callbacks for application removal.
Definition vreListener.h:238
virtual void invokeCallbacks(const VreAppStatusCallbackList &cbList, const std::string &id) const
Invokes all callbacks in a callback list.
virtual void removeVreApplication(const std::string &id)
Removes a VREngage application from tracking.
virtual void addVreAppRemovedCallback(DtVreAppStatusCallbackFcn fcn, void *usrData)
Registers a callback for VREngage application removal.
virtual void addVreAppChangedCallback(DtVreAppStatusCallbackFcn fcn, void *usrData)
Registers a callback for VREngage application status changes.
int myTimeoutInterval
Timeout interval in seconds.
Definition vreListener.h:251
virtual void processStatusMessage(DtSimMessage *msg)
Processes a status message from a VREngage application.
virtual void addVreAppAddedCallback(DtVreAppStatusCallbackFcn fcn, void *usrData)
Registers a callback for new VREngage application discovery.
virtual int timeoutInterval()
Gets the current timeout interval.
DtVreStatusListener(const DtVreStatusListener &orig)=delete
Copy construction is disabled.
virtual ~DtVreStatusListener()
Destructor.
VreAppStatusCallbackList myVreAppAddedCbList
List of callbacks for application discovery.
Definition vreListener.h:235
DtVreStatusListener & operator=(const DtVreStatusListener &orig)=delete
Copy assignment is disabled.
virtual VreAppStatus lookupVreApp(const std::string &id)
Looks up a VREngage application by ID.
virtual const VreAppStatusMap & vreAppStatusMap() const
Gets the map of all known VREngage applications.
DtVreStatusListener(makVrv::DtDe &de)
Constructor.
Export macros for the VREngage Manager library.
#define VREMANAGER_DLL
Platform-specific export/import macro for VREngage Manager library.
Definition export.h:28
Definition appLauncherComponent.h:28
makVrv::DtDe * de()
Gets the display element pointer used by the plugin.
Structure to store callback function and user data.
Definition vreListener.h:82
DtVreAppStatusCallbackFcn myFcn
The callback function.
Definition vreListener.h:84
void * myUsrData
User-defined data to pass to the callback.
Definition vreListener.h:87
Structure to track the status of a VREngage application.
Definition vreListener.h:41
DtTime myLastUpdateTime
Timestamp of the last status update.
Definition vreListener.h:75
std::string myRoleName
Engaged role name for the player.
Definition vreListener.h:65
DtUUID myUUID
UUID of the entity being controlled.
Definition vreListener.h:58
bool mySpectatorMode
Flag indicating whether player is in spectator mode.
Definition vreListener.h:70
std::string myStationId
Station identity string for the VREngage application.
Definition vreListener.h:47
std::string myPlayerName
Name of the player using the VREngage application.
Definition vreListener.h:52
std::map< std::string, VreAppStatus > VreAppStatusMap
Map of VREngage application IDs to status structures.
Definition vreListener.h:94
std::vector< DtCallbackInfo > VreAppStatusCallbackList
List of callback information structures.
Definition vreListener.h:97
std::vector< VreAppStatus > VreAppStatusList
List of VREngage application status structures.
Definition vreListener.h:91
void(*)(const std::string &id, void *usr) DtVreAppStatusCallbackFcn
Function pointer type for VREngage application status callbacks.
Definition vreListener.h:34