class

Config

Module
Core
Header
#include "Core/Config.h"
Namespace
Mowo

Constructors

SignatureNameDescription
Config() = defaultConfig
~Config() = default~Config
Config(const Config&) = deleteConfig
Config(Config&&) = defaultConfig

Public functions

ReturnsNameDescription
Config&operator=
Config&operator=
boolLoad
boolSaveAlso updates the stored filepath.
boolSave
boolParse
boolOverlayMerge another config file into this one without clearing.
voidOverlayDocumentOverlay from a document already in memory — an INI hierarchy combined from several layer files has no single path to name.
boolIsLoaded
const std::string&GetFilePath
voidSetFilePathRecords where a later Save() should land without writing anything now.
TGetValue
std::optional<T>GetOptional
std::vector<T>GetArray
voidSetValueSupports dotted keys like "section.key".
voidSetArray
voidSetOverlayValueA value from a LOWER tier (the project's Config/Engine.ini under the per-user file): readable like any other, never written by Save.
boolIsOverlayKey
boolHasKey
boolRemoveKey
std::vector<std::string>GetKeysEmpty section means root.
boolHasSection
MdfDocument&GetDocument
const MdfDocument&GetDocument
MdfNode&GetRootNodeCreates the node if needed.
const MdfNode*GetRootNode

Function details

Config

C++
Config() = default

~Config

C++
~Config() = default

Config

C++
Config(const Config&) = delete

Config

C++
Config(Config&&) = default

operator=

C++
Config& operator=(const Config&) = delete

operator=

C++
Config& operator=(Config&&) = default

Load

C++
bool Load(const std::string& filepath)

Save

C++
bool Save(const std::string& filepath)

Also updates the stored filepath.

Save

C++
bool Save()

Parse

C++
bool Parse(const std::string& mdfString)

Overlay

C++
bool Overlay(const std::string& filepath, bool overwriteExisting = true)

Merge another config file into this one without clearing. overwriteExisting=true — the file's values win (higher tier); false — only fills keys this config lacks (lower tier).

OverlayDocument

C++
void OverlayDocument(const MdfDocument& doc, bool overwriteExisting = true)

Overlay from a document already in memory — an INI hierarchy combined from several layer files has no single path to name.

IsLoaded

C++
bool IsLoaded() const

GetFilePath

C++
const std::string& GetFilePath() const

SetFilePath

C++
void SetFilePath(const std::string& filepath)

Records where a later Save() should land without writing anything now.

GetValue

C++
template<typename T> T GetValue(const std::string& key, const T& defaultValue = T{}) const

GetOptional

C++
template<typename T> std::optional<T> GetOptional(const std::string& key) const

GetArray

C++
template<typename T> std::vector<T> GetArray(const std::string& key) const

SetValue

C++
template<typename T> void SetValue(const std::string& key, const T& value)

Supports dotted keys like "section.key". A value set here belongs to THIS config and is saved with it.

SetArray

C++
template<typename T> void SetArray(const std::string& key, const std::vector<T>& values)

SetOverlayValue

C++
template<typename T> void SetOverlayValue(const std::string& key, const T& value)

A value from a LOWER tier (the project's Config/Engine.ini under the per-user file): readable like any other, never written by Save. The user file is what Save writes, and the project tier merged into the same document used to leak into it on the next save of anything — after which the user tier shadowed the project setting and changing it in Project Settings did nothing.

IsOverlayKey

C++
bool IsOverlayKey(const std::string& key) const

HasKey

C++
bool HasKey(const std::string& key) const

RemoveKey

C++
bool RemoveKey(const std::string& key)

GetKeys

C++
std::vector<std::string> GetKeys(const std::string& section = "") const

Empty section means root.

HasSection

C++
bool HasSection(const std::string& section) const

GetDocument

C++
MdfDocument& GetDocument()

GetDocument

C++
const MdfDocument& GetDocument() const

GetRootNode

C++
MdfNode& GetRootNode()

Creates the node if needed.

GetRootNode

C++
const MdfNode* GetRootNode() const
Generated from Core/Config.h via core.json · Nov 5, 2026Version 1.0.0