Disk ARchive  2.4.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
.pc/delete2/macro_tools.hpp
00001 /*********************************************************************/
00002 // dar - disk archive - a backup/restoration program
00003 // Copyright (C) 2002-2052 Denis Corbin
00004 //
00005 // This program is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU General Public License
00007 // as published by the Free Software Foundation; either version 2
00008 // of the License, or (at your option) any later version.
00009 // 
00010 // This program is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 // 
00015 // You should have received a copy of the GNU General Public License
00016 // along with this program; if not, write to the Free Software
00017 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00018 //
00019 // to contact the author : dar.linux@free.fr
00020 /*********************************************************************/
00021 // $Id$
00022 //
00023 /*********************************************************************/
00024 
00025 #ifndef MACRO_TOOLS_HPP
00026 #define MACRO_TOOLS_HPP
00027 
00028 #include "catalogue.hpp"
00029 #include "compressor.hpp"
00030 #include "infinint.hpp"
00031 #include "header_version.hpp"
00032 #include "generic_file.hpp"
00033 #include "scrambler.hpp"
00034 
00035 extern const version macro_tools_supported_version;
00036 
00037 extern void macro_tools_open_archive(const path &sauv_path,  // path to slices
00038                                      const string &basename,  // slice basename
00039                                      const string &extension,  // slice extensions
00040                                      S_I options,  // options to SAR (see sar.hpp)
00041                                      const string &pass, // pass key to unscramble
00042                                      generic_file *&ret1, // level 1 file (raw data) sar or zapette 
00043                                      scrambler *&scram, // NULL if pass is given an empty string else a scrambler (over raw data)
00044                                      compressor *&ret2, // compressor over scrambler or raw data (if no scrambler)
00045                                      header_version &ver, // header read from raw data
00046                                      const string &input_pipe, // named pipe for input when basename is "-" (dar_slave)
00047                                      const string &output_pipe, // named pipe for output when basename is "-" (dar_slave)
00048                                      const string & execute); // command to execute between slices
00049     // all allocated objects (ret1, ret2, scram), must be deleted when no more needed
00050 
00051 extern catalogue *macro_tools_get_catalogue_from(generic_file & f,  // raw data access object
00052                                                  compressor & zip,  // compressor object over raw data
00053                                                  bool info_details, // verbose display (throught user_interaction)
00054                                                  infinint &cat_size); // return size of archive in file (not in memory !)
00055 
00056 extern catalogue *macro_tools_get_catalogue_from(const string &basename);
00057 
00058 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines