![]() |
LogIt++
|
Utility functions for path manipulation, including relative path computation. More...
#include <string>#include <vector>#include <cctype>#include <stdexcept>#include <unistd.h>#include <limits.h>#include <dirent.h>#include <sys/stat.h>#include <errno.h>Go to the source code of this file.
Classes | |
| struct | logit::PathComponents |
| Structure to hold the root and components of a path. More... | |
Namespaces | |
| namespace | logit |
| The primary namespace for the LogIt++ library. | |
Functions | |
| std::string | logit::get_exec_dir () |
| Retrieves the directory of the executable file. | |
| std::vector< std::string > | logit::get_list_files (const std::string &path) |
| Recursively retrieves a list of all files in a directory. | |
| std::string | logit::get_file_name (const std::string &file_path) |
| Extracts the file name from a full file path. | |
| PathComponents | logit::split_path (const std::string &path) |
| Splits a path into its root and components. | |
| std::string | logit::make_relative (const std::string &file_path, const std::string &base_path) |
| Computes the relative path from base_path to file_path. | |
| bool | logit::is_file (const std::string &path) |
| Checks if a path represents a file (by checking for an extension). | |
| void | logit::create_directories (const std::string &path) |
| Creates directories recursively for the given path. | |
Utility functions for path manipulation, including relative path computation.
Definition in file path_utils.hpp.