Alientech 0.01
An extendable game engine
C:/Alientech/tempClone/AlienCHPacker/main.cpp File Reference
#include <iostream>
#include <stdio.h>
#include <fstream>
#include <vector>
#include <string>
#include <Windows.h>
#include <stack>
#include <cmath>

Go to the source code of this file.

Classes

class  File
class  Directory

Functions

wstring sToWs (string str)
string wsToS (wstring wstr)
wstring prepPathForSearch (wstring path)
string grabNameFromPath (string path)
DirectorywalkDirectory (wstring dirPath)
void addItemToDirectory (Directory *dir, WIN32_FIND_DATA *fileData)
void writeUnsigned (unsigned n, ofstream *file)
void writeInt (int n, ofstream *file)
void writeName (string name, ofstream *file)
void writeDirStructure (Directory *dir, ofstream *file, stack< Directory * > *traversalStruct)
void writeStructure (Directory *rootDir, ofstream *file)
unsigned calculateChunks (unsigned size)
void writeFile (File *fileObj, ofstream *file, char *buffer)
void writeFiles (Directory *rootDir, ofstream *file, char *buffer)
int main (int argc, char *argv[])

Function Documentation

void addItemToDirectory ( Directory dir,
WIN32_FIND_DATA *  fileData 
)

Definition at line 97 of file main.cpp.

unsigned calculateChunks ( unsigned  size)

Definition at line 221 of file main.cpp.

string grabNameFromPath ( string  path)

Definition at line 34 of file main.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 282 of file main.cpp.

wstring prepPathForSearch ( wstring  path)

Definition at line 25 of file main.cpp.

wstring sToWs ( string  str)

Definition at line 11 of file main.cpp.

Directory* walkDirectory ( wstring  dirPath)
void writeDirStructure ( Directory dir,
ofstream *  file,
stack< Directory * > *  traversalStruct 
)

Definition at line 168 of file main.cpp.

void writeFile ( File fileObj,
ofstream *  file,
char *  buffer 
)

Definition at line 226 of file main.cpp.

void writeFiles ( Directory rootDir,
ofstream *  file,
char *  buffer 
)

Definition at line 266 of file main.cpp.

void writeInt ( int  n,
ofstream *  file 
)

Definition at line 155 of file main.cpp.

void writeName ( string  name,
ofstream *  file 
)

Definition at line 160 of file main.cpp.

void writeStructure ( Directory rootDir,
ofstream *  file 
)

Definition at line 203 of file main.cpp.

void writeUnsigned ( unsigned  n,
ofstream *  file 
)

Definition at line 150 of file main.cpp.

string wsToS ( wstring  wstr)

Definition at line 18 of file main.cpp.