Category : C Source Code
Archive   : YICONS24.ZIP
Filename : YAKLIB.H

 
Output of file : YAKLIB.H contained in archive : YICONS24.ZIP

#ifndef YAKLIB.H

#define YAKLIB.H

#include "stddefs.h"

#include

typedef byte * bytePointer;

class directoryEntry
{
public:
char filename[15];
unsigned long index;
unsigned long size;
directoryEntry() {filename[0] = '\0'; index = 0; size = 0;};
};


class yakLib
{
fstream myDataFile;
int numberOfEntries;
long directoryIndex;
char libFilename[15];
public:
void open(char * filename);
yakLib(char * filename);
void getDirectoryIndex(void);
directoryEntry getIndex(char * filename);
void addFile(char *filename);
unsigned long fileSize(char * filename);
void extractFile(char *filename);
int deleteFile(char *filename);
void listFiles(void);
char * loadToMem(char * filename);
long loadSizeToMem(char *&loadBuffer, char *filename);
};


char * loadDosToMem(char * filename);
long loadDosSizeToMem(char *&loadBuffer, char * filename);
#endif