A Demo Project for the UnrealEngineSDK
|
UCLASS(BlueprintType, Blueprintable) More...
#include <VaRestJsonValue.h>
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") | |
UVaRestJsonObject * | AsObject () |
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 |
UCLASS(BlueprintType, Blueprintable)
Blueprintable FJsonValue wrapper
Definition at line 36 of file VaRestJsonValue.h.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
protected |
Simple error logger
Definition at line 207 of file VaRestJsonValue.cpp.
|
private |
TSharedPtr< FJsonValue > & UVaRestJsonValue::GetRootValue | ( | ) |
Get the root Json value
Definition at line 18 of file VaRestJsonValue.cpp.
|
BlueprintPure |
UFUNCTION(BlueprintPure, Category = "VaRest|Json")
Get type of Json value (Enum)
Definition at line 31 of file VaRestJsonValue.cpp.
|
BlueprintPure |
UFUNCTION(BlueprintPure, Category = "VaRest|Json")
Get type of Json value (String)
Definition at line 66 of file VaRestJsonValue.cpp.
|
BlueprintPure |
UFUNCTION(BlueprintPure, Category = "VaRest|Json")
Returns true if this value is a 'null'
Definition at line 101 of file VaRestJsonValue.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Json")
Reset all internal data
Definition at line 13 of file VaRestJsonValue.cpp.
void UVaRestJsonValue::SetRootValue | ( | TSharedPtr< FJsonValue > & | JsonValue | ) |
Set the root Json value
Definition at line 23 of file VaRestJsonValue.cpp.
|
private |
Internal JSON data
Definition at line 133 of file VaRestJsonValue.h.