include/joepack.h

Go to the documentation of this file.
00001 #ifndef _JOEPACK_H
00002 #define _JOEPACK_H
00003 
00004 #include <stdio.h>                      // Header File For Standard Input/Output
00005 #include <string>
00006 #include <iostream>
00007 #include <fstream>
00008 #include <cmath>
00009 #include <cassert>
00010 
00011 using namespace std;
00012 
00013 #include <map>
00014 
00015 #include "utility.h"
00016 
00017 #include "globals.h"
00018 
00019 class JOEPACK_FADATA
00020 {
00021 public:
00022         JOEPACK_FADATA() {offset = 0; length = 0;}
00023         unsigned int offset;
00024         unsigned int length;
00025 };
00026 
00027 class JOEPACK
00028 {
00029 private:
00030         map < string, JOEPACK_FADATA> fat;
00031         FILE * f;
00032         JOEPACK_FADATA * curfa;
00033         string packpath;
00034         
00035 public:
00036         JOEPACK() {f = NULL;curfa = NULL;packpath.clear();}
00037         ~JOEPACK() {ClosePack();}
00038         
00039         bool LoadPack(string fn);
00040         void ClosePack();
00041         
00042         bool Pack_fopen(string fn);
00043         void Pack_fclose();
00044         int Pack_fread(void * buffer, unsigned int size, unsigned int count);
00045         
00046         map <string, JOEPACK_FADATA> & GetFAT() {return fat;}
00047 };
00048 
00049 #endif

Generated on Thu Oct 19 04:05:47 2006 by  doxygen 1.4.6