Alientech 0.01
An extendable game engine
C:/Alientech/TestWTF/ACHCommonUtils.h File Reference
#include <fstream>
#include <string>

Go to the source code of this file.

Functions

string readName (ifstream *file)
 Reads a name from a CargoHold file A name is defined as an unsigned character determining the length of the string followed by a null terminated string of characters.
int readInt (ifstream *file)
 Reads an integer from a CargoHold file.
unsigned readUnsigned (ifstream *file)
 Reads an unsigned integer from a CargoHold file.

Function Documentation

int readInt ( ifstream *  file)

Reads an integer from a CargoHold file.

Parameters:
fileA pointer to the file object

Definition at line 12 of file ACHCommonUtils.cpp.

string readName ( ifstream *  file)

Reads a name from a CargoHold file A name is defined as an unsigned character determining the length of the string followed by a null terminated string of characters.

Parameters:
fileA pointer to the file object

Definition at line 3 of file ACHCommonUtils.cpp.

unsigned readUnsigned ( ifstream *  file)

Reads an unsigned integer from a CargoHold file.

Parameters:
fileA pointer to the file object

Definition at line 19 of file ACHCommonUtils.cpp.