#include "../parser/toml_parser.hpp"#include <iostream>#include <string_view>#include <unordered_map>Go to the source code of this file.
Classes | |
| struct | GlobalProps | 
| Struct to hold global property settings.  More... | |
Functions | |
| auto | parseProps () -> GlobalProps | 
| Parses the global properties from the TOML configuration.   | |
| auto parseProps | ( | ) | -> GlobalProps | 
Parses the global properties from the TOML configuration.
This function reads the global property configurations from the TOML file and returns a populated GlobalProps struct. Unlike parseKeybinds, this function will warn on errors but continue execution.
Reports a warning for invalid property values.
This lambda function prints a warning message when an invalid property is detected, but allows the program to continue with a default value.
| field | The field in which the invalid value was found. | 
| value | The value that was invalid. | 
| default_val | The default value that will be used instead. | 
Handles boolean property parsing with error checking.
This lambda function safely converts string values to booleans, providing appropriate warnings for invalid values.
| value | The string value to convert. | 
| field | The field name for error reporting. | 
| default_val | The default boolean value to use if parsing fails. |