34 : fCurrentUrl(nullptr), fUrlList(nullptr),
fSize(-1), fUUID(nullptr), fMD5(nullptr),
35 fMetaDataList(nullptr), fIndex(-1)
75 fCurrentUrl(nullptr), fUrlList(nullptr),
76 fSize(fi.
fSize), fUUID(nullptr), fMD5(nullptr),
77 fMetaDataList(nullptr), fIndex(fi.fIndex)
84 while ((u = (
TUrl *)nxu())) {
160 if (!in || strlen(in) <= 0)
return;
164 while (sin.Tokenize(t,
f1,
" ")) {
185 Long64_t ent = -1, fst= -1, lst = -1;
208 if (cl.
IsNull()) cl =
"TObject";
283 while ((urlelement = (
TUrl*) nextUrl())) {
405 if (!meta || strlen(meta) <= 0) {
429 if (!meta || strlen(meta) <= 0)
452 if (fIndex < fi->
fIndex) {
484 Printf(
"UUID: %s\nMD5: %s\nSize: %lld\nIndex: %d",
492 while ((u = (
TUrl*)next()))
498 Printf(
" === Meta Data Object ===");
502 TString out(
"current-url-undef -|-|- md5-undef");
526 fLast(last), fTotBytes(totbytes), fZipBytes(zipbytes)
529 if (!
p.BeginsWith(
"/")) {
543 const char *objClass,
Long64_t entries,
547 fLast(last), fTotBytes(totbytes), fZipBytes(zipbytes)
600 Printf(
" Name: %s\n Class: %s\n Entries: %lld\n"
601 " First: %lld\n Last: %lld",
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
winID h TVirtualViewer3D TVirtualGLPainter p
void Printf(const char *fmt,...)
Formats a string in a circular formatting buffer and prints the string.
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.
TList * fUrlList
current URL to access the file, points to URL
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
TFileInfoMeta * GetMetaData(const char *meta=nullptr) const
Get meta data object with specified name.
Bool_t RemoveMetaData(const char *meta=nullptr)
Remove the metadata object.
Int_t Compare(const TObject *obj) const override
Compare TFileInfo object by their first urls.
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.
TUrl * GetCurrentUrl() const
Return the current url.
void SetUUID(const char *uuid)
Set the UUID to the value associated to the string 'uuid'.
TFileInfo(const char *url=nullptr, Long64_t size=-1, const char *uuid=nullptr, const char *md5=nullptr, TObject *meta=nullptr)
Constructor.
void ParseInput(const char *in)
Parse the input line to extract init information from 'in'; the input string is tokenized on ' '; the...
void Print(Option_t *options="") const override
Print information about this object.
TObject * After(const TObject *obj) const override
Returns the object after object obj.
TObject * FindObject(const char *name) const override
Find an object in this list using its name.
void Add(TObject *obj) override
TObject * Remove(TObject *obj) override
Remove object from the list.
TObject * First() const override
Return the first object in the list. Returns 0 when list is empty.
TObject * At(Int_t idx) const override
Returns the object at position idx. Returns 0 if idx is out of range.
void AddFirst(TObject *obj) override
Add object at the beginning of the list.
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'.
TClass * IsA() const override
void Print(Option_t *option="") const override
Dump this marker with its attributes.
The TNamed class is the base class for all named ROOT classes.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
virtual void SetName(const char *name)
Set the name of the TNamed.
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.
virtual TClass * IsA() const
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.
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 override
Compare two urls as strings.