12 #ifndef ROOT_TFileInfo 13 #define ROOT_TFileInfo 63 const char *md5 = 0,
TObject *meta = 0);
123 fIsTree(
kFALSE), fTotBytes(-1), fZipBytes(-1)
125 TFileInfoMeta(
const char *objPath,
const char *objClass =
"TTree",
129 const char *objClass,
Long64_t entries = -1,
136 const char *GetObject()
const;
138 const char *GetDirectory()
const;
virtual ~TFileInfo()
Destructor.
Int_t Compare(const TObject *obj) const
Compare TFileInfo object by their first urls.
void SetUUID(const char *uuid)
Set the UUID to the value associated to the string 'uuid'.
void Print(Option_t *options="") const
Print information about this object.
This class represents a WWW compatible URL.
Bool_t RemoveUrl(const char *url)
Remove an URL. Returns kTRUE if successful, kFALSE otherwise.
TUrl * GetCurrentUrl() const
Return the current url.
TFileInfo(const char *url=0, Long64_t size=-1, const char *uuid=0, const char *md5=0, TObject *meta=0)
Constructor.
TUrl * NextUrl()
Iterator function, start iteration by calling ResetUrl().
virtual Int_t GetEntries() const
Bool_t AddUrl(const char *url, Bool_t infront=kFALSE)
Add a new URL.
TUrl * GetUrlAt(Int_t i) const
This class defines a UUID (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDent...
#define ClassDef(name, id)
Bool_t AddMetaData(TObject *meta)
Add's a meta data object to the file info object.
This code implements the MD5 message-digest algorithm.
The TNamed class is the base class for all named ROOT classes.
TUrl * GetFirstUrl() const
void SetSize(Long64_t size)
Bool_t IsSortable() const
Bool_t SetCurrentUrl(const char *url)
Set 'url' as current URL, if in the list Return kFALSE if not in the list.
TUrl * FindByUrl(const char *url, Bool_t withDeflt=kFALSE)
Find an element from a URL. Returns 0 if not found.
TFileInfoMeta * GetMetaData(const char *meta=0) const
Get meta data object with specified name.
TList * fUrlList
current URL to access the file, points to URL
void ParseInput(const char *in)
Parse the input line to extract init information from 'in'; the input string is tokenized on ' '; the...
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
Bool_t RemoveUrlAt(Int_t i)
Remove URL at given position. Returns kTRUE on success, kFALSE on error.
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
TFileInfo & operator=(const TFileInfo &)
Mother of all ROOT objects.
Bool_t RemoveMetaData(const char *meta=0)
Remove the metadata object.
Class describing a generic file including meta information.
TList * GetMetaDataList() const
virtual const char * GetTitle() const
Returns title of object.