Validate config

This commit is contained in:
2025-08-18 14:13:54 -04:00
parent 8e00e636b7
commit 9f4547d9f7
2 changed files with 131 additions and 0 deletions

View File

@@ -93,6 +93,19 @@ public:
static std::optional<Config>
parse_toml_string(const std::string &toml_content);
/**
* @brief Validate configuration values are within reasonable bounds.
*
* This function performs comprehensive validation of all configuration
* parameters and writes detailed diagnostic messages to stderr for any
* validation failures or warnings encountered.
*
* @param config Configuration object to validate
* @return true if configuration is valid, false otherwise
* @note Validation errors and warnings are written to stderr
*/
static bool validate_config(const Config &config);
private:
// Generic configuration parsing utilities
template <typename T>