CppNCorr
C++ ncorr Digital Image Correlation engine
Loading...
Searching...
No Matches
config.cpp File Reference

Implements the config-file tier of the override chain. More...

#include "ncorr/config.h"
#include "ncorr/ini.h"

Go to the source code of this file.

Namespaces

namespace  ncorr
 

Functions

bool ncorr::load_config_file (const std::string &config_path, Config &out)
 Load compiled defaults, then overlay values from an INI config file.
 

Detailed Description

Implements the config-file tier of the override chain.

load_config_file() starts from the compiled defaults already present in the passed-in Config and overlays any keys found in the INI file. Each key name in the file matches a Config field exactly (see config/default.cfg).

Definition in file config.cpp.