32 #include <boost/filesystem/path.hpp> 38 #include "rsc/config.h" 39 #include "rsc/rscexports.h" 67 const boost::filesystem::path& prefix = RSC_INSTALL_PREFIX);
103 RSC_EXPORT boost::shared_ptr<std::string>
119 Match(
const std::string& rawName,
120 const std::string& transformedName,
121 const std::string& value);
123 const std::string& getRawName()
const;
124 const std::string& getTransformedName()
const;
125 const std::string& getValue()
const;
146 const bool& stripPrefix =
true);
157 Matches getMatches();
path userConfigDirectory()
Return the canonical directory for configuration files of the user associated with the current proces...
Objects of this class analyze the environment of the current process, finding environment variables w...
Implementations of this interface receive options from ConfigSource objects.
std::vector< Match > Matches
boost::shared_ptr< std::string > getEnvironmentVariable(const std::string &name)
Return the value of the environment value name or an empty pointer.
path systemConfigDirectory()
Return the directory in which system-wide configuration files are located.
path prefixConfigDirectory(const path &prefix)
Implementations of this interface obtain configuration information somewhere and pass individual conf...
rsc::logging::LoggerPtr logger
boost::shared_ptr< Matches > matches
path userHomeDirectory()
Return the home directory of the user associated with the current process.
std::string transformedName
boost::shared_ptr< Logger > LoggerPtr