38 #ifndef H_OGF_BASIC_OS_FILE_MANAGER_H
39 #define H_OGF_BASIC_OS_FILE_MANAGER_H
97 std::string& file_name,
98 bool verbose=
true,
const std::string& sub_path=
"lib/"
114 std::string& file_name,
bool verbose=
true
159 ogf_assert(ogf_path().size() >= 1);
168 const std::string& name, std::string& value
177 const std::string& name,
const std::string& value
186 std::vector<std::string> ogf_path_;
187 std::string libraries_subdirectory_;
FileManager retreives the files used by Graphite (icons, plugins).
bool get_local_value(const std::string &name, std::string &value) const override
Retrieves a variable value locally.
static void terminate()
Terminates the FileManager.
bool find_binary_file(std::string &file_name, bool verbose=true) const
Finds a binary file, such as the DLL of a plugin.
bool find_file(std::string &file_name, bool verbose=true, const std::string &sub_path="lib/") const
Finds a file.
static FileManager * instance()
Gets a pointer to the instance of the FileManager.
bool set_local_value(const std::string &name, const std::string &value) override
Sets a variable value locally.
std::string libraries_subdirectory() const
Gets the relative subdirectory where dynamic libraries are stored.
static void initialize()
Initializes the FileManager.
const std::string & project_root() const
Gets Graphite project root.
std::string dll_extension() const
Gets the extension of dynamically loadable libraries file names.
const std::vector< std::string > & ogf_path() const
Gets the OGF Path, i.e. the list of directories where files are searched.
std::string dll_prefix() const
Gets the prefix of dynamically loadable libraries file names.
Global Graphite namespace.
Definitions common to all include files in the basic library.