29 #include <boost/filesystem.hpp> 33 #include <rsc/rscexports.h> 46 std::vector<std::string> RSC_EXPORT
48 = DEFAULT_FILE_VARIABLE_NAME);
62 std::pair<boost::filesystem::path, std::string> RSC_EXPORT
64 const boost::filesystem::path& prefix,
65 const std::string& configFileName);
117 const std::string& configFileName,
118 const std::string& environmentVariablePrefix,
120 const char** argv = 0,
121 bool stripEnvironmentVariablePrefix =
true,
122 const boost::filesystem::path& prefix =
"/",
123 const std::string& debugVariableName = DEFAULT_DEBUG_VARIABLE_NAME,
const std::string CONFIG_FILE_KEY_PWD
const std::string DEFAULT_DEBUG_VARIABLE_NAME
std::pair< boost::filesystem::path, std::string > resolveConfigurationFile(const std::string &spec, const boost::filesystem::path &prefix, const std::string &configFileName)
Return a pair of configuration file path and description derived from spec.
std::vector< std::string > defaultConfigurationFiles(const std::string &fileVariableName)
const std::string DEFAULT_FILE_VARIABLE_NAME
const std::string CONFIG_FILE_KEY_PREFIX
const std::string CONFIG_FILE_KEY_USER
void configure(OptionHandler &handler, const string &configFileName, const string &environmentVariablePrefix, int argc, const char **argv, bool stripEnvironmentVariablePrefix, const boost::filesystem::path &prefix, const std::string &debugVariableName, const std::vector< std::string > &configurationFiles)
Pass configuration options in from configuration files derived from configFileName and environment va...