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(),
R__EXTERN TSystem * gSystem
virtual Bool_t SetKey(UInt_t i, const char *key, const char *value)
Set the key.
virtual void Print(Option_t *option="") const
Print the AlienResult info.
virtual const char * GetPath(UInt_t i) const
Return path.
virtual const char * GetFileName(UInt_t i) const
Return a file name.
virtual const TEntryList * GetEntryList(UInt_t i) const
Return the entry list, if evtlist was defined as a tag.
virtual ~TAlienResult()
Cleanup object.
virtual TList * GetFileInfoList() const
Return a file info list.
virtual const char * GetKey(UInt_t i, const char *key) const
Return the key.
virtual const char * GetFileNamePath(UInt_t i) const
Return file name path.
virtual void DumpResult()
Dump result set.
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.
A List of entry numbers in a TTree or TChain.
Class describing a generic file including meta information.
virtual void Add(TObject *obj)
virtual TObject * Remove(TObject *obj)
Remove object from 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.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
const THashTable * GetTable() const
Collectable string class.
const char * GetName() const
Returns name of object.
const TString & GetString() const
Mother of all ROOT objects.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
Class used by TMap to store (key,value) pairs.
const char * Data() const
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
This class represents a WWW compatible URL.
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
void SetOptions(const char *opt)
const char * GetOptions() const