FSourceUri

URI container class used for referencing external sources.

Choose your operating system:

Windows

macOS

Linux

References

Module

ExternalSource

Header

/Engine/Plugins/Enterprise/DatasmithImporter/Source/ExternalSource/Public/SourceUri.h

Include

#include "SourceUri.h"

Syntax

class FSourceUri

Remarks

URI container class used for referencing external sources. TODO - A proper standardized version should be implemented in a Runtime/Core module to unify all URI implementations across the engine. For example, a URI implementation is provided in Plugins\Media\ElectraPlayer\Source\ElectraPlayerRuntime\Private\Runtime\Utilities\URI.h

Constructors

Name Description

Public function

FSourceUri()

Public function

FSourceUri

(
    const FString& InUri
)

Public function

FSourceUri

(
    const FString& InScheme,
    const FString& InPath
)

Public function

FSourceUri

(
    const FString& InScheme,
    const FString& InPath,
    const TContainer& QueryContainer
)

Functions

Name Description

Public function Static

FSourceUri

 

FromAssetData

(
    const FAssetData& AssetData
)

Try to get the FSourceUri registered in the AssetData.

Public function Static

FSourceUri

 

FromFilePath

(
    const FString& FilePath
)

Generate a FSourceUri from the given filepath.

Public function Static

FName

 

GetAssetDataTag()

Returns the Tag that should be used for registering the SourceUri of an asset in its corresponding FAssetData.

Public function Static

const FStrin...

 

GetFileScheme()

Return the scheme used for file URIs : "file"

Public function Const

FStringView

 

GetPath()

Return the path of the FSourceUri

Public function Const

FStringView

 

GetQuery()

Public function Const

TMap< FStrin...

 

GetQueryMap()

Public function Const

FStringView

 

GetScheme()

Public function Const

bool

 

HasScheme

(
    const FString& InScheme
)

Check if the FSourceUri has the provided scheme.

Public function Const

bool

 

IsValid()

Return if the FSourceUri is a properly structure valid uri.

Public function Const

const FStrin...

 

ToString()

Return the FSourceUri as a string.

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FSourceUri& Other
)

Public function Const

bool

 

operator==

(
    const FSourceUri& Other
)