joutputstream.h
来自「b tree code for index in the database d」· C头文件 代码 · 共 63 行
H
63 行
//////////////////////////////////////////////////////////////////
///
/// (C) 2007: Yuriy Soroka <ysoroka@scalingweb.com>
/// Anton Fedoruk <afedoruk@scalingweb.com>
///
//////////////////////////////////////////////////////////////////
#ifndef __JOutputStream_h__
#define __JOutputStream_h__
#include "PlatformTypes.h"
# ifdef Q_OS_WIN32
# define JSTREAM_EXPORT __declspec(dllexport)
# else
# define JSTREAM_EXPORT
# endif // Q_OS_WIN32
///
/// Class OutputStream
///
class JSTREAM_EXPORT JOutputStream
{
public:
virtual ~JOutputStream();
///
/// Set internal stream position to new value
virtual bool seek( gint64 position ) = 0;
///
/// Returns stream size
virtual gint64 size() = 0;
// Write functions
virtual int write(char ch);
virtual gint64 write(const char* pBuffer);
virtual gint64 write(const char* pBuffer, gint64 bufLen ) = 0;
///
/// Returns current internal stream data pointer
virtual gint64 pos() const;
///
/// Set internal stream pointer to beginning
virtual void reset();
///
/// Close stream
virtual void close();
///
///Flushes buffered data
virtual void flush();
///
/// Resize stream
virtual void resize( gint64 newSize );
};
#endif // __JOutputStream_h__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?