载入中...
搜索中...
未找到
eve::filesystem::FileData类 参考

Data buffer paired with a filename (used for type identification). 更多...

#include <FileData.h>

类 eve::filesystem::FileData 继承关系图:
eve::Data eve::Object

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 ()
 
FileDataclone () 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
 
ObjectgetUpdate () const
 
void ref ()
 
void unref ()
 
- Protected 属性 继承自 eve::Object
Objectupdate
 
unsigned ref_count = 0
 

详细描述

Data buffer paired with a filename (used for type identification).

在文件 FileData.h12 行定义.

构造及析构函数说明

◆ FileData() [1/2]

eve::filesystem::FileData::FileData ( const std::string &  filename,
uint64_t  size 
)

Allocates a buffer of the given size for the named file.

在文件 FileData.cpp11 行定义.

引用了 data.

◆ FileData() [2/2]

eve::filesystem::FileData::FileData ( const FileData c)

Deep-copies another FileData.

在文件 FileData.cpp27 行定义.

引用了 c , 以及 data.

◆ ~FileData()

eve::filesystem::FileData::~FileData ( )
virtual

在文件 FileData.cpp37 行定义.

成员函数说明

◆ clone()

FileData * eve::filesystem::FileData::clone ( ) const
virtual

Implements eve::Data.

实现了 eve::Data.

在文件 FileData.cpp39 行定义.

◆ getData()

void * eve::filesystem::FileData::getData ( ) const
inlinevirtual

Gets a pointer to the data. This pointer will obviously not be valid if the Data object is destroyed.

实现了 eve::Data.

在文件 FileData.h23 行定义.

被这些函数引用 eve::ui::EditorHost::capture(), eve::i18n::I18n::loadFromFile(), eve::dialogue::Dialogue::loadPoolsFromDnutFile(), eve::filesystem::Filesystem::newFileData() , 以及 eve::filesystem::File::read().

◆ getExtension()

const std::string & eve::filesystem::FileData::getExtension ( ) const
inline

在文件 FileData.h28 行定义.

◆ getFilename()

const std::string & eve::filesystem::FileData::getFilename ( ) const
inline

Filename, extension (without dot) and base name.

在文件 FileData.h27 行定义.

◆ getName()

const std::string & eve::filesystem::FileData::getName ( ) const
inline

在文件 FileData.h29 行定义.

◆ getSize()

size_t eve::filesystem::FileData::getSize ( ) const
inlinevirtual

Gets the size of the Data in bytes.

实现了 eve::Data.

在文件 FileData.h24 行定义.

被这些函数引用 eve::ui::EditorHost::capture(), eve::i18n::I18n::loadFromFile() , 以及 eve::dialogue::Dialogue::loadPoolsFromDnutFile().


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