Validate config
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user