JsonClassFactory Class

Definition

Line 13 of System.Json/JsonClassFactory.cm

Constructors & Destructor

static JsonClassFactory()

Member Functions

public void* CreateJsonClass(const String<uchar>& jsonClassName, JsonValue* value)
public static JsonClassFactory& Instance()
public void RegisterJsonClass(const String<uchar>& jsonClassName, JsonClassCreatorDelegate creator)

Member Variables

private HashMap<String<uchar>, JsonClassCreatorDelegate, Hasher<String<uchar>>, EqualTo<String<uchar>>> creatorMap
private static UniquePtr<JsonClassFactory> instance

Constructor& Destructor Details

JsonClassFactory Static Constructor

static JsonClassFactory()

Definition
Line 15 of System.Json/JsonClassFactory.cm


Member Function Details

CreateJsonClass Member Function

public void* CreateJsonClass(const String<uchar>& jsonClassName, JsonValue* value)

Definition
Line 26 of System.Json/JsonClassFactory.cm


Instance Static Member Function

public static JsonClassFactory& Instance()

Definition
Line 18 of System.Json/JsonClassFactory.cm


RegisterJsonClass Member Function

public void RegisterJsonClass(const String<uchar>& jsonClassName, JsonClassCreatorDelegate creator)

Definition
Line 22 of System.Json/JsonClassFactory.cm