JayBeams
0.1
Another project to have fun coding.
|
Define the configuration file search algorithm for JayBeams. More...
#include <config_files_location.hpp>
Public Member Functions | |
std::vector< boost::filesystem::path > const & | search_path () const |
Protected Member Functions | |
config_files_locations_base (boost::filesystem::path const &argv0, std::function< char const *(char const *)> getenv, char const *program_root_variable) | |
Constructor. More... | |
config_files_locations_base (boost::filesystem::path const &argv0, std::function< char const *(char const *)> getenv) | |
Constructor. More... | |
Private Attributes | |
std::vector< boost::filesystem::path > | search_path_ |
Define the configuration file search algorithm for JayBeams.
Please
Definition at line 34 of file config_files_location.hpp.
|
protected |
Constructor.
argv0 | the path for the current program (typically argv[0]) |
program_root_variable | the name of the *_ROOT environment variable used by this program, it can be null if the program does not provide any. |
getenv | a function to fetch the values of environment variables. Just used for dependency injection. |
Definition at line 8 of file config_files_location.cpp.
References jb::bindir(), search_path_, and jb::sysconfdir().
|
protected |
Constructor.
argv0 | the path for the current program (typically argv[0]) |
getenv | a function to fetch the values of environment variables. Just used for dependency injection. |
Definition at line 50 of file config_files_location.cpp.
|
inline |
Definition at line 36 of file config_files_location.hpp.
|
private |
Definition at line 70 of file config_files_location.hpp.
Referenced by config_files_locations_base().