⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fileoutputstream.h

📁 这个是symbian下的一个蛮庞大的3D游戏源代码!对于学习3D开发的人有很大的帮助!
💻 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 + -