YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
类 | |
class | Path |
路径。 更多... | |
class | PathNorm |
文件路径范式。 更多... | |
类型定义 | |
using | ypath = ystdex::path< vector< String >, PathNorm > |
函数 | |
PDefH (String, GetExtensionOf, const string &path) ImplRet(String(path | |
String | GetExtensionOf (const String &fname) |
String | FetchCurrentWorkingDirectory (size_t len) |
bool | VerifyDirectory (const char *path) |
void | EnsureDirectory (const Path &pth) |
void | ListFiles (const Path &pth, vector< String > &lst) |
PathCategory | ClassifyPath (const String &fname, ypath::norm &&norm) |
CS_Path PDefH(String, GetExtensionOf, const Path &pth) ImplRet(pth.empty()?String() | PDefH (bool, IsAbsolute, const string &path) ImplRet(IsAbsolute(path.c_str())) inline PDefH(bool |
取当前工作目录。 更多... | |
CS_Path PDefH(String, GetExtensionOf, const Path &pth) ImplRet(pth.empty()?String() | IsAbsolute |
CS_Path PDefH(String, GetExtensionOf, const Path &pth) ImplRet(pth.empty()?String() const String &path | ImplRet (IsAbsolute(path.GetMBCS(CS_Path))) inline PDefH(bool |
判断路径表示相对路径(包括空路径)。 更多... | |
CS_Path PDefH(String, GetExtensionOf, const Path &pth) ImplRet(pth.empty()?String() const String &path const Path &pth | IsRelative |
VerifyDirectory | |
const String &path const Path &pth ImplRet(!pth.empty()&&VerifyDirectory(pth.GetString())) YF_API void EnsureDirectory(const Path &) ythrow(std PDefH(void, EnsureDirectory, const char *path) ythrow(std YF_API PathCategor | ClassifyPath )(const String &, ypath::norm &&=PathNorm()) |
验证路径表示的目录是否存在,若不存在则逐级创建。 更多... | |
PDefH (bool, VerifyDirectory, const string &path) ImplRet(VerifyDirectory(path.c_str())) inline PDefH(bool | |
const String &path | ImplRet (VerifyDirectory(path.GetMBCS(CS_Path))) inline PDefH(bool |
YF_API NodeCategory | ClassifyNode (const Path &) |
按文件系统节点类别对路径分类。 更多... | |
using YSLib::IO::ypath = typedef ystdex::path<vector<String>, PathNorm> |
在文件 YSLib/Service/FileSystem.h 第 68 行定义.
NodeCategory YSLib::IO::ClassifyNode | ( | const Path & | pth | ) |
按文件系统节点类别对路径分类。
在文件 YSLib/Service/FileSystem.cpp 第 186 行定义.
参考 ClassifyPath(), ystdex::path< _tSeqCon, _tNorm >::get_norm(), platform::ufexists() , 以及 VerifyDirectory().
PathCategory YSLib::IO::ClassifyPath | ( | const String & | fname, |
ypath::norm && | norm | ||
) |
void YSLib::IO::EnsureDirectory | ( | const Path & | pth | ) |
在文件 YSLib/Service/FileSystem.cpp 第 138 行定义.
参考 YSLib::UI::name, CHRLib::strdup(), platform::umkdir(), VerifyDirectory() , 以及 YAssert.
String YSLib::IO::FetchCurrentWorkingDirectory | ( | size_t | len | ) |
String YSLib::IO::GetExtensionOf | ( | const String & | fname | ) |
在文件 YSLib/Service/FileSystem.cpp 第 99 行定义.
const String& path YSLib::IO::ImplRet | ( | VerifyDirectory(path.GetMBCS(CS_Path)) | ) |
void YSLib::IO::ListFiles | ( | const Path & | pth, |
vector< String > & | lst | ||
) |
在文件 YSLib/Service/FileSystem.cpp 第 153 行定义.
参考 platform::HDirectory::GetNodeCategory(), ystdex::path_norm< _type >::is_parent(), ystdex::path_norm< _type >::is_self(), YSLib::UI::name , 以及 YB_LIKELY.
参考自 YSLib::UI::FileBox::ListItems().
|
inline |
|
inline |
bool YSLib::IO::VerifyDirectory | ( | const char * | path | ) |
在文件 YSLib/Service/FileSystem.cpp 第 123 行定义.
参考自 ClassifyNode(), EnsureDirectory() , 以及 YSLib::IO::Path::operator String().
|
inline |
验证路径表示的目录是否存在,若不存在则逐级创建。
std::system_error | 失败时根据 errno 抛出的异常。 |
遍历目录中的项目,更新至列表。
按路径类别对路径成员分类。
在文件 YSLib/Service/FileSystem.h 第 354 行定义.
CS_Path PDefH (String, GetExtensionOf, const Path& pth) ImplRet(pth.empty() ? String() const String& path const Path& pth const char* path const string& path const String& path const Path& pth YSLib::IO::ImplRet(!IsAbsolute(pth))YF_API bool VerifyDirectory(const char *) |
CS_Path PDefH (String, GetExtensionOf, const Path& pth) ImplRet(pth.empty() ? String() const String& path YSLib::IO::IsAbsolute |
在文件 YSLib/Service/FileSystem.h 第 287 行定义.
CS_Path PDefH (String, GetExtensionOf, const Path& pth) ImplRet(pth.empty() ? String() const String& path const Path& pth const char* path const string& path const String& path YSLib::IO::IsRelative |
在文件 YSLib/Service/FileSystem.h 第 295 行定义.
|
inline |
取当前工作目录。
验证路径表示的目录是否存在。
判断路径表示相对路径(包括空路径)。
在文件 YSLib/Service/FileSystem.h 第 285 行定义.
const String &path YSLib::IO::VerifyDirectory |
在文件 YSLib/Service/FileSystem.h 第 312 行定义.