载入中...
搜索中...
未找到
eve::service::IFileSystem类 参考abstract
Minimal file read / write / existence surface. Providers: eve::filesystem::Filesystem. Mocks can simulate missing files, read failures, and full disks without touching PhysFS. 更多...
#include <ServiceInterfaces.h>
类 eve::service::IFileSystem 继承关系图:
Public 成员函数 | |
| virtual | ~IFileSystem ()=default |
| Releases IFileSystem resources. | |
| virtual bool | readFile (const std::string &path, std::vector< uint8_t > &out)=0 |
| Reads an entire file. | |
| virtual bool | writeFile (const std::string &path, const void *data, size_t size)=0 |
| Writes bytes to a file. | |
| virtual bool | fileExists (const std::string &path)=0 |
| True when the path exists (file or directory). | |
静态 Public 属性 | |
| static constexpr const char * | capabilityName = "IFileSystem" |
详细描述
Minimal file read / write / existence surface. Providers: eve::filesystem::Filesystem. Mocks can simulate missing files, read failures, and full disks without touching PhysFS.
在文件 ServiceInterfaces.h 第 23 行定义.
构造及析构函数说明
◆ ~IFileSystem()
|
virtualdefault |
Releases IFileSystem resources.
成员函数说明
◆ fileExists()
|
pure virtual |
True when the path exists (file or directory).
在 eve::filesystem::Filesystem 内被实现.
◆ readFile()
|
pure virtual |
◆ writeFile()
|
pure virtual |
类成员变量说明
◆ capabilityName
|
staticconstexpr |
在文件 ServiceInterfaces.h 第 25 行定义.
该类的文档由以下文件生成:
- src/engine/common/ServiceInterfaces.h