Adonthell  0.4
fileops.cc File Reference

Defines the igzstream, ogzstream and fileops classes. More...

#include <stdio.h>
#include <iostream>
#include <SDL_endian.h>
#include "fileops.h"
Include dependency graph for fileops.cc:

Go to the source code of this file.

Functions

bool & operator<< (bool &n, igzstream &gfile)
 Reads a boolean. More...
 
char & operator<< (char &n, igzstream &gfile)
 Reads a char. More...
 
u_int8operator<< (u_int8 &n, igzstream &gfile)
 Reads a u_int8. More...
 
s_int8operator<< (s_int8 &n, igzstream &gfile)
 Reads a s_int8. More...
 
u_int16operator<< (u_int16 &n, igzstream &gfile)
 Reads a u_int16. More...
 
s_int16operator<< (s_int16 &n, igzstream &gfile)
 Reads a s_int16. More...
 
u_int32operator<< (u_int32 &n, igzstream &gfile)
 Reads a u_int32. More...
 
s_int32operator<< (s_int32 &n, igzstream &gfile)
 Reads a s_int32. More...
 
string & operator<< (string &s, igzstream &gfile)
 Reads a string. More...
 
float & operator<< (float &f, igzstream &gfile)
 Reads a float. More...
 
const bool & operator>> (const bool &n, ogzstream &gfile)
 Writes a boolean. More...
 
const char & operator>> (const char &n, ogzstream &gfile)
 Writes a char. More...
 
const u_int8operator>> (const u_int8 &n, ogzstream &gfile)
 Writes a u_int8. More...
 
const s_int8operator>> (const s_int8 &n, ogzstream &gfile)
 Writes a s_int8. More...
 
const u_int16operator>> (const u_int16 &n, ogzstream &gfile)
 Writes a u_int16. More...
 
const s_int16operator>> (const s_int16 &n, ogzstream &gfile)
 Writes a s_int16. More...
 
const u_int32operator>> (const u_int32 &n, ogzstream &gfile)
 Writes a u_int32. More...
 
const s_int32operator>> (const s_int32 &n, ogzstream &gfile)
 Writes a s_int32. More...
 
string & operator>> (const string &s, ogzstream &gfile)
 Writes a string. More...
 
const float & operator>> (const float &f, ogzstream &gfile)
 Writes a float. More...
 

Detailed Description

Defines the igzstream, ogzstream and fileops classes.

Author
Alexandre Courbot alexa.nosp@m.ndre.nosp@m.courb.nosp@m.ot@l.nosp@m.inuxg.nosp@m.ames.nosp@m..com

Definition in file fileops.cc.

Function Documentation

◆ operator<<() [1/10]

bool& operator<< ( bool &  n,
igzstream gfile 
)

Reads a boolean.

Definition at line 87 of file fileops.cc.

◆ operator<<() [2/10]

char& operator<< ( char &  n,
igzstream gfile 
)

Reads a char.

Definition at line 103 of file fileops.cc.

◆ operator<<() [3/10]

u_int8& operator<< ( u_int8 n,
igzstream gfile 
)

Reads a u_int8.

Definition at line 116 of file fileops.cc.

◆ operator<<() [4/10]

s_int8& operator<< ( s_int8 n,
igzstream gfile 
)

Reads a s_int8.

Definition at line 131 of file fileops.cc.

◆ operator<<() [5/10]

u_int16& operator<< ( u_int16 n,
igzstream gfile 
)

Reads a u_int16.

Definition at line 146 of file fileops.cc.

◆ operator<<() [6/10]

s_int16& operator<< ( s_int16 n,
igzstream gfile 
)

Reads a s_int16.

Definition at line 162 of file fileops.cc.

◆ operator<<() [7/10]

u_int32& operator<< ( u_int32 n,
igzstream gfile 
)

Reads a u_int32.

Definition at line 178 of file fileops.cc.

◆ operator<<() [8/10]

s_int32& operator<< ( s_int32 n,
igzstream gfile 
)

Reads a s_int32.

Definition at line 194 of file fileops.cc.

◆ operator<<() [9/10]

string& operator<< ( string &  s,
igzstream gfile 
)

Reads a string.

Definition at line 210 of file fileops.cc.

◆ operator<<() [10/10]

float& operator<< ( float &  f,
igzstream gfile 
)

Reads a float.

Definition at line 234 of file fileops.cc.

◆ operator>>() [1/10]

const bool& operator>> ( const bool &  n,
ogzstream gfile 
)

Writes a boolean.

Definition at line 277 of file fileops.cc.

◆ operator>>() [2/10]

const char& operator>> ( const char &  n,
ogzstream gfile 
)

Writes a char.

Definition at line 285 of file fileops.cc.

◆ operator>>() [3/10]

const u_int8& operator>> ( const u_int8 n,
ogzstream gfile 
)

Writes a u_int8.

Definition at line 292 of file fileops.cc.

◆ operator>>() [4/10]

const s_int8& operator>> ( const s_int8 n,
ogzstream gfile 
)

Writes a s_int8.

Definition at line 299 of file fileops.cc.

◆ operator>>() [5/10]

const u_int16& operator>> ( const u_int16 n,
ogzstream gfile 
)

Writes a u_int16.

Definition at line 306 of file fileops.cc.

◆ operator>>() [6/10]

const s_int16& operator>> ( const s_int16 n,
ogzstream gfile 
)

Writes a s_int16.

Definition at line 314 of file fileops.cc.

◆ operator>>() [7/10]

const u_int32& operator>> ( const u_int32 n,
ogzstream gfile 
)

Writes a u_int32.

Definition at line 322 of file fileops.cc.

◆ operator>>() [8/10]

const s_int32& operator>> ( const s_int32 n,
ogzstream gfile 
)

Writes a s_int32.

Definition at line 330 of file fileops.cc.

◆ operator>>() [9/10]

string& operator>> ( const string &  s,
ogzstream gfile 
)

Writes a string.

Definition at line 338 of file fileops.cc.

◆ operator>>() [10/10]

const float& operator>> ( const float &  f,
ogzstream gfile 
)

Writes a float.

Definition at line 350 of file fileops.cc.