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

File which is created when a user drags and drops an actual file onto the eve game. Uses C++ stdio & filesystem. Filenames are system-dependent full paths. 更多...

#include <File.h>

类 eve::filesystem::cppfs::File 继承关系图:
eve::filesystem::File

Public 成员函数

 File (std::string filename)
 Constructs a File.
 
virtual ~File ()
 Releases File resources.
 
bool open (std::string newmode) override
 Opens open.
 
bool close () override
 Closes close.
 
bool isOpen () const override
 True when open.
 
int64_t getSize () override
 Byte length of the owned buffer.
 
int64_t read (void *dst, int64_t size) override
 Reads read.
 
bool write (const void *data, int64_t size) override
 Writes write.
 
bool flush () override
 Flushes flush.
 
bool isEOF () override
 True when eof.
 
int64_t tell () override
 Returns the current tell.
 
bool seek (uint64_t pos) override
 Seeks seek.
 
bool setBuffer (std::string bufmode, int64_t size) override
 Sets the buffer.
 
std::string getBuffer (int64_t &size) const override
 Returns the buffer.
 
std::string getMode () const override
 Returns the mode.
 
std::string getFilename () const override
 Full filename including extension.
 
- Public 成员函数 继承自 eve::filesystem::File
virtual FileData * read (int64_t size=ALL)
 Reads data from the file and allocates a Data object.
 
virtual bool write (const Data *data, int64_t size=ALL)
 Writes a Data object into the File.
 
virtual std::string getExtension () const
 Gets the file extension for this File, or empty string if none.
 

额外继承的成员函数

- 静态 Public 属性 继承自 eve::filesystem::File
static const int64_t ALL = -1
 Used to indicate ALL data in a file.
 

详细描述

File which is created when a user drags and drops an actual file onto the eve game. Uses C++ stdio & filesystem. Filenames are system-dependent full paths.

在文件 File.h 第 16 行定义.

构造及析构函数说明

◆ File()

eve::filesystem::cppfs::File::File ( std::string  filename)

Constructs a File.

在文件 File.cpp 第 20 行定义.

◆ ~File()

eve::filesystem::cppfs::File::~File ( )
virtual

Releases File resources.

重载 eve::filesystem::File .

在文件 File.cpp 第 22 行定义.

引用了 close().

成员函数说明

◆ close()

bool eve::filesystem::cppfs::File::close ( )
overridevirtual

Closes close.

实现了 eve::filesystem::File.

在文件 File.cpp 第 56 行定义.

被这些函数引用 ~File().

◆ flush()

bool eve::filesystem::cppfs::File::flush ( )
overridevirtual

Flushes flush.

实现了 eve::filesystem::File.

在文件 File.cpp 第 120 行定义.

引用了 file.

◆ getBuffer()

std::string eve::filesystem::cppfs::File::getBuffer ( int64_t &  size) const
overridevirtual

Returns the buffer.

实现了 eve::filesystem::File.

在文件 File.cpp 第 174 行定义.

引用了 size.

◆ getFilename()

std::string eve::filesystem::cppfs::File::getFilename ( ) const
overridevirtual

Full filename including extension.

实现了 eve::filesystem::File.

在文件 File.cpp 第 179 行定义.

◆ getMode()

std::string eve::filesystem::cppfs::File::getMode ( ) const
overridevirtual

Returns the mode.

实现了 eve::filesystem::File.

在文件 File.cpp 第 180 行定义.

◆ getSize()

int64_t eve::filesystem::cppfs::File::getSize ( )
overridevirtual

Byte length of the owned buffer.

实现了 eve::filesystem::File.

在文件 File.cpp 第 67 行定义.

被这些函数引用 isEOF().

◆ isEOF()

bool eve::filesystem::cppfs::File::isEOF ( )
overridevirtual

True when eof.

实现了 eve::filesystem::File.

在文件 File.cpp 第 126 行定义.

引用了 file, getSize() , 以及 tell().

◆ isOpen()

bool eve::filesystem::cppfs::File::isOpen ( ) const
overridevirtual

True when open.

实现了 eve::filesystem::File.

在文件 File.cpp 第 65 行定义.

被这些函数引用 setBuffer().

◆ open()

bool eve::filesystem::cppfs::File::open ( std::string  newmode)
overridevirtual

Opens open.

实现了 eve::filesystem::File.

在文件 File.cpp 第 26 行定义.

引用了 setBuffer().

◆ read()

int64_t eve::filesystem::cppfs::File::read ( void *  dst,
int64_t  size 
)
overridevirtual

Reads read.

实现了 eve::filesystem::File.

在文件 File.cpp 第 100 行定义.

引用了 file, read() , 以及 size.

被这些函数引用 read().

◆ seek()

bool eve::filesystem::cppfs::File::seek ( uint64_t  pos)
overridevirtual

Seeks seek.

实现了 eve::filesystem::File.

在文件 File.cpp 第 138 行定义.

引用了 file , 以及 pos.

◆ setBuffer()

bool eve::filesystem::cppfs::File::setBuffer ( std::string  bufmode,
int64_t  size 
)
overridevirtual

Sets the buffer.

实现了 eve::filesystem::File.

在文件 File.cpp 第 148 行定义.

引用了 file, isOpen() , 以及 size.

被这些函数引用 open().

◆ tell()

int64_t eve::filesystem::cppfs::File::tell ( )
overridevirtual

Returns the current tell.

实现了 eve::filesystem::File.

在文件 File.cpp 第 128 行定义.

引用了 file.

被这些函数引用 isEOF().

◆ write()

bool eve::filesystem::cppfs::File::write ( const void *  data,
int64_t  size 
)
overridevirtual

Writes write.

实现了 eve::filesystem::File.

在文件 File.cpp 第 110 行定义.

引用了 file , 以及 size.


该类的文档由以下文件生成:
  • src/modules/filesystem/cppfs/File.h
  • src/modules/filesystem/cppfs/File.cpp