33 : fCurrentUrl(0), fUrlList(0), fSize(-1), fUUID(0), fMD5(0),
34 fMetaDataList(0), fIndex(-1)
42 if (size > -1)
fSize = size;
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;
207 if (cl.
IsNull()) cl =
"TObject";
282 while ((urlelement = (
TUrl*) nextUrl())) {
339 if ((tUrl = dynamic_cast<TUrl *>(
fUrlList->
At(i))) != NULL) {
404 if (!meta || strlen(meta) <= 0) {
428 if (!meta || strlen(meta) <= 0)
451 if (fIndex < fi->
fIndex) {
453 }
else if (fIndex > fi->
fIndex) {
483 Printf(
"UUID: %s\nMD5: %s\nSize: %lld\nIndex: %d",
491 while ((u = (
TUrl*)next()))
496 while ((m = (
TObject*) nextm())) {
497 Printf(
" === Meta Data Object ===");
501 TString out(
"current-url-undef -|-|- md5-undef");
524 :
TNamed(objPath, objClass), fEntries(entries),
fFirst(first),
525 fLast(last), fTotBytes(totbytes), fZipBytes(zipbytes)
542 const char *objClass,
Long64_t entries,
599 Printf(
" Name: %s\n Class: %s\n Entries: %lld\n" 600 " First: %lld\n Last: %lld",
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
virtual const char * GetName() const
Returns name of object.
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 Final()
MD5 finalization, ends an MD5 message-digest operation, writing the the message digest and zeroizing ...
void Print(Option_t *options="") const
Print information about this object.
This class represents a WWW compatible URL.
TString & ReplaceAll(const TString &s1, const TString &s2)
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.
virtual void SetName(const char *name)
Set the name of the TNamed.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
TUrl * NextUrl()
Iterator function, start iteration by calling ResetUrl().
virtual void AddFirst(TObject *obj)
Add object at the beginning of the list.
Regular expression class.
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual const char * DirName(const char *pathname)
Return the directory name in pathname.
virtual void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
Bool_t AddUrl(const char *url, Bool_t infront=kFALSE)
Add a new URL.
TString & Prepend(const char *cs)
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
virtual TObject * FindObject(const char *name) const
Delete a TObjLink object.
TString & Replace(Ssiz_t pos, Ssiz_t n, const char *s)
This class defines a UUID (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDent...
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
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
Bool_t SetCurrentUrl(const char *url)
Set 'url' as current URL, if in the list Return kFALSE if not in the list.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
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.
R__EXTERN TSystem * gSystem
virtual TObject * Remove(TObject *obj)
Remove object from the list.
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
Int_t Compare(const TObject *obj) const
Compare two urls as strings.
The ROOT global object gROOT contains a list of all defined classes.
virtual TObject * After(const TObject *obj) const
Returns the object after object obj.
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
Bool_t InheritsFrom(const char *cl) const
Return kTRUE if this class inherits from a class with name "classname".
static constexpr double nm
RooCmdArg Index(RooCategory &icat)
TObjArray * Tokenize(const TString &delim) const
This function is used to isolate sequential tokens in a TString.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
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.
const char * AsString() const
Return UUID as string. Copy string immediately since it will be reused.
Mother of all ROOT objects.
Int_t SetDigest(const char *md5ascii)
Set the digest from the ASCII representation 'md5ascii'.
Bool_t RemoveMetaData(const char *meta=0)
Remove the metadata object.
virtual void Add(TObject *obj)
Bool_t IsDigit() const
Returns true if all characters in string are digits (0-9) or white spaces, i.e.
Class describing a generic file including meta information.
virtual const char * GetName() const
Returns name of object.
virtual Int_t GetSize() const
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual const char * GetTitle() const
Returns title of object.
const char * Data() const