Wire Sysio Wire Sysion 1.0.0
|
wraps boost::filesystem::path to provide platform independent path manipulation. More...
#include <filesystem.hpp>
Public Member Functions | |
path () | |
~path () | |
path (const boost::filesystem::path &) | |
path (const std::string &p) | |
path (const std::wstring &p) | |
Constructor to build path using unicode native characters. | |
path (const char *) | |
path (const path &p) | |
path (path &&p) | |
path & | operator= (const path &) |
path & | operator= (path &&) |
path & | operator/= (const fc::path &) |
operator boost::filesystem::path & () | |
operator const boost::filesystem::path & () const | |
void | replace_extension (const fc::path &e) |
fc::path | stem () const |
fc::path | extension () const |
fc::path | filename () const |
fc::path | parent_path () const |
std::string | string () const |
std::string | generic_string () const |
std::string | preferred_string () const |
std::wstring | wstring () const |
std::wstring | generic_wstring () const |
std::wstring | preferred_wstring () const |
std::string | to_native_ansi_path () const |
std::string | windows_string () const |
replaces '/' with '\' in the result of generic_string() | |
bool | is_relative () const |
bool | is_absolute () const |
bool | empty () const |
Static Public Attributes | |
static char | separator_char = static_cast<char>(boost::filesystem::path("/").make_preferred().native()[0]) |
Friends | |
path | operator/ (const fc::path &p, const fc::path &o) |
bool | operator== (const fc::path &p, const fc::path &r) |
bool | operator!= (const fc::path &p, const fc::path &r) |
bool | operator< (const fc::path &p, const fc::path &r) |
Most calls are simply a passthrough to boost::filesystem::path, however exceptions are wrapped in an fc::error_report and the additional helper method fc::path::windows_string(), can be used to calculate paths intended for systems different than the host.
Definition at line 28 of file filesystem.hpp.
fc::path::path | ( | ) |
Definition at line 53 of file filesystem.cpp.
fc::path::~path | ( | ) |
Definition at line 54 of file filesystem.cpp.
fc::path::path | ( | const boost::filesystem::path & | p | ) |
Definition at line 55 of file filesystem.cpp.
fc::path::path | ( | const std::string & | p | ) |
Definition at line 60 of file filesystem.cpp.
fc::path::path | ( | const std::wstring & | p | ) |
Definition at line 63 of file filesystem.cpp.
fc::path::path | ( | const char * | p | ) |
Definition at line 58 of file filesystem.cpp.
fc::path::path | ( | const path & | p | ) |
Definition at line 66 of file filesystem.cpp.
fc::path::path | ( | path && | p | ) |
Definition at line 69 of file filesystem.cpp.
bool fc::path::empty | ( | ) | const |
Definition at line 175 of file filesystem.cpp.
fc::path fc::path::extension | ( | ) | const |
Definition at line 163 of file filesystem.cpp.
fc::path fc::path::filename | ( | ) | const |
Definition at line 157 of file filesystem.cpp.
fc::string fc::path::generic_string | ( | ) | const |
Definition at line 101 of file filesystem.cpp.
std::wstring fc::path::generic_wstring | ( | ) | const |
Definition at line 115 of file filesystem.cpp.
bool fc::path::is_absolute | ( | ) | const |
Definition at line 173 of file filesystem.cpp.
bool fc::path::is_relative | ( | ) | const |
Definition at line 172 of file filesystem.cpp.
fc::path::operator boost::filesystem::path & | ( | ) |
Definition at line 95 of file filesystem.cpp.
fc::path::operator const boost::filesystem::path & | ( | ) | const |
Definition at line 98 of file filesystem.cpp.
Definition at line 85 of file filesystem.cpp.
Definition at line 72 of file filesystem.cpp.
Definition at line 76 of file filesystem.cpp.
fc::path fc::path::parent_path | ( | ) | const |
Definition at line 169 of file filesystem.cpp.
fc::string fc::path::preferred_string | ( | ) | const |
On windows, returns a path where all path separators are '\' suitable for displaying to users. On other platforms, it does the same as generic_string()
Definition at line 105 of file filesystem.cpp.
std::wstring fc::path::preferred_wstring | ( | ) | const |
Definition at line 120 of file filesystem.cpp.
void fc::path::replace_extension | ( | const fc::path & | e | ) |
Definition at line 160 of file filesystem.cpp.
fc::path fc::path::stem | ( | ) | const |
Definition at line 166 of file filesystem.cpp.
fc::string fc::path::string | ( | ) | const |
Definition at line 154 of file filesystem.cpp.
std::string fc::path::to_native_ansi_path | ( | ) | const |
Retrieves native string path representation and next converts it into ANSI UTF-8 representation. It is needed since not all parts of fc library accept unicode paths (fc::file_mapping).
Definition at line 125 of file filesystem.cpp.
fc::string fc::path::windows_string | ( | ) | const |
Definition at line 148 of file filesystem.cpp.
std::wstring fc::path::wstring | ( | ) | const |
Definition at line 110 of file filesystem.cpp.
Definition at line 83 of file filesystem.cpp.
Definition at line 89 of file filesystem.cpp.
Definition at line 81 of file filesystem.cpp.
Definition at line 82 of file filesystem.cpp.
|
static |
Definition at line 85 of file filesystem.hpp.