YSTest: FileIO.cpp 文件参考

YSTest PreAlpha_b800_20170810 The YSLib Test Project

- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件

- 文件列表
- 文件成员

命名空间 | 宏定义 | 函数 | 变量
FileIO.cpp 文件参考
YFramework Library » YCommonLib

平台相关的文件访问和输入/输出接口。 更多...

`#include "YCLib/YModules.h"`
`#include <YFM_YCLib_FileIO>`
`#include <YFM_YCLib_NativeAPI>`
`#include <YFM_YCLib_FileSystem>`
`#include <ystdex/functional.hpp>`
`#include <ystdex/streambuf.hpp>`
FileIO.cpp 的引用(Include)关系图:

浏览源代码.

## 命名空间

| platform
| 默认平台命名空间。
| platform_ex
| 平台扩展命名空间。

## 宏定义

#define | YCL_Impl_FileSystem_ufunc_1(_n)
#define | YCL_Impl_FileSystem_ufunc_2(_fn, _wfn)
#define | YCL_Impl_FileSystem_ufunc(_n, _fn, _wfn)

## 函数

string | platform::MakePathString (const char16_t *s)
enum NodeCategory std::uint_least32_t YF_API NodeCategory | platform::CategorizeNode (mode_t) ynothrow
| 文件节点类别。 更多...
YF_API YB_STATELESS mode_t | platform::DefaultPMode () ynothrow
| 取默认权限。 更多...
int | platform::omode_conv (std::ios_base::openmode mode) ynothrow
int | platform::uaccess (const char *path, int amode) ynothrowv
int | platform::uaccess (const char16_t *path, int amode) ynothrowv
int | platform::uopen (const char *filename, int oflag, mode_t pmode) ynothrowv
int | platform::uopen (const char16_t *filename, int oflag, mode_t pmode) ynothrowv
std::FILE * | platform::ufopen (const char *filename, const char *mode) ynothrowv
std::FILE * | platform::ufopen (const char16_t *filename, const char16_t *mode) ynothrowv
std::FILE * | platform::ufopen (const char *filename, std::ios_base::openmode mode) ynothrowv
std::FILE * | platform::ufopen (const char16_t *filename, std::ios_base::openmode mode) ynothrowv
bool | platform::ufexists (const char *filename) ynothrowv
bool | platform::ufexists (const char16_t *filename) ynothrowv
char * | platform::ugetcwd (char *buf, size_t size) ynothrowv
char16_t * | platform::ugetcwd (char16_t *buf, size_t len) ynothrowv
bool | platform::uchdir (const char *path) ynothrowv
bool | platform::umkdir (const char *path) ynothrowv
bool | platform::urmdir (const char *path) ynothrowv
bool | platform::uunlink (const char *path) ynothrowv
bool | platform::uremove (const char *path) ynothrowv
FileTime | platform::GetFileAccessTimeOf (const char *filename, bool follow_link)
FileTime | platform::GetFileAccessTimeOf (const char16_t *filename, bool follow_link)
FileTime | platform::GetFileModificationTimeOf (const char *filename, bool follow_link)
FileTime | platform::GetFileModificationTimeOf (const char16_t *filename, bool follow_link)
| platform::cstat (st, path, follow_link, yfsig)
UniqueFile | platform::EnsureUniqueFile (const char *dst, mode_t mode, size_t allowed_links, bool share)
bool | platform::HaveSameContents (const char *path_a, const char *path_b, mode_t mode)
bool | platform::HaveSameContents (const char16_t *path_a, const char16_t *path_b, mode_t mode)
YF_API bool | platform::HaveSameContents (UniqueFile, UniqueFile, const char *, const char *)
bool | platform::IsNodeShared (const char *a, const char *b, bool follow_link) ynothrowv
bool | platform::IsNodeShared (const char16_t *a, const char16_t *b, bool follow_link) ynothrowv
bool | platform::IsNodeShared (FileDescriptor, FileDescriptor) ynothrow
u16string | platform_ex::MakePathStringU (const char *s)
YF_API void | platform::SetBinaryIO (std::FILE *) ynothrowv
| 设置标准库流二进制输入/输出模式。 更多...
std::ios_base::sync_with_stdio(sync)) YF_API YB_STATELESS int omode_conv(std YF_API YB_STATELESS int | platform::omode_convb (std::ios_base::openmode) ynothrow
| ISO C++ 标准输入输出接口打开模式转换为 POSIX 文件打开模式。 更多...
std::FILE *fp | platform::GetFileModificationAndAccessTimeOf (const char *, bool={})
YF_API | platform::GetFileModificationAndAccessTimeOf (const char16_t *, bool={})
| platform::YB_NONNULL (1) PDefH(string
| 构造适合表示路径的 `char` 字符串。 更多...

## 变量

bool | platform::follow_link
return st | platform::st_nlink

## 详细描述

平台相关的文件访问和输入/输出接口。

版本
  r3110

作者
  FrankHB frank.nosp@m.hb19.nosp@m.89@gm.nosp@m.ail..nosp@m.com

自从
  build 615

创建时间:
  2015-07-14 18:53:12 +0800

修改时间:
  2017-08-09 08:57 +0800

文本编码:
  UTF-8

模块名称:
  YCLib::FileIO

在文件 FileIO.cpp 中定义.

## 宏定义说明

#define YCL_Impl_FileSystem_ufunc | ( |  | _n,
|  |  | _fn,
|  |  | _wfn
| ) |  |

值:
YCL_Impl_FileSystem_ufunc_1(_n) \
YCL_Impl_FileSystem_ufunc_2(_fn, _wfn)
YCL_Impl_FileSystem_ufunc_2
#define YCL_Impl_FileSystem_ufunc_2(_fn, _wfn)
Definition: FileIO.cpp:1052
YCL_Impl_FileSystem_ufunc_1
#define YCL_Impl_FileSystem_ufunc_1(_n)
Definition: FileIO.cpp:1039

在文件 FileIO.cpp 第 1057 行定义.

#define YCL_Impl_FileSystem_ufunc_1 | ( |  | _n | ) |

值:
bool \
_n(const char* path) ynothrowv \
{ \
YAssertNonnull(path); \
YAssertNonnull
#define YAssertNonnull(_expr)
Definition: cassert.h:120
ynothrowv
#define ynothrowv
YSLib 无异常抛出保证验证：有条件地使用无异常抛出规范。
Definition: ydef.h:786
YSLib::path
YF_API const char * path
Definition: Initialization.h:77

在文件 FileIO.cpp 第 1039 行定义.

#define YCL_Impl_FileSystem_ufunc_2 | ( |  | _fn,
|  |  | _wfn
| ) |  |

值:
return _fn(path) == 0; \
}
YSLib::path
YF_API const char * path
Definition: Initialization.h:77

在文件 FileIO.cpp 第 1052 行定义.