|
YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
文件列表模块。 更多...
#include <yfilesys.h>


Public 类型 | |
| typedef String | ItemType |
| 项目名称类型。 | |
| typedef vector< ItemType > | ListType |
| 项目列表类型。 | |
Public 成员函数 | |
| FileList (const_path_t={}) | |
| 构造:使用指定路径。 | |
| FileList (const string &) | |
| 构造:使用窄字符串。 | |
| FileList (const ItemType &) | |
| 构造:使用指定项目。 | |
| virtual | ~FileList () |
| bool | operator= (const Path &) |
| 导航至绝对路径。 | |
| bool | operator/= (const Path &) |
| 导航至相对路径。 | |
| const Path & | GetDirectory () const ynothrow |
| 取目录的完整路径。 | |
| shared_ptr< ListType > | GetListPtr () const ynothrow |
| 取项目列表句柄。 | |
| ListType::size_type | ListItems () |
| 遍历目录中的项目,更新至列表。 | |
Protected 属性 | |
| Path | Directory |
| 目录的完整路径。 | |
| shared_ptr< ListType > | hList |
| 目录中的项目列表句柄。 | |
文件列表模块。
在文件 yfilesys.h 第 568 行定义.
| typedef String YSLib::IO::FileList::ItemType |
项目名称类型。
在文件 yfilesys.h 第 571 行定义.
| typedef vector<ItemType> YSLib::IO::FileList::ListType |
项目列表类型。
在文件 yfilesys.h 第 572 行定义.
| YSLib::IO::FileList::FileList | ( | const_path_t | = {} | ) |
构造:使用指定路径。
| YSLib::IO::FileList::FileList | ( | const string & | ) |
构造:使用窄字符串。
| YSLib::IO::FileList::FileList | ( | const ItemType & | ) |
构造:使用指定项目。
|
inlinevirtual |
在文件 yfilesys.h 第 594 行定义.
|
inline |
取目录的完整路径。
在文件 yfilesys.h 第 611 行定义.
|
inline |
取项目列表句柄。
在文件 yfilesys.h 第 613 行定义.
| FileList::ListType::size_type FileList::ListItems | ( | ) |
遍历目录中的项目,更新至列表。
在文件 yfilesys.cpp 第 405 行定义.
参考 YSLib::IO::CP_Path(),YSLib::IO::FS_Now(),YSLib::IO::FS_Parent(),YSLib::IO::FS_Seperator(),YAssert , 以及 YB_LIKELY.

| bool FileList::operator/= | ( | const Path & | d | ) |
| bool FileList::operator= | ( | const Path & | d | ) |
导航至绝对路径。
在文件 yfilesys.cpp 第 387 行定义.
参考 YSLib::IO::Path::IsDirectory().

|
protected |
|
protected |
目录中的项目列表句柄。
在文件 yfilesys.h 第 576 行定义.