#include <zorba/util/path.h>
List of all members.
Static Public Member Functions |
static const char * | get_directory_separator () |
static const char * | get_path_separator () |
static std::string | normalize_path (std::string const &in, std::string const &base="") |
| Utility function to normalize a path as a system conforming path and optionally resolve it.
|
Detailed Description
Definition at line 26 of file path.h.
Member Enumeration Documentation
- Enumerator:
-
Definition at line 37 of file path.h.
Constructor & Destructor Documentation
zorba::filesystem_path::filesystem_path |
( |
| ) |
|
zorba::filesystem_path::filesystem_path |
( |
const std::string & |
path_, |
|
|
int |
flags = 0 |
|
) |
| |
Member Function Documentation
const char* zorba::filesystem_path::c_str |
( |
| ) |
const |
|
inline |
static const char* zorba::filesystem_path::get_directory_separator |
( |
| ) |
|
|
static |
const std::string& zorba::filesystem_path::get_path |
( |
| ) |
const |
|
inline |
static const char* zorba::filesystem_path::get_path_separator |
( |
| ) |
|
|
static |
std::string zorba::filesystem_path::getPathString |
( |
| ) |
const |
|
protected |
bool zorba::filesystem_path::is_complete |
( |
| ) |
const |
bool zorba::filesystem_path::is_root |
( |
| ) |
const |
static std::string zorba::filesystem_path::normalize_path |
( |
std::string const & |
in, |
|
|
std::string const & |
base = "" |
|
) |
| |
|
static |
Utility function to normalize a path as a system conforming path and optionally resolve it.
This function takes a path (as system path, file uri) and normalizes it. It converts file URIs to system paths and replaces '/' and '\' to the platform specific directory separator ('\' on Windows, '/' on UNIX like operating systems like Linux and Mac OS X). If the parameter base is set, it also resolves the path.
- Parameters:
-
in | The path to normalize. |
base | The base name to resolve a path (default = ""), if this is the empty string, it does not resolve anything, but only normalizes the path. |
- Returns:
- Returns a normalized and optionally a resolved path.
zorba::filesystem_path::operator const std::string & |
( |
| ) |
const |
|
inline |
filesystem_path& zorba::filesystem_path::operator= |
( |
const std::string & |
p_ | ) |
|
|
inline |
void zorba::filesystem_path::resolve_relative |
( |
| ) |
|
The documentation for this class was generated from the following file: