$search

utilmm::ConfigurationFinder Class Reference

#include <configuration_finder.hh>

List of all members.

Static Public Member Functions

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

Detailed Description

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

Definition at line 14 of file configuration_finder.hh.


Member Function Documentation

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

Definition at line 22 of file configuration_finder.cc.

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

Definition at line 17 of file configuration_finder.cc.

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

Definition at line 84 of file configuration_finder.cc.

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

Definition at line 51 of file configuration_finder.cc.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Fri Mar 1 16:28:52 2013