80 TIter nxu(fi.fUrlList);
82 while ((u = (TUrl *)nxu())) {
83 fUrlList->Add(new TUrl(u->GetUrl(), kTRUE));
90 fUUID =
new TUUID(fi.fUUID->AsString());
93 fMD5 =
new TMD5(*(fi.fMD5));
101 if (fi.fMetaDataList) {
102 fMetaDataList =
new TList;
104 TIter nxm(fi.fMetaDataList);
158 if (!in || strlen(in) <= 0)
return;
162 while (sin.Tokenize(t,
f1,
" ")) {
172 if (
fMD5->SetDigest(t) != 0)
183 Long64_t ent = -1, fst= -1, lst = -1;
206 if (cl.
IsNull()) cl =
"TObject";
281 while ((urlelement = (
TUrl*) nextUrl())) {
338 if ((tUrl =
dynamic_cast<TUrl *
>(
fUrlList->At(i))) !=
nullptr) {
403 if (!meta || strlen(meta) <= 0) {
427 if (!meta || strlen(meta) <= 0)
482 Printf(
"UUID: %s\nMD5: %s\nSize: %lld\nIndex: %d",
490 while ((u = (
TUrl*)next()))
496 Printf(
" === Meta Data Object ===");
500 TString out(
"current-url-undef -|-|- md5-undef");
541 const char *objClass,
Long64_t entries,
598 Printf(
" Name: %s\n Class: %s\n Entries: %lld\n"
599 " First: %lld\n Last: %lld",
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
int Int_t
Signed integer 4 bytes (int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
constexpr Ssiz_t kNPOS
The equivalent of std::string::npos for the ROOT class TString.
long long Long64_t
Portable signed long integer 8 bytes.
const char Option_t
Option string (const char).
void Printf(const char *fmt,...)
Formats a string in a circular formatting buffer and prints the string.
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 ~TFileInfo()
Destructor.
TUrl * fCurrentUrl
! current URL to access the file, points to URL in the fUrlList or 0, if the list end is reached
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.
This code implements the MD5 message-digest algorithm.
void Final()
MD5 finalization, ends an MD5 message-digest operation, writing the the message digest and zeroizing ...
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.
Bool_t TestBit(UInt_t f) const
virtual const char * GetName() const
Returns name of object.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual TClass * IsA() const
TObject()
TObject constructor.
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
This class defines a UUID (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDent...
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.