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]
Classes | Macros | Functions
zstream.h File Reference
#include <strstream.h>
#include <string.h>
#include <stdio.h>
#include "zlib.h"

Go to the source code of this file.

Classes

class  zstringlen
 
class  izstream
 
class  ozstream
 

Macros

#define SET_BINARY_MODE(file)
 

Functions

template<class T , class Items >
int read (izstream &zs, T *x, Items items)
 
template<class T >
izstreamoperator> (izstream &zs, T &x)
 
izstreamoperator> (izstream &zs, char *x)
 
char * read_string (izstream &zs)
 
template<class T , class Items >
int write (ozstream &zs, const T *x, Items items)
 
template<class T >
ozstreamoperator< (ozstream &zs, const T &x)
 
ozstreamoperator< (ozstream &zs, const char *x)
 
template<class T >
ostream & operator<< (ozstream &zs, const T &x)
 

Macro Definition Documentation

◆ SET_BINARY_MODE

#define SET_BINARY_MODE (   file)

Definition at line 37 of file zstream.h.

Referenced by izstream::open(), and ozstream::open().

Function Documentation

◆ operator<() [1/2]

template<class T >
ozstream& operator< ( ozstream zs,
const T &  x 
)
inline

Definition at line 272 of file zstream.h.

References ozstream::fp(), and gzwrite().

Referenced by operator<(), vl::Renderer::Renderer(), and vl::SlicedVolume::updateUniforms().

◆ operator<() [2/2]

ozstream& operator< ( ozstream zs,
const char *  x 
)
inline

Definition at line 286 of file zstream.h.

References ozstream::fp(), gzwrite(), operator<(), and zstringlen::value().

◆ operator<<()

template<class T >
ostream& operator<< ( ozstream zs,
const T &  x 
)
inline

Definition at line 302 of file zstream.h.

References ozstream::os(), and ozstream::os_flush().

◆ operator>() [1/2]

template<class T >
izstream& operator> ( izstream zs,
T &  x 
)
inline

Definition at line 123 of file zstream.h.

References izstream::fp(), and gzread().

◆ operator>() [2/2]

izstream& operator> ( izstream zs,
char *  x 
)
inline

Definition at line 138 of file zstream.h.

References izstream::fp(), gzread(), and zstringlen::value().

◆ read()

template<class T , class Items >
int read ( izstream zs,
T *  x,
Items  items 
)
inline

Definition at line 115 of file zstream.h.

References izstream::fp(), and gzread().

◆ read_string()

char* read_string ( izstream zs)
inline

Definition at line 145 of file zstream.h.

References izstream::fp(), gzread(), and zstringlen::value().

Referenced by main().

◆ write()

template<class T , class Items >
int write ( ozstream zs,
const T *  x,
Items  items 
)
inline

Definition at line 264 of file zstream.h.

References ozstream::fp(), and gzwrite().