Log of /trunk/io/io/inc/TArchiveFile.h
Parent Directory
Revision
26606 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Dec 2 20:36:09 2008 UTC (6 years, 1 month ago) by
pcanal
File length: 4433 byte(s)
Diff to
previous 25343
Following Igor Smirnov analysis fix several memory leaks, add checks for null pointer dereference, fix or add copy constructor and assignment operator when applicable, make the copy constructor and assignment operator private when the objects are not intended to be copiable.
Revision
25343 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Sep 2 08:44:16 2008 UTC (6 years, 4 months ago) by
rdm
File length: 4332 byte(s)
Diff to
previous 23913
correctly identify "multi?zip=bla.root" to be a zip archive with the file
name "multi" and make sure the TZIPFile plugin gets loaded. This fixes issue
33142.
Revision
9420 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Wed Jul 7 23:25:33 2004 UTC (10 years, 6 months ago) by
rdm
Original Path:
trunk/io/inc/TArchiveFile.h
File length: 4166 byte(s)
two new classes to read archive files. TArchiveFile is an abstract class
which uses the plugin manager to load a concrete archive reader. Currently
the TZIPFile class provides a ZIP archive reader. One can also imagine a
TTARFile to read tar files. We advice however to use ZIP archives since they
allow direct access to all its members via a directory structure which
is part of the file. The archive file access has been integrated into TFile
which also functions as byte reader to access the archive. This has the
enormous benefit that archives can be accessed using all the existing
remote file access classes, like TNetFile, TRFIOFile, TCastorFile, etc.
When creating ZIP files containing ROOT files make sure that the ROOT files
are not compressed since normally they are already ZIP compressed. on Linux
one can create a ZIP archive doing:
zip -n root multi file1.root file2.root file3.root ...
which creates the archive multi.zip, with all files ending with .root
not compressed.
The ROOT files in an archive can be simply accessed like this:
TFile *f = TFile::Open("multi.zip#file2.root")
or
TFile *f = TFile::Open("root://pcsalo/multi.zip#2")
where the second form opens the 3rd ROOT file in the archive via rootd.
A TFile can also be used to just browse an archive file, like:
TFile *f = TFile::Open("multi.zip")
f->GetArchive->Print()
A TBrowser interface will follow shortly.
The core ZIP reading code has been kindly provided by Lassi Tuura.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.