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 () |
| FileData * | clone () const |
| Implements eve::Data. | |
| void * | getData () const |
| Gets a pointer to the data. This pointer will obviously not be valid if the Data object is destroyed. | |
| size_t | getSize () const |
| Gets the size of the Data in bytes. | |
| const std::string & | getFilename () const |
| Filename, extension (without dot) and base name. | |
| const std::string & | getExtension () const |
| const std::string & | getName () const |
Public 成员函数 继承自 eve::Data | |
| virtual | ~Data () |
| Destructor. | |
Public 成员函数 继承自 eve::Object | |
| Object () | |
| void | setUpdate (Object *update) |
| Update the current object with a replacement. You don't need to care about the reference to the old object since it will be automatically updated in the ref smart pointer. | |
额外继承的成员函数 | |
Protected 成员函数 继承自 eve::Object | |
| virtual | ~Object () |
| bool | isDirty () const |
| Object * | getUpdate () const |
| void | ref () |
| void | unref () |
Protected 属性 继承自 eve::Object | |
| Object * | update |
| unsigned | ref_count = 0 |
详细描述
Data buffer paired with a filename (used for type identification).
在文件 FileData.h 第 12 行定义.
构造及析构函数说明
◆ 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 |
在文件 FileData.cpp 第 37 行定义.
成员函数说明
◆ clone()
|
virtual |
◆ getData()
|
inlinevirtual |
Gets a pointer to the data. This pointer will obviously not be valid if the Data object is destroyed.
实现了 eve::Data.
在文件 FileData.h 第 23 行定义.
被这些函数引用 eve::ui::EditorHost::capture(), eve::i18n::I18n::loadFromFile(), eve::dialogue::Dialogue::loadPoolsFromDnutFile(), eve::filesystem::Filesystem::newFileData() , 以及 eve::filesystem::File::read().
◆ getExtension()
|
inline |
在文件 FileData.h 第 28 行定义.
◆ getFilename()
|
inline |
Filename, extension (without dot) and base name.
在文件 FileData.h 第 27 行定义.
◆ getName()
|
inline |
在文件 FileData.h 第 29 行定义.
◆ getSize()
|
inlinevirtual |
Gets the size of the Data in bytes.
实现了 eve::Data.
在文件 FileData.h 第 24 行定义.
被这些函数引用 eve::ui::EditorHost::capture(), eve::i18n::I18n::loadFromFile() , 以及 eve::dialogue::Dialogue::loadPoolsFromDnutFile().
该类的文档由以下文件生成:
- src/modules/filesystem/FileData.h
- src/modules/filesystem/FileData.cpp
Public 成员函数 继承自