Function eCAL::Config::checkForValidConfigFilePath
Defined in File ecal_path_processing.h
Function Documentation
-
std::string eCAL::Config::checkForValidConfigFilePath(const std::string &config_file_, const Util::DirProvider &dir_provider_ = Util::DirProvider(), const Util::DirManager &dir_manager_ = Util::DirManager())
Check the following paths if the specified config file exists and return the first valid complete path.
The function checks the following paths in order: 1. ECAL_DATA environment variable path 2. Current working directory 3. Local user path 4. Global system path
- Parameters:
config_file_ – The name of the configuration file to check.
- Returns:
std::string The first valid complete path to the configuration file. Returns empty string if non could be found.