You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
33 lines
976 B
C
33 lines
976 B
C
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "Containers/Map.h"
|
||
|
|
#include "Containers/StringFwd.h"
|
||
|
|
#include "Containers/UnrealString.h"
|
||
|
|
|
||
|
|
class SOURCECONTROL_API FSourceControlInitSettings
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
enum class EBehavior
|
||
|
|
{
|
||
|
|
/** All existing settings will be overridden via the contents of FSourceControlInitSettings. Settings that are not found will be reset to default states */
|
||
|
|
OverrideAll,
|
||
|
|
/** Only the settings found in FSourceControlInitSettings will be overriden. Settings not found will be left with their current values. */
|
||
|
|
OverrideExisting,
|
||
|
|
};
|
||
|
|
|
||
|
|
FSourceControlInitSettings(EBehavior Behavior);
|
||
|
|
~FSourceControlInitSettings() = default;
|
||
|
|
|
||
|
|
void AddSetting(FStringView SettingName, FStringView SettingValue);
|
||
|
|
void OverrideSetting(FStringView SettingName, FString& InOutSettingValue);
|
||
|
|
|
||
|
|
bool HasOverrides() const;
|
||
|
|
bool IsOverridden(FStringView SettingName) const;
|
||
|
|
private:
|
||
|
|
EBehavior Behavior;
|
||
|
|
|
||
|
|
TMap<FString, FString> Settings;
|
||
|
|
};
|