A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
UVaRestJsonValue Class ReferenceBlueprintTypeBlueprintable

UCLASS(BlueprintType, Blueprintable) More...

#include <VaRestJsonValue.h>

Inheritance diagram for UVaRestJsonValue:
[legend]

Public Member Functions

TArray< UVaRestJsonValue * > AsArray () const
 UFUNCTION(BlueprintCallable, Category = "VaRest|Json")
 
bool AsBool () const
 UFUNCTION(BlueprintPure, Category = "VaRest|Json")
 
int32 AsInt32 () const
 UFUNCTION(BlueprintPure, Category = "VaRest|Json")
 
int64 AsInt64 () const
 UFUNCTION(BlueprintPure, Category = "VaRest|Json")
 
float AsNumber () const
 UFUNCTION(BlueprintPure, Category = "VaRest|Json")
 
UVaRestJsonObjectAsObject ()
 UFUNCTION(BlueprintCallable, Category = "VaRest|Json")
 
FString AsString () const
 UFUNCTION(BlueprintPure, Category = "VaRest|Json")
 
TSharedPtr< FJsonValue > & GetRootValue ()
 
EVaJson GetType () const
 UFUNCTION(BlueprintPure, Category = "VaRest|Json")
 
FString GetTypeString () const
 UFUNCTION(BlueprintPure, Category = "VaRest|Json")
 
bool IsNull () const
 UFUNCTION(BlueprintPure, Category = "VaRest|Json")
 
void Reset ()
 UFUNCTION(BlueprintCallable, Category = "VaRest|Json")
 
void SetRootValue (TSharedPtr< FJsonValue > &JsonValue)
 

Protected Member Functions

void ErrorMessage (const FString &InType) const
 

Private Member Functions

 GENERATED_UCLASS_BODY ()
 

Private Attributes

TSharedPtr< FJsonValue > JsonVal
 

Detailed Description

UCLASS(BlueprintType, Blueprintable)

Blueprintable FJsonValue wrapper

Definition at line 36 of file VaRestJsonValue.h.

Member Function Documentation

◆ AsArray()

TArray< UVaRestJsonValue * > UVaRestJsonValue::AsArray ( ) const
BlueprintCallable

UFUNCTION(BlueprintCallable, Category = "VaRest|Json")

Returns this value as an array, throwing an error if this is not an Json Array

Definition at line 166 of file VaRestJsonValue.cpp.

Here is the call graph for this function:

◆ AsBool()

bool UVaRestJsonValue::AsBool ( ) const
BlueprintPure

UFUNCTION(BlueprintPure, Category = "VaRest|Json")

Returns this value as a boolean, throwing an error if this is not an Json Bool

Definition at line 155 of file VaRestJsonValue.cpp.

Here is the call graph for this function:

◆ AsInt32()

int32 UVaRestJsonValue::AsInt32 ( ) const
BlueprintPure

UFUNCTION(BlueprintPure, Category = "VaRest|Json")

Returns this value as a int32, throwing an error if this is not an Json Number

Definition at line 122 of file VaRestJsonValue.cpp.

Here is the call graph for this function:

◆ AsInt64()

int64 UVaRestJsonValue::AsInt64 ( ) const
BlueprintPure

UFUNCTION(BlueprintPure, Category = "VaRest|Json")

Returns this value as a int64, throwing an error if this is not an Json Number

Definition at line 133 of file VaRestJsonValue.cpp.

Here is the call graph for this function:

◆ AsNumber()

float UVaRestJsonValue::AsNumber ( ) const
BlueprintPure

UFUNCTION(BlueprintPure, Category = "VaRest|Json")

Returns this value as a double, throwing an error if this is not an Json Number Attn.!! float used instead of double to make the function blueprintable!

Definition at line 111 of file VaRestJsonValue.cpp.

Here is the call graph for this function:

◆ AsObject()

UVaRestJsonObject * UVaRestJsonValue::AsObject ( )
BlueprintCallable

UFUNCTION(BlueprintCallable, Category = "VaRest|Json")

Returns this value as an object, throwing an error if this is not an Json Object

Definition at line 188 of file VaRestJsonValue.cpp.

Here is the call graph for this function:

◆ AsString()

FString UVaRestJsonValue::AsString ( ) const
BlueprintPure

UFUNCTION(BlueprintPure, Category = "VaRest|Json")

Returns this value as a string, throwing an error if this is not an Json String

Definition at line 144 of file VaRestJsonValue.cpp.

Here is the call graph for this function:

◆ ErrorMessage()

void UVaRestJsonValue::ErrorMessage ( const FString & InType) const
protected

Simple error logger

Definition at line 207 of file VaRestJsonValue.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GENERATED_UCLASS_BODY()

UVaRestJsonValue::GENERATED_UCLASS_BODY ( )
private

◆ GetRootValue()

TSharedPtr< FJsonValue > & UVaRestJsonValue::GetRootValue ( )

Get the root Json value

Definition at line 18 of file VaRestJsonValue.cpp.

Here is the caller graph for this function:

◆ GetType()

EVaJson UVaRestJsonValue::GetType ( ) const
BlueprintPure

UFUNCTION(BlueprintPure, Category = "VaRest|Json")

Get type of Json value (Enum)

Definition at line 31 of file VaRestJsonValue.cpp.

Here is the caller graph for this function:

◆ GetTypeString()

FString UVaRestJsonValue::GetTypeString ( ) const
BlueprintPure

UFUNCTION(BlueprintPure, Category = "VaRest|Json")

Get type of Json value (String)

Definition at line 66 of file VaRestJsonValue.cpp.

Here is the caller graph for this function:

◆ IsNull()

bool UVaRestJsonValue::IsNull ( ) const
BlueprintPure

UFUNCTION(BlueprintPure, Category = "VaRest|Json")

Returns true if this value is a 'null'

Definition at line 101 of file VaRestJsonValue.cpp.

◆ Reset()

void UVaRestJsonValue::Reset ( )
BlueprintCallable

UFUNCTION(BlueprintCallable, Category = "VaRest|Json")

Reset all internal data

Definition at line 13 of file VaRestJsonValue.cpp.

Here is the caller graph for this function:

◆ SetRootValue()

void UVaRestJsonValue::SetRootValue ( TSharedPtr< FJsonValue > & JsonValue)

Set the root Json value

Definition at line 23 of file VaRestJsonValue.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ JsonVal

TSharedPtr<FJsonValue> UVaRestJsonValue::JsonVal
private

Internal JSON data

Definition at line 133 of file VaRestJsonValue.h.


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