TConcertDataStoreResult

Wraps the weakly typed result of a Concert data store operation into a strongly typed result.

Windows
MacOS
Linux

References

Module

ConcertSyncCore

Header

/Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncCore/Source/ConcertSyncCore/Public/ConcertDataStoreMessages.h

Include

#include "ConcertDataStoreMessages.h"

Syntax

template<typename T>
class TConcertDataStoreResult

Remarks

Wraps the weakly typed result of a Concert data store operation into a strongly typed result. Type checking occurs during the transaction with the store and as long as the result is valid, the stored value can be read safely.

Constructors

Name Description

Public function

TConcertDataStoreResult()

Constructs a result containing the EConcertDataStoreResultCode::UnexpectedError code and no value.

Public function

TConcertDataStoreResult

(
    const FConcertDataStoreResult& InR...
)

Constructs a strongly typed result from a weakly typed one.

Public function

TConcertDataStoreResult

(
    FConcertDataStoreResult&& InResult
)

Constructs a strongly typed result from a weakly typed one.

Functions

Name Description

Public function Const

EConcertData...

 

GetCode()

Returns the data store result code for the operation.

Public function Const

T

 

GetValue()

Deserializes the stored value into type T.

Public function Const

bool

 

IsValid()

Returns true if the underlying value is valid.

Operators

Name Description

Public function Const

 

operator bool()

Returns true if the result hold a value that the value can be read.

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss