YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::IO::FileList类 参考

文件列表模块。 更多...

#include <yfilesys.h>

类 YSLib::IO::FileList 继承关系图:
YSLib::IO::FileList 的协作图:

Public 类型

typedef String ItemType
 项目名称类型。
 
typedef vector< ItemTypeListType
 项目列表类型。
 

Public 成员函数

 FileList (const_path_t={})
 构造:使用指定路径。
 
 FileList (const string &)
 构造:使用窄字符串。
 
 FileList (const ItemType &)
 构造:使用指定项目。
 
virtual ~FileList ()
 
bool operator= (const Path &)
 导航至绝对路径。
 
bool operator/= (const Path &)
 导航至相对路径。
 
const PathGetDirectory () const ynothrow
 取目录的完整路径。
 
shared_ptr< ListTypeGetListPtr () const ynothrow
 取项目列表句柄。
 
ListType::size_type ListItems ()
 遍历目录中的项目,更新至列表。
 

Protected 属性

Path Directory
 目录的完整路径。
 
shared_ptr< ListTypehList
 目录中的项目列表句柄。
 

详细描述

文件列表模块。

在文件 yfilesys.h568 行定义.

成员类型定义说明

项目名称类型。

在文件 yfilesys.h571 行定义.

项目列表类型。

在文件 yfilesys.h572 行定义.

构造及析构函数说明

YSLib::IO::FileList::FileList ( const_path_t  = {})

构造:使用指定路径。

注解
参数为空或空字符串时为根目录。
YSLib::IO::FileList::FileList ( const string )

构造:使用窄字符串。

注解
参数为空字符串时为根目录。
YSLib::IO::FileList::FileList ( const ItemType )

构造:使用指定项目。

注解
参数为空字符串时为根目录。
virtual YSLib::IO::FileList::~FileList ( )
inlinevirtual

在文件 yfilesys.h594 行定义.

成员函数说明

const Path& YSLib::IO::FileList::GetDirectory ( ) const
inline

取目录的完整路径。

在文件 yfilesys.h611 行定义.

shared_ptr<ListType> YSLib::IO::FileList::GetListPtr ( ) const
inline

取项目列表句柄。

在文件 yfilesys.h613 行定义.

FileList::ListType::size_type FileList::ListItems ( )

遍历目录中的项目,更新至列表。

在文件 yfilesys.cpp405 行定义.

参考 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)

导航至相对路径。

注解
若成功同时读取列表。
自从
build 298

在文件 yfilesys.cpp398 行定义.

bool FileList::operator= ( const Path d)

导航至绝对路径。

注解
若成功同时读取列表。
自从
build 298

在文件 yfilesys.cpp387 行定义.

参考 YSLib::IO::Path::IsDirectory().

函数调用图:

类成员变量说明

Path YSLib::IO::FileList::Directory
protected

目录的完整路径。

在文件 yfilesys.h575 行定义.

参考自 YSLib::UI::FileBox::GetPath().

shared_ptr<ListType> YSLib::IO::FileList::hList
protected

目录中的项目列表句柄。

在文件 yfilesys.h576 行定义.


该类的文档由以下文件生成: