Data buffer paired with a filename (used for type identification). 更多...
#include <FileData.h>
Public 成员函数 | |
| FileData (const std::string &filename, uint64_t size) | |
| Allocates a buffer of the given size for the named file. | |
| FileData (const FileData &c) | |
| Deep-copies another FileData. | |
| virtual | ~FileData () |
| File data. | |
| FileData * | clone () const |
| Implements eve::Data. | |
| void * | getData () const |
| Pointer to the owned byte buffer. | |
| size_t | getSize () const |
| Byte length of the owned buffer. | |
| const std::string & | getFilename () const |
| Filename, extension (without dot) and base name. | |
| const std::string & | getExtension () const |
| File extension without the leading dot. | |
| const std::string & | getName () const |
| Basename without extension. | |
Public 成员函数 继承自 eve::Data | |
| virtual | ~Data () |
| Destructor. | |
详细描述
Data buffer paired with a filename (used for type identification).
在文件 FileData.h 第 14 行定义.
构造及析构函数说明
◆ FileData() [1/2]
| eve::filesystem::FileData::FileData | ( | const std::string & | filename, |
| uint64_t | size | ||
| ) |
◆ FileData() [2/2]
| eve::filesystem::FileData::FileData | ( | const FileData & | c | ) |
◆ ~FileData()
|
virtual |
File data.
在文件 FileData.cpp 第 38 行定义.
成员函数说明
◆ clone()
|
virtual |
◆ getData()
|
inlinevirtual |
Pointer to the owned byte buffer.
实现了 eve::Data.
在文件 FileData.h 第 27 行定义.
被这些函数引用 eve::ui::EditorHost::capture(), eve::filesystem::Filesystem::newFileData(), eve::filesystem::File::read(), eve::filesystem::Filesystem::readFile() , 以及 eve::i18n::I18n::replaceLocaleFromFile().
◆ getExtension()
|
inline |
File extension without the leading dot.
在文件 FileData.h 第 34 行定义.
◆ getFilename()
|
inline |
Filename, extension (without dot) and base name.
在文件 FileData.h 第 32 行定义.
◆ getName()
|
inline |
◆ getSize()
|
inlinevirtual |
Byte length of the owned buffer.
实现了 eve::Data.
在文件 FileData.h 第 29 行定义.
引用了 size.
被这些函数引用 eve::ui::EditorHost::capture(), eve::filesystem::Filesystem::readFile() , 以及 eve::i18n::I18n::replaceLocaleFromFile().
该类的文档由以下文件生成:
- src/modules/filesystem/FileData.h
- src/modules/filesystem/FileData.cpp
Public 成员函数 继承自