NX 1.0.3
niu2x's base c++ helper library
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
nx::file_system::File类 参考

#include <file_system.h>

类 nx::file_system::File 继承关系图:
Inheritance graph
[图例]
nx::file_system::File 的协作图:
Collaboration graph
[图例]

Public 成员函数

 File (const String &p)
 
 File (const String &p, FILE *file, OpenMode m)
 
 ~File ()
 
void close ()
 
bool open (OpenMode mode)
 
bool open_read ()
 
bool open_write ()
 
const Optional< OpenMode > & get_mode () const
 
ReadResult read (void *buffer, size_t bytes) override
 
WriteResult write (const void *buffer, size_t bytes) override
 
- Public 成员函数 继承自 nx::Read
virtual ~Read ()=0
 
bool read_exact (void *buffer, size_t bytes)
 
ReadAllResult read_all ()
 
- Public 成员函数 继承自 nx::Write
virtual ~Write ()=0
 
virtual bool write_all (const void *buffer, size_t bytes)
 

静态 Public 成员函数

static Filein ()
 
static Fileout ()
 
static Fileerr ()
 

构造及析构函数说明

◆ File() [1/2]

nx::file_system::File::File ( const String p)
explicit

◆ File() [2/2]

nx::file_system::File::File ( const String p,
FILE *  file,
OpenMode  m 
)

◆ ~File()

nx::file_system::File::~File ( )

成员函数说明

◆ close()

void nx::file_system::File::close ( )

◆ err()

static File & nx::file_system::File::err ( )
static

◆ get_mode()

const Optional< OpenMode > & nx::file_system::File::get_mode ( ) const
inline

◆ in()

static File & nx::file_system::File::in ( )
static

◆ open()

bool nx::file_system::File::open ( OpenMode  mode)

◆ open_read()

bool nx::file_system::File::open_read ( )
inline

◆ open_write()

bool nx::file_system::File::open_write ( )
inline

◆ out()

static File & nx::file_system::File::out ( )
static

◆ read()

ReadResult nx::file_system::File::read ( void *  buffer,
size_t  bytes 
)
overridevirtual

实现了 nx::Read.

◆ write()

WriteResult nx::file_system::File::write ( const void *  buffer,
size_t  bytes 
)
overridevirtual

实现了 nx::Write.


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