campo-sirio/include/archives.h
angelo 894e003cf1 Rif. mod. 95/19. Aggiunto oggetto TArchive, estratto da ba2200.cpp e
reso pubblico.


git-svn-id: svn://10.65.10.50/trunk@1808 c028cbd2-c16b-5b4b-a496-9718f37d4682
1995-09-11 15:13:50 +00:00

46 lines
1.1 KiB
C++
Executable File

#ifndef __ARCHIVES_H
#define __ARCHIVES_H
#ifndef __STDIO_H
#include <stdio.h>
#endif
#ifndef __STRINGS_H
#include <strings.h>
#endif
///////////////////////////////////////////////////////////
// TArchive
///////////////////////////////////////////////////////////
class ALArchive;
class TArchive : public TObject
{
enum { BUFSIZE = 4096*7 };
ALArchive* _arc;
protected:
KEY query() const;
FILE* ask_disk(TFilename& name, int disk, char floppy, bool lettura) const;
long fsize(FILE* f) const;
bool fsplit(const char* filename, char floppy, const char* desc = "") const;
bool fbuild(const char* filename, char floppy) const;
int build_backup_list(long firm, TString_array& fl) const;
int build_restore_list(long firm, char floppy, TString_array& fl) const;
public:
bool backup(const char* dir, char floppy, const char* desc);
bool backup(long firm, char floppy, const char* desc);
bool restore(const char* dir, char floppy, bool temp);
bool restore(long firm, char floppy, bool temp);
void stop_job();
};
#endif