#include <zorba/util/file.h>
List of all members.
Member Typedef Documentation
Member Enumeration Documentation
- Enumerator:
type_invalid |
|
type_non_existent |
|
type_directory |
|
type_link |
|
type_file |
|
type_volume |
|
type_other |
|
Definition at line 38 of file util/file.h.
- Enumerator:
-
Definition at line 37 of file path.h.
Constructor & Destructor Documentation
Member Function Documentation
const char* zorba::filesystem_path::c_str |
( |
| ) |
const [inline, inherited] |
void zorba::file::chdir |
( |
| ) |
|
void zorba::file::create |
( |
| ) |
|
void zorba::file::deep_mkdir |
( |
| ) |
|
void zorba::file::do_stat |
( |
| ) |
[protected] |
bool zorba::file::exists |
( |
| ) |
const [inline] |
static const char* zorba::filesystem_path::get_directory_separator |
( |
| ) |
[static, inherited] |
enum filetype zorba::file::get_filetype |
( |
| ) |
|
const std::string& zorba::filesystem_path::get_path |
( |
| ) |
const [inline, inherited] |
static const char* zorba::filesystem_path::get_path_separator |
( |
| ) |
[static, inherited] |
std::string zorba::filesystem_path::getPathString |
( |
| ) |
const [protected, inherited] |
bool zorba::filesystem_path::is_complete |
( |
| ) |
const [inherited] |
bool zorba::file::is_directory |
( |
| ) |
const [inline] |
bool zorba::file::is_empty |
( |
| ) |
const [inline] |
bool zorba::file::is_file |
( |
| ) |
const [inline] |
bool zorba::file::is_invalid |
( |
| ) |
const [inline] |
bool zorba::file::is_link |
( |
| ) |
const [inline] |
bool zorba::filesystem_path::is_root |
( |
| ) |
const [inherited] |
bool zorba::file::is_volume |
( |
| ) |
const [inline] |
time_t zorba::file::lastModified |
( |
| ) |
|
void zorba::file::mkdir |
( |
| ) |
|
static std::string zorba::filesystem_path::normalize_path |
( |
std::string const & |
in, |
|
|
std::string const & |
base = "" |
|
) |
| [static, inherited] |
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, inherited] |
void zorba::file::remove |
( |
bool |
ignore = true | ) |
|
void zorba::file::rename |
( |
std::string const & |
newpath | ) |
|
void zorba::filesystem_path::resolve_relative |
( |
| ) |
[inherited] |
void zorba::file::rmdir |
( |
bool |
ignore = true | ) |
|
void zorba::file::set_filetype |
( |
enum filetype |
_type | ) |
[inline] |
void zorba::file::set_path |
( |
std::string const & |
_path | ) |
[inline] |
Member Data Documentation
The documentation for this class was generated from the following file: