17#include <vrfutil/rwUUID.h>
18#include <vlpi/simulationAddress.h>
53 DtString myPlayerName;
65 DtString myStationName;
75 DtTime myLastUpdateTime;
VreAppStatusMap myVreAppStatusMap
Map of all known VREngage applications.
Definition vreListener.h:234
VreAppStatusCallbackList myVreAppChangedCbList
List of callbacks for application status changes.
Definition vreListener.h:243
virtual void invokeCallbacks(const VreAppStatusCallbackList &cbList, unsigned long id) const
Invokes all callbacks in a callback list.
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:229
virtual void doTimeouts()
Processes timeouts for inactive applications.
DtTime myLastTimeoutCheck
Timestamp of the last timeout check.
Definition vreListener.h:246
VreAppStatusCallbackList myVreAppRemovedCbList
List of callbacks for application removal.
Definition vreListener.h:240
virtual void removeVreApplication(unsigned long 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 milliseconds.
Definition vreListener.h:252
DtVreStatusListener & operator=(const DtVreStatusListener &orig)
Assignment operator (not implemented)
virtual VreAppStatus lookupVreApp(unsigned long id)
Looks up a VREngage application by ID.
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)
Copy constructor (not implemented)
virtual ~DtVreStatusListener()
Destructor.
VreAppStatusCallbackList myVreAppAddedCbList
List of callbacks for application discovery.
Definition vreListener.h:237
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
void(*)(unsigned long id, void *usr) DtVreAppStatusCallbackFcn
Function pointer type for VREngage application status callbacks.
Definition vreListener.h:30
struct VreAppStatus { DtU64 myId; DtString myName; DtString myPlayerName; DtString myUUID; DtString myStationName; bool mySpectatorMode; DtTime myLastUpdateTime;} VreAppStatus
Structure to track the status of a VREngage application.
Definition vreListener.h:36
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
std::map< unsigned long, VreAppStatus > VreAppStatusMap
Map of VREngage application IDs to status structures.
Definition vreListener.h:94