/* tarcmd.cpp Tar() API implementation class. by Yoshioka Tsuneo(QWF00133@nifty.ne.jp) */ /* このファイルの利用条件: このソースファイルの利用制限は一切ありません。 ソースの一部、全部を商用、非商用など目的に かかわりなく他のプログラムで自由に使用できます。 パブリック・ドメイン・ソフトウェアと同様に扱えます。 プログラマ向けの要望(制限ではありません): ソース中に改善すべき点があればお知らせください。 ソースコード中にバグを見つけた場合は報告してください。 直した部分などありましたら教えてください。 断片的な情報でも結構です。 このファイルを利用した場合はなるべく教えてください。 */ /* LICENSE of this file: There is no restriction for using this file. You can use this file in your software for any purpose. In other words, you can use this file as Public Domain Software. RECOMMENDATION for Programmer(not restriction): If you find points to improve code, please report me. If you find bug in source code, please report me. If you fixed bug, please teach me. I want any trivial information. If you use this file, please report me. */ #include "stdafx.h" #include "tar32api.h" #include "cmdline.h" #include "tar32.h" #include "tar32dll.h" #include "util.h" #include "dlg.h" #include "tar32res.h" #include "fast_stl.h" #include "tarcmd.h" CTar32CmdInfo::CTar32CmdInfo(char *s, int len) : output(s,len), exception("",0){ hTar32StatusDialog = NULL; b_use_directory = true; b_absolute_paths = false; b_display_dialog = true; b_message_loop = true; b_inverse_procresult = false; b_print = false; b_confirm_overwrite = false; b_sort_by_path=false; b_sort_by_ext=false; b_archive_tar = true; archive_type = ARCHIVETYPE_NORMAL; compress_level = 0; wm_main_thread_end = 0; hParentWnd = NULL; idMessageThread = 0; archive_charset=CHARSET_UNKNOWN; //従来のプログラムでも文字変換が働くように、デフォルトで変換を行うようにする //archive_charset=CHARSET_DONTCARE; //デフォルトでは変換無し } static void cmd_create(CTar32CmdInfo &cmdinfo); static void cmd_extract(CTar32CmdInfo &cmdinfo); static void cmd_list(CTar32CmdInfo &cmdinfo); static void cmd_usage(CTar32CmdInfo &info) { info.output << "usage: TAR32.DLL