📄 fileoutputstream.h
字号:
#ifndef _IO_FILEOUTPUTSTREAM_H
#define _IO_FILEOUTPUTSTREAM_H
#include <io/OutputStream.h>
namespace io
{
/**
* FileOutputStream writes bytes to a file in a file system.
*
* @ingroup io
*/
class FileOutputStream :
public OutputStream
{
public:
/**
* Opens a file output stream.
* @exception IOException
*/
explicit FileOutputStream( const lang::String& filename );
///
~FileOutputStream();
/**
* Writes specified number of bytes to the stream.
* @exception IOException
*/
void write( const void* data, int size );
/** Returns name of the file. */
lang::String toString() const;
private:
#ifdef __ee__
int m_fh;
#else
void* m_fh;
#endif
lang::String m_filename;
FileOutputStream();
FileOutputStream( const FileOutputStream& );
FileOutputStream& operator=( const FileOutputStream& );
};
} // io
#endif // _IO_FILEOUTPUTSTREAM_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -