33 : fCurrentUrl(0), fUrlList(0),
fSize(-1), fUUID(0), fMD5(0),
34 fMetaDataList(0), fIndex(-1)
42 if (size > -1)
fSize = size;
74 fCurrentUrl(0), fUrlList(0),
76 fMetaDataList(0), fIndex(fi.fIndex)
83 while ((u = (
TUrl *)nxu())) {
159 if (!in || strlen(in) <= 0)
return;
163 while (
sin.Tokenize(t,
f1,
" ")) {
184 Long64_t ent = -1, fst= -1, lst = -1;
190 if (!(
nm.IsNull())) {
207 if (cl.
IsNull()) cl =
"TObject";
208 if (!(
nm.IsNull())) {
282 while ((urlelement = (
TUrl*) nextUrl())) {
404 if (!meta || strlen(meta) <= 0) {
428 if (!meta || strlen(meta) <= 0)
451 if (fIndex < fi->
fIndex) {
483 Printf(
"UUID: %s\nMD5: %s\nSize: %lld\nIndex: %d",
491 while ((u = (
TUrl*)next()))
497 Printf(
" === Meta Data Object ===");
501 TString out(
"current-url-undef -|-|- md5-undef");
525 fLast(last), fTotBytes(totbytes), fZipBytes(zipbytes)
542 const char *objClass,
Long64_t entries,
546 fLast(last), fTotBytes(totbytes), fZipBytes(zipbytes)
599 Printf(
" Name: %s\n Class: %s\n Entries: %lld\n"
600 " First: %lld\n Last: %lld",
void Printf(const char *fmt,...)
R__EXTERN TSystem * gSystem
TClass instances represent classes, structs and namespaces in the ROOT type system.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Class describing a generic file including meta information.
virtual ~TFileInfo()
Destructor.
Int_t Compare(const TObject *obj) const
Compare TFileInfo object by their first urls.
TList * fUrlList
current URL to access the file, points to URL
void Print(Option_t *options="") const
Print information about this object.
TUrl * NextUrl()
Iterator function, start iteration by calling ResetUrl().
Bool_t AddUrl(const char *url, Bool_t infront=kFALSE)
Add a new URL.
Bool_t RemoveUrlAt(Int_t i)
Remove URL at given position. Returns kTRUE on success, kFALSE on error.
Bool_t AddMetaData(TObject *meta)
Add's a meta data object to the file info object.
Bool_t RemoveUrl(const char *url)
Remove an URL. Returns kTRUE if successful, kFALSE otherwise.
TUrl * GetFirstUrl() const
Bool_t RemoveMetaData(const char *meta=0)
Remove the metadata object.
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.
TFileInfo(const char *url=0, Long64_t size=-1, const char *uuid=0, const char *md5=0, TObject *meta=0)
Constructor.
TUrl * GetCurrentUrl() const
Return the current url.
TFileInfoMeta * GetMetaData(const char *meta=0) const
Get meta data object with specified name.
void SetUUID(const char *uuid)
Set the UUID to the value associated to the string 'uuid'.
void ParseInput(const char *in)
Parse the input line to extract init information from 'in'; the input string is tokenized on ' '; the...
virtual void Add(TObject *obj)
virtual TObject * After(const TObject *obj) const
Returns the object after object obj.
virtual TObject * Remove(TObject *obj)
Remove object from the list.
virtual void AddFirst(TObject *obj)
Add object at the beginning of the list.
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
This code implements the MD5 message-digest algorithm.
const char * AsString() const
Return message digest as string.
void Final()
MD5 finalization, ends an MD5 message-digest operation, writing the the message digest and zeroizing ...
Int_t SetDigest(const char *md5ascii)
Set the digest from the ASCII representation 'md5ascii'.
The TNamed class is the base class for all named ROOT classes.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual void SetName(const char *name)
Set the name of the TNamed.
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.
Mother of all ROOT objects.
virtual const char * GetName() const
Returns name of object.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
Regular expression class.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
TString & Replace(Ssiz_t pos, Ssiz_t n, const char *s)
const char * Data() const
Bool_t IsDigit() const
Returns true if all characters in string are digits (0-9) or white spaces, i.e.
TString & ReplaceAll(const TString &s1, const TString &s2)
TObjArray * Tokenize(const TString &delim) const
This function is used to isolate sequential tokens in a TString.
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
TString & Prepend(const char *cs)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
virtual const char * DirName(const char *pathname)
Return the directory name in pathname.
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
This class defines a UUID (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDent...
const char * AsString() const
Return UUID as string. Copy string immediately since it will be reused.
This class represents a WWW compatible URL.
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
Int_t Compare(const TObject *obj) const
Compare two urls as strings.
static constexpr double nm