fastdo  0.5.12
winux::BlockInFile类 参考

分块输入文件 更多...

#include <filesys.hpp>

类 winux::BlockInFile 继承关系图:
winux::BlockInFile 的协作图:

Public 成员函数

 BlockInFile (String const &filename, bool isTextMode=true)
 
bool nextBlock ()
 
virtual bool eof ()
 文件是否结束 更多...
 
- Public 成员函数 继承自 winux::File
 File (String const &filename, String const &mode, bool autoload=true)
 
virtual ~File ()
 
virtual bool open (String const &filename, String const &mode)
 打开文件 更多...
 
virtual bool close ()
 关闭文件 更多...
 
virtual winux::ulong read (void *buf, winux::ulong size)
 读数据,返回读取的字节数 更多...
 
virtual winux::ulong write (void const *data, winux::ulong size)
 写数据,返回写入字节数 更多...
 
virtual winux::ulong write (Buffer const &buf)
 
virtual bool rewind ()
 重置文件指针到头 更多...
 
virtual bool seek (long offset)
 移动文件指针,offset表示偏移量 更多...
 
virtual winux::ulong tell ()
 获得文件指针位置 更多...
 
virtual String getLine ()
 获取一行字符串,包括换行符 更多...
 
virtual int puts (String const &str)
 输出字符串 更多...
 
virtual winux::ulong size ()
 文件大小 更多...
 
virtual void * buffer (winux::ulong *size)
 取得缓冲区 更多...
 
virtual AnsiString buffer ()
 取得缓冲区 更多...
 
winux::ulong loadedSize () const
 
 operator bool () const
 
- Public 成员函数 继承自 winux::IFile
virtual ~IFile ()
 

Protected 属性

String _dirname
 目录名 path/to 更多...
 
String _basename
 文件名 filename.txt 更多...
 
String _filetitle
 文件标题 filename 更多...
 
String _extname
 扩展名 .txt 更多...
 
long _index
 文件索引 更多...
 
bool _isTextMode
 是否文本模式 更多...
 
StringArray _blockFiles
 要加载的分块文件 更多...
 
- Protected 属性 继承自 winux::File
String _filename
 
FILE * _fp
 
bool _autoload
 
winux::ulong _fileSize
 
winux::ulong _loadedSize
 
Buffer _buf
 

额外继承的成员函数

- Protected 成员函数 继承自 winux::File
void _loadData ()
 

详细描述

分块输入文件

在文件 filesys.hpp289 行定义.

构造及析构函数说明

winux::BlockInFile::BlockInFile ( String const &  filename,
bool  isTextMode = true 
)

成员函数说明

virtual bool winux::BlockInFile::eof ( )
virtual

文件是否结束

重载 winux::File .

bool winux::BlockInFile::nextBlock ( )

类成员变量说明

String winux::BlockInFile::_basename
protected

文件名 filename.txt

在文件 filesys.hpp293 行定义.

StringArray winux::BlockInFile::_blockFiles
protected

要加载的分块文件

在文件 filesys.hpp299 行定义.

String winux::BlockInFile::_dirname
protected

目录名 path/to

在文件 filesys.hpp292 行定义.

String winux::BlockInFile::_extname
protected

扩展名 .txt

在文件 filesys.hpp295 行定义.

String winux::BlockInFile::_filetitle
protected

文件标题 filename

在文件 filesys.hpp294 行定义.

long winux::BlockInFile::_index
protected

文件索引

在文件 filesys.hpp296 行定义.

bool winux::BlockInFile::_isTextMode
protected

是否文本模式

在文件 filesys.hpp298 行定义.


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