#include <mxsZipPackage.h>
Public Types |
|
enum | clear_modes { CLEAR_NOW, CLEAR_ON_MAX_EXIT, CLEAR_ON_RESET, KEEP } |
Public Member Functions |
|
MSZipPackage (const MCHAR *file_name) | |
void | collect () |
bool | extract_to (const MCHAR *dir) |
const MCHAR * | find_extraction (const MCHAR *zip_name) |
void | add_extraction (const MCHAR *zip_name, const MCHAR *extracted_name) |
MSTR | expand_dir_for_extraction (const MSTR &dir) |
MSTR | expand_file_for_extraction (const MSTR &file_name) |
void | run_all_scripts () |
bool | run_script (const MCHAR *zip_name) |
Static Public Member Functions |
|
static ScripterExport bool | file_in_package (const MCHAR *file_name, MSTR *extract_dir=NULL) |
static int WINAPI | output_callback (void *, MCHAR far *buf, unsigned long size) |
static ScripterExport BOOL | search_current_package (const MCHAR *file_name, MCHAR *found_path) |
static ScripterExport MSTR | expand_dir (const MSTR &dir) |
static ScripterExport MSTR | expand_file (const MSTR &file_name) |
Public Attributes |
|
MSTR | file_name |
MSTR | package_name |
MSTR | description |
int | version |
MSTR | extract_dir |
MSTR | drop_file |
TabMZPExtraction | extractions |
clear_modes | clear_mode |
WORD | flags |
enum clear_modes |
{ CLEAR_NOW, CLEAR_ON_MAX_EXIT, CLEAR_ON_RESET, KEEP, }; // clear temp modes
MSZipPackage | ( | const MCHAR * | file_name | ) | [inline] |
: file_name(file_name), flags(0), clear_mode(CLEAR_ON_MAX_EXIT) { tag = INTERNAL_CLASS_TAG; }
void collect | ( | ) | [virtual] |
Implements Collectable.
static ScripterExport bool file_in_package | ( | const MCHAR * | file_name, |
MSTR * | extract_dir =
NULL |
||
) | [static] |
static int WINAPI output_callback | ( | void * | , |
MCHAR far * | buf, | ||
unsigned long | size | ||
) | [static] |
static ScripterExport BOOL search_current_package | ( | const MCHAR * | file_name, |
MCHAR * | found_path | ||
) | [static] |
bool extract_to | ( | const MCHAR * | dir | ) |
const MCHAR* find_extraction | ( | const MCHAR * | zip_name | ) | [inline] |
{ return extractions.find(zip_name); }
void add_extraction | ( | const MCHAR * | zip_name, |
const MCHAR * | extracted_name | ||
) |
void run_all_scripts | ( | ) |
bool run_script | ( | const MCHAR * | zip_name | ) |
WORD flags |
Reimplemented from Collectable.