46 Error(
"TArchiveFile",
"must specify a valid TFile");
123 ::Error(
"TArchiveFile::Open",
"must specify a valid TFile to access %s",
130 if (!
ParseUrl(url, archive, member, type))
135 if ((
h =
gROOT->GetPluginManager()->FindHandler(
"TArchiveFile", type))) {
136 if (
h->LoadPlugin() == -1)
195 if (archive ==
"" || member ==
"") {
int Int_t
Signed integer 4 bytes (int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
long long Long64_t
Portable signed long integer 8 bytes.
virtual Int_t SetCurrentMember()=0
~TArchiveFile() override
Dtor.
TArchiveMember * fCurMember
Current archive member.
TString fMemberName
Sub-file name.
static TArchiveFile * Open(const char *url, TFile *file)
Return proper archive file handler depending on passed url.
TString fArchiveName
Archive file name.
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.
Int_t fMemberIndex
Index of sub-file in archive.
Long64_t GetMemberFilePosition() const
Return position in archive of current member.
virtual Int_t SetMember(const char *member)
Explicitely make the specified member the current member.
Int_t GetNumberOfMembers() const
Returns number of members in archive.
TObjArray * fMembers
Members in this archive.
TArchiveFile(const TArchiveFile &)=delete
Not implemented because TArchiveFile can not be copied.
TFile * fFile
File stream used to access the archive.
TString fComment
Comment field.
TDatime fModTime
Modification time.
Long64_t fCsize
Compressed size.
Long64_t fPosition
Byte position in archive.
Long64_t fFilePosition
Byte position in archive where member data starts.
TArchiveMember & operator=(const TArchiveMember &rhs)
Assignment operator.
TString fName
Name of member.
TArchiveMember()
Default ctor.
Bool_t fDirectory
Flag indicating this is a directory.
Long64_t fDsize
Decompressed size.
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
Int_t GetEntriesFast() const
Int_t GetEntries() const override
Return the number of objects in array (i.e.
TObject * At(Int_t idx) const override
Collectable string class.
TObject & operator=(const TObject &rhs) noexcept
TObject assignment operator.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
TObject()
TObject constructor.
int CompareTo(const char *cs, ECaseCompare cmp=kExact) const
Compare a string to char *cs2.
const char * Data() const
TObjArray * Tokenize(const TString &delim) const
This function is used to isolate sequential tokens in a TString.
This class represents a WWW compatible URL.
const char * GetAnchor() const
const char * GetFile() const
const char * GetOptions() const