42 while (
TMap * obj = (
TMap *) next()) {
52 std::cout <<
"BEGIN DUMP" << std::endl;
55 while ((map = (
TMap *) next())) {
58 while ((pair = (
TPair *) next2())) {
64 std::cout <<
"Key: " << keyStr->
GetString() <<
" ";
67 std::cout <<
"Value: " << valueStr->GetString();
69 std::cout << std::endl;
73 std::cout <<
"END DUMP" << std::endl;
183 size = atol(
GetKey(i,
"size"));
185 const char *md5 =
GetKey(i,
"md5");
186 const char *uuid =
GetKey(i,
"guid");
187 const char *msd =
GetKey(i,
"msd");
191 if (uuid && !uuid[0])
206 Info(
"GetFileInfoList",
"Adding Url %s with Msd %s\n", turl.
Data(),
208 newfileinfolist->
Add(
new TFileInfo(turl, size, uuid, md5));
210 return newfileinfolist;
219 Int_t totalfiles = 0;
225 printf(
"( %06d ) LFN: %-80s Size[Bytes]: %10s GUID: %s\n",
229 printf(
"( %06d ) LFN: .../%-48s Size[Bytes]: %10s GUID: %s\n",
234 totaldata += atol(
GetKey(i,
"size"));
238 printf(
"------------------------------------------------------------\n");
239 printf(
"-> Result contains %.02f MB in %d Files.\n",
240 totaldata / 1024. / 1024., totalfiles);
245 while ((map = (
TMap *) next())) {
248 printf(
"------------------------------------------------------------\n");
249 while ((pair = (
TPair *) next2())) {
254 if (keyStr && valueStr)
255 printf(
"( %06d ) [ -%16s ] = %s\n", i, keyStr->
GetName(),
256 valueStr->GetName());
virtual TList * GetFileInfoList() const
Return a file info list.
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
Collectable string class.
This class represents a WWW compatible URL.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
const char * GetOptions() const
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
virtual Bool_t SetKey(UInt_t i, const char *key, const char *value)
Set the key.
virtual const char * GetFileNamePath(UInt_t i) const
Return file name path.
virtual void Print(Option_t *option="") const
Print the AlienResult info.
const THashTable * GetTable() const
virtual const TEntryList * GetEntryList(UInt_t i) const
Return the entry list, if evtlist was defined as a tag.
const char * GetName() const
Returns name of object.
R__EXTERN TSystem * gSystem
virtual const char * GetPath(UInt_t i) const
Return path.
virtual TObject * Remove(TObject *obj)
Remove object from the list.
virtual void DumpResult()
Dump result set.
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
TString GetString() const
virtual const char * GetFileName(UInt_t i) const
Return a file name.
Class used by TMap to store (key,value) pairs.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
virtual const char * GetKey(UInt_t i, const char *key) const
Return the key.
Mother of all ROOT objects.
virtual void Add(TObject *obj)
void SetOptions(const char *opt)
Class describing a generic file including meta information.
virtual Int_t GetSize() const
A List of entry numbers in a TTree or TChain.
const char * Data() const