29 lines
689 B
C++
29 lines
689 B
C++
#pragma once
|
|
|
|
#include <stdio.h>
|
|
#include <io.h>
|
|
#include <istream>
|
|
|
|
class TGGiStreamFile
|
|
{
|
|
public:
|
|
TGGiStreamFile();
|
|
virtual ~TGGiStreamFile();
|
|
|
|
int Pack(const TCHAR *dwgFile, const TCHAR *lzwFile);
|
|
int UnPack(const TCHAR *lzwFile, const TCHAR *dwgFile);
|
|
|
|
void StreamCopy(std::istream & _libfile, std::ostream &sld_out, long sld_fsize);
|
|
|
|
private:
|
|
void InitValue(void);
|
|
|
|
int Read(int h,void *buf,int num,bool bProtect = false);
|
|
int Write(int h,void *buf,int num,bool bProtect = false);
|
|
|
|
void WriteBit(short,short,short, unsigned char *,int);
|
|
int ReadBit(short,short, unsigned char *,int);
|
|
int PackFile(short size,int h1,int h2);
|
|
int UnPackFile(short size,int h1,int h2);
|
|
|
|
}; |