Navigation
API > API/Plugins > API/Plugins/GlobalConfigurationDataCore
The Router is a class that is used to lookup data from various systems in an order determined by their priority Data should be stored as string values. For primitive types it will use console variable parsing rules. For complex types the data should be stored in a Json format.
Routers auto register themselves, so just make sure they exist somewhere and that's it.
| Name | IGlobalConfigurationRouter |
| Type | class |
| Header File | /Engine/Plugins/Experimental/GlobalConfigurationData/Source/GlobalConfigurationDataCore/Public/GlobalConfigurationRouter.h |
| Include Path | #include "GlobalConfigurationRouter.h" |
Syntax
class IGlobalConfigurationRouter
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
IGlobalConfigurationRouter
(
FString&& InRouterName, |
GlobalConfigurationRouter.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IGlobalConfigurationRouter() |
GlobalConfigurationRouter.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Priority | int32 | Arbitrary value used for sorting. | GlobalConfigurationRouter.h | |
| RouterName | FString | GlobalConfigurationRouter.h |
Functions
Public
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void GetAllDataFromRouter
(
TMap< FString, TSharedRef< FJsonValue > >& DataOut |
GlobalConfigurationRouter.h | ||
TSharedPtr< FJsonValue > TryGetDataFromRouter
(
const FString& EntryName |
GlobalConfigurationRouter.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool GetAllowFlattenJsonObject() |
If enabled allow routers to flatten json objects to a single value. The core system will allow field name references to accept single value returns. | GlobalConfigurationRouter.h | |
static void GetAllRegisteredData
(
TMap< FString, TMap< FString, TSharedRef< FJsonValue > > >& DataOut |
Map of Entry Name to a map of Value by Router Name. | GlobalConfigurationRouter.h | |
static TSharedPtr< FJsonValue > TryGetData
(
const FString& EntryName |
GlobalConfigurationRouter.h | ||
static TSharedPtr< FJsonValue > TryParseString
(
const FStringView& String |
GlobalConfigurationRouter.h | ||
static FString TryPrintString
(
TSharedPtr< FJsonValue > Value |
GlobalConfigurationRouter.h |