12 #ifndef ROOT_TArchiveFile 13 #define ROOT_TArchiveFile 41 TArchiveFile() : fArchiveName(
""), fMemberName(
""), fMemberIndex(-1), fFile(0), fMembers(0), fCurMember(0) { }
86 const char *
GetName()
const {
return fName; }
virtual ~TArchiveMember()
Class describing an archive file containing multiple sub-files, like a ZIP or TAR archive...
Int_t fMemberIndex
Index of sub-file in archive.
const char * GetArchiveName() const
virtual ~TArchiveFile()
Dtor.
TObjArray * fMembers
Members in this archive.
Long64_t GetMemberFilePosition() const
Return position in archive of current member.
TString fComment
Comment field.
const char * GetComment() const
virtual Int_t SetMember(const char *member)
Explicitely make the specified member the current member.
TFile * fFile
File stream used to access the archive.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
static TArchiveFile * Open(const char *url, TFile *file)
Return proper archive file handler depending on passed url.
Long64_t fDsize
Decompressed size.
TString fMemberName
Sub-file name.
TArchiveMember * GetMember() const
TString fArchiveName
Archive file name.
TArchiveMember * fCurMember
Current archive member.
TArchiveFile & operator=(const TArchiveFile &)
Not implemented because TArchiveFile can not be copied.
TString fName
Name of member.
#define ClassDef(name, id)
Long64_t GetFilePosition() const
Bool_t IsDirectory() const
const char * GetMemberName() const
Long64_t GetPosition() const
Long64_t fPosition
Byte position in archive.
Long64_t GetDecompressedSize() const
Int_t GetNumberOfMembers() const
Returns number of members in archive.
const char * GetName() const
Returns name of object.
TDatime fModTime
Modification time.
virtual Int_t OpenArchive()=0
Bool_t fDirectory
Flag indicating this is a directory.
static Bool_t ParseUrl(const char *url, TString &archive, TString &member, TString &type)
Try to determine if url contains an anchor specifying an archive member.
virtual Int_t SetCurrentMember()=0
Long64_t GetCompressedSize() const
Mother of all ROOT objects.
TObjArray * GetMembers() const
Long64_t fCsize
Compressed size.
TDatime GetModTime() const
Int_t GetMemberIndex() const
Long64_t fFilePosition
Byte position in archive where member data starts.
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...