クラス rcsc::gzofstream

gzipped file output stream class. [詳細]

#include <gzfstream.h>

すべてのメンバ一覧

Public メソッド

 gzofstream ()
 default constructor
 gzofstream (const char *path, int level=gzfilebuf::DEFAULT_COMPRESSION, int strategy=gzfilebuf::DEFAULT_STRATEGY)
 construct streambuf with file name.
gzfilebufrdbuf () const
 get const_cast<> pointer to the underlying stream buffer.
bool is_open ()
 check if file is open
void open (const char *path, int level=gzfilebuf::DEFAULT_COMPRESSION, int strategy=gzfilebuf::DEFAULT_STRATEGY)
 open gzipped file.
void close ()
 close gzipped file.


説明

gzipped file output stream class.

This class implements ofstream for gzipped files. Seeking and putback is not supported yet.


コンストラクタとデストラクタ

rcsc::gzofstream::gzofstream (  ) 

default constructor

initializes stream buffer

rcsc::gzofstream::gzofstream ( const char *  path,
int  level = gzfilebuf::DEFAULT_COMPRESSION,
int  strategy = gzfilebuf::DEFAULT_STRATEGY 
) [explicit]

construct streambuf with file name.

引数:
path file path.
level compression level
strategy compression strategy
initialize stream buffer and open file


関数

gzfilebuf* rcsc::gzofstream::rdbuf (  )  const [inline]

get const_cast<> pointer to the underlying stream buffer.

戻り値:
pointer to the file buffer.

bool rcsc::gzofstream::is_open (  )  [inline]

check if file is open

戻り値:
true file opened.
false file is not opened.

void rcsc::gzofstream::open ( const char *  path,
int  level = gzfilebuf::DEFAULT_COMPRESSION,
int  strategy = gzfilebuf::DEFAULT_STRATEGY 
)

open gzipped file.

引数:
path file path.
level compression level
strategy compression strategy
Stream will be in state good() if file opens successfully; otherwise in state fail(). This differs from the behavior of ofstream, which never sets the state to good() and therefore won't allow you to reuse the stream for a second file unless you manually clear() the state. The choice is a matter of convenience.

void rcsc::gzofstream::close (  ) 

close gzipped file.

if close failed, stream will become state fail().


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:26 2008に生成されました。  doxygen 1.5.0