UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TJsonReader< CharType > Class Template Reference

#include <JsonReader.h>

Public Types

using StoredStringType = std::conditional_t< std::is_same_v< CharType, ANSICHAR >, FUtf8String, TString< CharType > >
 
using StoredCharType = TElementType_T< StoredStringType >
 
using ValueAsStringReturnType = std::conditional_t< std::is_same_v< StoredStringType, FString >, const FString &, FString >
 

Public Member Functions

virtual ~TJsonReader ()
 
bool ReadNext (EJsonNotation &Notation)
 
bool SkipObject ()
 
bool SkipArray ()
 
virtual const FString & GetIdentifier () const
 
virtual ValueAsStringReturnType GetValueAsString () const
 
virtual const StoredStringTypeGetInternalValueAsString () const
 
virtual StoredStringType StealInternalValueAsString ()
 
double GetValueAsNumber () const
 
const StoredStringTypeGetValueAsNumberString () const
 
bool GetValueAsBoolean () const
 
const FString & GetErrorMessage () const
 
const uint32 GetLineNumber () const
 
const uint32 GetCharacterNumber () const
 

Static Public Member Functions

static TSharedRef< TJsonReader< CharType > > Create (FArchive *const Stream)
 

Protected Member Functions

 TJsonReader ()
 
 TJsonReader (FArchive *InStream)
 
bool Serialize (void *V, int64 Length)
 
template<typename Type >
void InlineCombineSurrogates (Type &String)
 

Protected Attributes

TArray< EJsonParseState
 
EJsonToken CurrentToken
 
FArchiveStream
 
FString Identifier
 
FString ErrorMessage
 
StoredStringType StringValue
 
double NumberValue
 
uint32 LineNumber
 
uint32 CharacterNumber
 
bool BoolValue
 
bool FinishedReadingRootObject
 

Member Typedef Documentation

◆ StoredCharType

template<class CharType = TCHAR>
using TJsonReader< CharType >::StoredCharType = TElementType_T<StoredStringType>

◆ StoredStringType

template<class CharType = TCHAR>
using TJsonReader< CharType >::StoredStringType = std::conditional_t<std::is_same_v<CharType, ANSICHAR>, FUtf8String, TString<CharType> >

◆ ValueAsStringReturnType

template<class CharType = TCHAR>
using TJsonReader< CharType >::ValueAsStringReturnType = std::conditional_t<std::is_same_v<StoredStringType, FString>, const FString&, FString>

Constructor & Destructor Documentation

◆ ~TJsonReader()

template<class CharType = TCHAR>
virtual TJsonReader< CharType >::~TJsonReader ( )
inlinevirtual

◆ TJsonReader() [1/2]

template<class CharType = TCHAR>
TJsonReader< CharType >::TJsonReader ( )
inlineprotected

Hidden default constructor.

◆ TJsonReader() [2/2]

template<class CharType = TCHAR>
TJsonReader< CharType >::TJsonReader ( FArchive InStream)
inlineexplicitprotected

Creates and initializes a new instance with the given input.

Parameters
InStreamAn archive containing the input.

Member Function Documentation

◆ Create()

template<class CharType = TCHAR>
static TSharedRef< TJsonReader< CharType > > TJsonReader< CharType >::Create ( FArchive *const  Stream)
inlinestatic

◆ GetCharacterNumber()

template<class CharType = TCHAR>
const uint32 TJsonReader< CharType >::GetCharacterNumber ( ) const
inline

◆ GetErrorMessage()

template<class CharType = TCHAR>
const FString & TJsonReader< CharType >::GetErrorMessage ( ) const
inline

◆ GetIdentifier()

template<class CharType = TCHAR>
virtual const FString & TJsonReader< CharType >::GetIdentifier ( ) const
inlinevirtual

◆ GetInternalValueAsString()

template<class CharType = TCHAR>
virtual const StoredStringType & TJsonReader< CharType >::GetInternalValueAsString ( ) const
inlinevirtual

◆ GetLineNumber()

template<class CharType = TCHAR>
const uint32 TJsonReader< CharType >::GetLineNumber ( ) const
inline

◆ GetValueAsBoolean()

template<class CharType = TCHAR>
bool TJsonReader< CharType >::GetValueAsBoolean ( ) const
inline

◆ GetValueAsNumber()

template<class CharType = TCHAR>
double TJsonReader< CharType >::GetValueAsNumber ( ) const
inline

◆ GetValueAsNumberString()

template<class CharType = TCHAR>
const StoredStringType & TJsonReader< CharType >::GetValueAsNumberString ( ) const
inline

◆ GetValueAsString()

template<class CharType = TCHAR>
virtual ValueAsStringReturnType TJsonReader< CharType >::GetValueAsString ( ) const
inlinevirtual

◆ InlineCombineSurrogates()

template<class CharType = TCHAR>
template<typename Type >
void TJsonReader< CharType >::InlineCombineSurrogates ( Type &  String)
inlineprotected

◆ ReadNext()

template<class CharType = TCHAR>
bool TJsonReader< CharType >::ReadNext ( EJsonNotation Notation)
inline

◆ Serialize()

template<class CharType = TCHAR>
bool TJsonReader< CharType >::Serialize ( void V,
int64  Length 
)
inlineprotected

◆ SkipArray()

template<class CharType = TCHAR>
bool TJsonReader< CharType >::SkipArray ( )
inline

◆ SkipObject()

template<class CharType = TCHAR>
bool TJsonReader< CharType >::SkipObject ( )
inline

◆ StealInternalValueAsString()

template<class CharType = TCHAR>
virtual StoredStringType TJsonReader< CharType >::StealInternalValueAsString ( )
inlinevirtual

Member Data Documentation

◆ BoolValue

template<class CharType = TCHAR>
bool TJsonReader< CharType >::BoolValue
protected

◆ CharacterNumber

template<class CharType = TCHAR>
uint32 TJsonReader< CharType >::CharacterNumber
protected

◆ CurrentToken

template<class CharType = TCHAR>
EJsonToken TJsonReader< CharType >::CurrentToken
protected

◆ ErrorMessage

template<class CharType = TCHAR>
FString TJsonReader< CharType >::ErrorMessage
protected

◆ FinishedReadingRootObject

template<class CharType = TCHAR>
bool TJsonReader< CharType >::FinishedReadingRootObject
protected

◆ Identifier

template<class CharType = TCHAR>
FString TJsonReader< CharType >::Identifier
protected

◆ LineNumber

template<class CharType = TCHAR>
uint32 TJsonReader< CharType >::LineNumber
protected

◆ NumberValue

template<class CharType = TCHAR>
double TJsonReader< CharType >::NumberValue
protected

◆ ParseState

template<class CharType = TCHAR>
TArray<EJson> TJsonReader< CharType >::ParseState
protected

◆ Stream

template<class CharType = TCHAR>
FArchive* TJsonReader< CharType >::Stream
protected

◆ StringValue

template<class CharType = TCHAR>
StoredStringType TJsonReader< CharType >::StringValue
protected

The documentation for this class was generated from the following file: