Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | List of all members
ozstream Class Reference

#include <zstream.h>

Public Member Functions

 ozstream ()
 
 ozstream (FILE *fp, int level=Z_DEFAULT_COMPRESSION)
 
 ozstream (const char *name, int level=Z_DEFAULT_COMPRESSION)
 
 ~ozstream ()
 
void open (const char *name, int level=Z_DEFAULT_COMPRESSION)
 
void open (FILE *fp, int level=Z_DEFAULT_COMPRESSION)
 
int close ()
 
int write (const void *buf, size_t len)
 
int flush (int _flush)
 
const char * error (int *errnum)
 
gzFile fp ()
 
ostream & os ()
 
void os_flush ()
 

Detailed Description

Definition at line 155 of file zstream.h.

Constructor & Destructor Documentation

◆ ozstream() [1/3]

ozstream::ozstream ( )
inline

Definition at line 158 of file zstream.h.

◆ ozstream() [2/3]

ozstream::ozstream ( FILE *  fp,
int  level = Z_DEFAULT_COMPRESSION 
)
inline

Definition at line 160 of file zstream.h.

References open().

◆ ozstream() [3/3]

ozstream::ozstream ( const char *  name,
int  level = Z_DEFAULT_COMPRESSION 
)
inline

Definition at line 164 of file zstream.h.

References open().

◆ ~ozstream()

ozstream::~ozstream ( )
inline

Definition at line 168 of file zstream.h.

References close().

Member Function Documentation

◆ close()

int ozstream::close ( )
inline

Definition at line 198 of file zstream.h.

References gzclose(), and gzwrite().

Referenced by main().

◆ error()

const char* ozstream::error ( int errnum)
inline

Definition at line 230 of file zstream.h.

References gzerror().

◆ flush()

int ozstream::flush ( int  _flush)
inline

Definition at line 219 of file zstream.h.

References gzflush().

◆ fp()

gzFile ozstream::fp ( )
inline

Definition at line 234 of file zstream.h.

Referenced by operator<(), and write().

◆ open() [1/2]

void ozstream::open ( const char *  name,
int  level = Z_DEFAULT_COMPRESSION 
)
inline

Definition at line 177 of file zstream.h.

References close(), gzopen(), and Z_DEFAULT_COMPRESSION.

Referenced by main().

◆ open() [2/2]

void ozstream::open ( FILE *  fp,
int  level = Z_DEFAULT_COMPRESSION 
)
inline

Definition at line 186 of file zstream.h.

References close(), gzdopen(), SET_BINARY_MODE, and Z_DEFAULT_COMPRESSION.

◆ os()

ostream& ozstream::os ( )
inline

Definition at line 236 of file zstream.h.

Referenced by operator<<().

◆ os_flush()

void ozstream::os_flush ( )
inline

Definition at line 241 of file zstream.h.

References gzwrite().

Referenced by operator<<().

◆ write()

int ozstream::write ( const void buf,
size_t  len 
)
inline

Definition at line 208 of file zstream.h.

References gzwrite().


The documentation for this class was generated from the following file: