UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IPortalServiceLocator.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6
9
11{
12public:
13
28 virtual void Configure(const FString& ServiceName, const FWildcardString& ProductId, const FName& ServiceModule) = 0;
29
30public:
31
39 template<typename ServiceType>
40 TSharedPtr<ServiceType> GetService(const FString& ProductId = TEXT(""))
41 {
43 }
44
55 template<typename ServiceType>
56 TSharedRef<ServiceType> GetServiceRef(const FString& ProductId = TEXT(""))
57 {
58 return GetService<ServiceType>(ProductId).ToSharedRef();
59 }
60
61protected:
62
69 virtual TSharedPtr<IPortalService> GetService(const FString& ServiceName, const FString& ProductId) = 0;
70
71public:
72
75};
#define TEXT(x)
Definition Platform.h:1272
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition NameTypes.h:617
Definition WildcardString.h:18
Definition IPortalServiceLocator.h:11
virtual ~IPortalServiceLocator()
Definition IPortalServiceLocator.h:74
virtual void Configure(const FString &ServiceName, const FWildcardString &ProductId, const FName &ServiceModule)=0
TSharedRef< ServiceType > GetServiceRef(const FString &ProductId=TEXT(""))
Definition IPortalServiceLocator.h:56
virtual TSharedPtr< IPortalService > GetService(const FString &ServiceName, const FString &ProductId)=0
TSharedPtr< ServiceType > GetService(const FString &ProductId=TEXT(""))
Definition IPortalServiceLocator.h:40
Definition IPortalService.h:7
Definition SharedPointer.h:692
Definition SharedPointer.h:153
Definition UnrealTypeTraits.h:191