[root] / trunk / io / io / src / TArchiveFile.cxx Repository:
ViewVC logotype

Log of /trunk/io/io/src/TArchiveFile.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 28638 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 15 12:31:05 2009 UTC (5 years, 8 months ago) by rdm
File length: 7976 byte(s)
Diff to previous 25343
fix a regression that prevented a ZIP file, without member file specification,
from being opened.

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: 7931 byte(s)
Diff to previous 23122
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 23122 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 10 14:56:30 2008 UTC (6 years, 9 months ago) by rdm
File length: 7788 byte(s)
Copied from: trunk/io/src/TArchiveFile.cxx revision 23121
Diff to previous 22419
move the following directories into "io":

castor, chrip, dcache, gfal, io, rfio, sql, xml

Revision 22419 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 3 00:25:01 2008 UTC (6 years, 10 months ago) by rdm
Original Path: trunk/io/src/TArchiveFile.cxx
File length: 7788 byte(s)
Diff to previous 20882
From Andrew Savchenko:
ROOT can not be compiled with gcc-4.3.
Some ROOT source files doesn't contain required #include directives,
for example, they use strlen(), but #include <string.h> is missed or
malloc() is used and #include <stdlib.h> is missed. 

Earlier versions of gcc allowed some headers to be included implicitly,
but issued a warning (-Wimplicit-function-declaration). Newer one,
gcc-4.3 denies such silly behaviour: all required headers must be explicitly
included. 

Attached patch fixes this. Also it fixes another issue, which disallows
ROOT to compile under gcc-4.3: C functions don't belong to namespace std,
so expressions like std::memcpy() are no longer valid and plain memcpy()
should be used instead.

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/io/src/TArchiveFile.cxx
File length: 7768 byte(s)
Diff to previous 19826
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/io/src/TArchiveFile.cxx
File length: 7768 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/io/src/TArchiveFile.cxx
File length: 7822 byte(s)
Diff to previous 17819
remove :$ from tag line

Revision 17819 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 9 10:16:07 2007 UTC (7 years, 11 months ago) by rdm
Original Path: trunk/io/src/TArchiveFile.cxx
File length: 7832 byte(s)
Diff to previous 16496
correct cvs ident line (base/cont/meta -> io).

Revision 16496 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 10 06:49:48 2006 UTC (8 years, 3 months ago) by brun
Original Path: trunk/io/src/TArchiveFile.cxx
File length: 7833 byte(s)
Diff to previous 16437
Fix coding conventions

Revision 16437 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 5 14:53:48 2006 UTC (8 years, 3 months ago) by rdm
Original Path: trunk/io/src/TArchiveFile.cxx
File length: 7829 byte(s)
Diff to previous 15384
From Andreas:
For the beauty of the AliEn filename, there is a change in
TArchiveFile, so that it also recognizes an archive when it's member and
type are specified via the url option "?zip=galice.root".

Revision 15384 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 9 01:21:43 2006 UTC (8 years, 7 months ago) by rdm
Original Path: trunk/io/src/TArchiveFile.cxx
File length: 6988 byte(s)
Diff to previous 11918
added support in TNetFile and TWebFile ReadBuffers() for reading from
ZIP archive files. Also changed the mod_root2.c plugin to be able to
return the file size needed for finding the ZIP directory. ROOT zip files
published via Apache need to have the extension .rzip since .zip is already
handled by another handler.

Revision 11918 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 31 13:30:04 2005 UTC (9 years, 7 months ago) by rdm
Original Path: trunk/io/src/TArchiveFile.cxx
File length: 6987 byte(s)
Diff to previous 9543
use TUrl instead of private mini url parser.

Revision 9543 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 19 09:40:48 2004 UTC (10 years, 6 months ago) by rdm
Original Path: trunk/io/src/TArchiveFile.cxx
File length: 6984 byte(s)
Diff to previous 9420
improve error message.

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/src/TArchiveFile.cxx
File length: 6898 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.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9