CARLA
Macros | Functions
CarlaSettings.cpp File Reference
#include "Carla.h"
#include "Carla/Settings/CarlaSettings.h"
#include "Carla/Util/IniFile.h"
#include "CommandLine.h"
#include "Engine/DirectionalLight.h"
#include "Engine/Engine.h"
#include "Engine/PointLight.h"
#include "Engine/PostProcessVolume.h"
#include "Engine/StaticMesh.h"
#include "Kismet/GameplayStatics.h"
#include "Materials/MaterialInstance.h"
#include "Package.h"
#include "UnrealMathUtility.h"
+ Include dependency graph for CarlaSettings.cpp:

Go to the source code of this file.

Macros

#define S_CARLA_QUALITYSETTINGS   TEXT("CARLA/QualitySettings")
 
#define S_CARLA_SERVER   TEXT("CARLA/Server")
 

Functions

static bool GetSettingsFilePathFromCommandLine (FString &Value)
 
static void LoadSettingsFromConfig (const FIniFile &ConfigFile, UCarlaSettings &Settings, const bool bLoadCarlaServerSection)
 
static EQualityLevel QualityLevelFromString (const FString &SQualitySettingsLevel, const EQualityLevel Default=EQualityLevel::INVALID)
 
FString QualityLevelToString (EQualityLevel QualitySettingsLevel)
 

Macro Definition Documentation

◆ S_CARLA_QUALITYSETTINGS

#define S_CARLA_QUALITYSETTINGS   TEXT("CARLA/QualitySettings")

Definition at line 25 of file CarlaSettings.cpp.

Referenced by LoadSettingsFromConfig(), and UCarlaSettings::LogSettings().

◆ S_CARLA_SERVER

#define S_CARLA_SERVER   TEXT("CARLA/Server")

Definition at line 24 of file CarlaSettings.cpp.

Referenced by LoadSettingsFromConfig(), and UCarlaSettings::LogSettings().

Function Documentation

◆ GetSettingsFilePathFromCommandLine()

static bool GetSettingsFilePathFromCommandLine ( FString &  Value)
static

Definition at line 90 of file CarlaSettings.cpp.

References carla::client::detail::Get().

Referenced by UCarlaSettings::LoadSettings().

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

◆ LoadSettingsFromConfig()

static void LoadSettingsFromConfig ( const FIniFile ConfigFile,
UCarlaSettings Settings,
const bool  bLoadCarlaServerSection 
)
static

Definition at line 63 of file CarlaSettings.cpp.

References UCarlaSettings::bDisableRendering, UCarlaSettings::bSynchronousMode, FIniFile::GetBool(), FIniFile::GetInt(), FIniFile::GetString(), UCarlaSettings::PrimaryIP, UCarlaSettings::PrimaryPort, QualityLevelFromString(), UCarlaSettings::RPCPort, S_CARLA_QUALITYSETTINGS, S_CARLA_SERVER, UCarlaSettings::SecondaryPort, UCarlaSettings::SetQualityLevel(), and UCarlaSettings::StreamingPort.

Referenced by UCarlaSettings::LoadSettingsFromFile(), and UCarlaSettings::LoadSettingsFromString().

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

◆ QualityLevelFromString()

static EQualityLevel QualityLevelFromString ( const FString &  SQualitySettingsLevel,
const EQualityLevel  Default = EQualityLevel::INVALID 
)
static

Definition at line 38 of file CarlaSettings.cpp.

References Epic, and Low.

Referenced by UCarlaSettings::LoadSettings(), and LoadSettingsFromConfig().

+ Here is the caller graph for this function:

◆ QualityLevelToString()

FString QualityLevelToString ( EQualityLevel  QualitySettingsLevel)

Definition at line 53 of file CarlaSettings.cpp.

Referenced by UCarlaSettings::LogSettings().

+ Here is the caller graph for this function: