Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
test.cpp
Go to the documentation of this file.
1
2
#include "
zfstream.h
"
3
4
int
main
() {
5
6
// Construct a stream object with this filebuffer. Anything sent
7
// to this stream will go to standard out.
8
gzofstream
os( 1,
ios::out
);
9
10
// This text is getting compressed and sent to stdout.
11
// To prove this, run 'test | zcat'.
12
os <<
"Hello, Mommy"
<< endl;
13
14
os <<
setcompressionlevel
(
Z_NO_COMPRESSION
);
15
os <<
"hello, hello, hi, ho!"
<< endl;
16
17
setcompressionlevel
( os,
Z_DEFAULT_COMPRESSION
)
18
<<
"I'm compressing again"
<< endl;
19
20
os.
close
();
21
22
return
0;
23
24
}
gzofstream
Gzipped file output stream class.
Definition:
zfstream.h:80
main
int main()
Definition:
test.cpp:4
zfstream.h
out
static int out(void *out_desc, unsigned char *buf, unsigned len)
Definition:
gun.c:131
gzofstream::close
void close()
Close gzipped file.
Definition:
zfstream.cc:475
Z_NO_COMPRESSION
#define Z_NO_COMPRESSION
Definition:
zlib.h:186
setcompressionlevel
gzofstream & setcompressionlevel(gzofstream &s, int l)
Definition:
zfstream.h:106
Z_DEFAULT_COMPRESSION
#define Z_DEFAULT_COMPRESSION
Definition:
zlib.h:189
bial
zlib
contrib
iostream
test.cpp
Generated by
1.8.11