*** empty log message ***

This commit is contained in:
Mike Goslin 2000-12-15 19:42:04 +00:00
parent fc195e2da5
commit 0eb216f274
4 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,15 @@
// Filename: decompressor.I
// Created by: mike (09Jan97)
//
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Function: Decompressor::get_progress
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
INLINE float Decompressor::
get_progress(void) const {
nassertr(_source_file_length > 0, 0.0);
return ((float)_total_bytes_read / (float)_source_file_length);
}

View File

@ -39,6 +39,8 @@ PUBLISHED:
bool decompress(Filename &source_file);
INLINE float get_progress(void) const;
private:
void init(PT(Buffer) buffer);
@ -57,4 +59,6 @@ private:
ZDecompressor *_decompressor;
};
#include "decompressor.I"
#endif

View File

@ -0,0 +1,15 @@
// Filename: extractor.I
// Created by: mike (09Jan97)
//
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Function: Extractor::get_progress
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
INLINE float Extractor::
get_progress(void) const {
nassertr(_source_file_length > 0, 0.0);
return ((float)_total_bytes_read / (float)_source_file_length);
}

View File

@ -37,6 +37,8 @@ PUBLISHED:
bool extract(Filename &source_file, const Filename &rel_path = "");
INLINE float get_progress(void) const;
private:
void init(PT(Buffer) buffer);
@ -53,4 +55,6 @@ private:
Filename _rel_path;
};
#include "extractor.I"
#endif