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

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

#include <FileData.h>

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

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 
)

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

在文件 FileData.cpp 第 11 行定义.

引用了 size.

◆ FileData() [2/2]

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

Deep-copies another FileData.

在文件 FileData.cpp 第 28 行定义.

引用了 c.

◆ ~FileData()

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

File data.

在文件 FileData.cpp 第 38 行定义.

成员函数说明

◆ clone()

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

Implements eve::Data.

实现了 eve::Data.

在文件 FileData.cpp 第 40 行定义.

◆ getData()

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

◆ getExtension()

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

File extension without the leading dot.

在文件 FileData.h 第 34 行定义.

◆ getFilename()

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

Filename, extension (without dot) and base name.

在文件 FileData.h 第 32 行定义.

◆ getName()

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

Basename without extension.

在文件 FileData.h 第 36 行定义.

引用了 name.

◆ getSize()

size_t eve::filesystem::FileData::getSize ( ) const
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().


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