![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ITraceController.h>
Inheritance diagram for ITraceController:Public Types | |
| typedef TFunction< void(const FTraceStatus &, ITraceControllerCommands &)> | FCallback |
Public Member Functions | |
| virtual | ~ITraceController ()=default |
| virtual void | SendDiscoveryRequest (const FGuid &SessionId, const FGuid &InstanceId) const =0 |
| virtual void | SendDiscoveryRequest ()=0 |
| virtual void | SendStatusUpdateRequest ()=0 |
| virtual void | SendChannelUpdateRequest ()=0 |
| virtual void | SendSettingsUpdateRequest ()=0 |
| DECLARE_EVENT_ThreeParams (ITraceController, FStatusRecievedEvent, const FTraceStatus &, FTraceStatus::EUpdateType, ITraceControllerCommands &) | |
| virtual FStatusRecievedEvent & | OnStatusReceived ()=0 |
| virtual bool | HasAvailableInstance (const FGuid &InstanceId)=0 |
| virtual void | WithInstance (FGuid InstanceId, FCallback Func)=0 |
Static Public Member Functions | |
| static SESSIONSERVICES_API TSharedPtr< ITraceController > | Create (TSharedPtr< class IMessageBus > &MessageBus) |
Interface for monitoring known trace service instances. ITraceController is a singleton which tracks all known instances and provides callback for status updates and interfaces to issue commands to one or more remote instances.
Example usage:
|
virtualdefault |
|
static |
Create an instance using a custom message bus
| MessageBus | Message bus the controller will use |
| ITraceController::DECLARE_EVENT_ThreeParams | ( | ITraceController | , |
| FStatusRecievedEvent | , | ||
| const FTraceStatus & | , | ||
| FTraceStatus::EUpdateType | , | ||
| ITraceControllerCommands & | |||
| ) |
Generic event for updates of status
Return true if an instance with the provided Id exists and has been discovered.
|
pure virtual |
Event triggered whenever status is updated for any known session. A reference to the status and what has changed is provided along with a structure to issue commands.
Request update of channel status from all sessions and instances.
Request to discover all instances
|
pure virtual |
Request to discover a specific instance
| SessionId | Session id of the instance |
| InstanceId | Instance id |
Request update of setting state from all sessions and instances.
Request update of the status from all sessions and instances.
Execute a function on a specific session.
| InstanceId | InstanceId to issue command to |
| Func | Functor to execute |