Util--  1.1
Static Public Member Functions | List of all members
utilmm::ConfigurationFinder Class Reference

#include <utilmm/configsearch/configuration_finder.hh>

Static Public Member Functions

static std::string find (const std::string &file)
 
static std::string find (const std::string &file, const std::string &packagename)
 
static std::string search (const std::string &file, const std::vector< std::string > &searchDirectories)
 
static std::string findSystemConfig (const std::string &file, const std::string &systemId)
 

Detailed Description

Search for configuration files available within the current directory and pathes given by the ROCK_CONFIG_PATH variable

Member Function Documentation

static std::string utilmm::ConfigurationFinder::find ( const std::string &  file)
static

Search for a file by name (no recursive search)

Returns
The full path once the file was found, otherwise an empty string
static std::string utilmm::ConfigurationFinder::find ( const std::string &  file,
const std::string &  packagename 
)
static

Search for a file within [ $ROCK_CONFIG_PATH ]/<packagename>/ (no recursive search)

Returns
The full path once the file was found, otherwise an empty string
static std::string utilmm::ConfigurationFinder::findSystemConfig ( const std::string &  file,
const std::string &  systemId 
)
static

Search for a file by system_id when id syntax is BASENAME_ID, ..., BASENAME_ID Search priority is:

  • search in BASENAME/ID first
  • then search in BASENAME/
    Returns
    The full path once the file was found, otherwise an empty string
static std::string utilmm::ConfigurationFinder::search ( const std::string &  file,
const std::vector< std::string > &  searchDirectories 
)
static

Search for a file within some given directories

Returns
The full path once the file was found, otherwise an empty string

The documentation for this class was generated from the following file:

Generated on Tue Oct 9 2018 10:12:45 for Util-- by doxygen 1.8.6
SourceForge.net Project Page