36 : fSeqNum(seqnum), fStatus(kSubmitted), fUsedCPU(0.), fOptions(opt),
37 fEntries(entries),
fFirst(first),
38 fBytes(0), fParList("-"), fOutputList(0),
39 fFinalized(
kFALSE), fArchived(kFALSE), fResultFile("-"),
40 fPrepTime(0.), fInitTime(0.), fProcTime(0.), fMergeTime(0.),
41 fRecvTime(-1), fTermTime(-1), fNumWrks(-1), fNumMergers(-1)
50 fEnd.Set(fStart.Convert()-1);
55 fInputList = (
TList *) (inlist->Clone());
56 fInputList->SetOwner();
60 fLogFile =
new TMacro(
"LogFile");
69 TIter nxo(fInputList);
72 if (!strcmp(o->
GetName(),
"varexp")) {
77 varsel.
Form(
"\"%s\";", varsel.
Data());
79 if (!strcmp(o->
GetName(),
"selection"))
83 Info(
"TQueryResult",
"selec: %s, varsel: %s", selec, varsel.
Data());
85 fLogFile->AddLine(
TString::Format(
"TQueryResult: selec: %s, varsel: %s",
86 selec, varsel.
Data()));
89 fSelecImp =
new TMacro(selec, varsel);
100 fLibList = (pl && (strlen(pl) > 0)) ? pl :
"-";
185 if (aclicMode.
Length() > 0)
195 Info(
"SaveSelector",
"precompiled selector: just save the name");
210 "could not locate selector implementation file (%s)", selec.
Data());
220 char *p = (
char *) strrchr(selc,
'.');
222 strlcpy(p+1,
"h",strlen(p));
226 "bad formatted name (%s): could not build header file name", selc);
235 "could not locate selector header file (%s)", selc);
261 Info(
"RecordEnd",
"output list cloned successfully!");
263 Warning(
"RecordEnd",
"unable to clone output list!!!");
306 if (archfile && (strlen(archfile) > 0))
317 const char *qst[] = {
318 "aborted ",
"submitted",
"running ",
"stopped ",
"completed"
345 if (!full && (last > -1))
350 const char *fin =
fFinalized ?
"finalized" : qst[st];
351 const char *arc =
fArchived ?
"(A)" :
"";
352 Printf(
"+++ #:%d ref:\"%s:%s\" sel:%s %9s%s %s",
356 Printf(
"+++ #:%d ref:\"%s:%s\" varsel:%s %s",
371 Printf(
"+++ process: %.3f sec (CPU time: %.1f sec)", elapsed,
fUsedCPU);
387 Printf(
"+++ processed: %lld events (size: %.3f MBs)",
fEntries, size);
388 Printf(
"+++ rate: %.1f evts/sec", rate);
402 res.
Insert(0,
"<PROOF_SandBox>/");
405 res = (fStatus ==
kAborted) ?
"not available" :
"sent to client";
467 while ((o = nxoo())) {
521 if (!strncmp(o->
ClassName(), classname, strlen(classname)))
void Add(TObject *obj, const char *name=0, Int_t check=-1)
Add object with name to browser.
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
virtual const char * GetTitle() const
Returns title of object.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
virtual TString SplitAclicMode(const char *filename, TString &mode, TString &args, TString &io) const
This method split a filename of the form: ~~~ {.cpp} [path/]macro.C[+|++[k|f|g|O|c|s|d|v|-]][(args)]...
void Browse(TBrowser *b=0)
To support browsing of the results.
virtual int GetPid()
Get process id.
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
void SaveSelector(const char *selec)
Save the selector header and implementation into the dedicated TMacro instances.
UInt_t Convert(Bool_t toGMT=kFALSE) const
Convert fDatime from TDatime format to the standard time_t format.
void Set()
Set Date/Time to current time as reported by the system.
TMacro * GetSelecHdr() const
virtual void SetName(const char *name)
Change (i.e.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
Regular expression class.
void AddLogLine(const char *logline)
Fill log file.
Class supporting a collection of lines with C++ code.
ClassImp(TQueryResult) TQueryResult
Main constructor.
TQueryResult * CloneInfo()
Return an instance of TQueryResult containing only the local info fields, i.e.
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
virtual char * Which(const char *search, const char *file, EAccessMode mode=kFileExists)
Find location of file in a search path.
TMacro * GetSelecImp() const
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
TString & Insert(Ssiz_t pos, const char *s)
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
static const char * GetMacroPath()
Get macro search path. Static utility function.
virtual TObject * Clone(const char *newname="") const
Make a clone of an collection using the Streamer facility.
const char * Data() const
virtual Bool_t IsDone() const
void Print(Option_t *opt="") const
Print query content. Use opt = "F" for a full listing.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
void Info(const char *location, const char *msgfmt,...)
Int_t Atoi() const
Return integer value of string.
virtual void SetOutputList(TList *out, Bool_t adopt=kTRUE)
Set / change the output list.
A container class for query results.
virtual void SetProcessInfo(Long64_t ent, Float_t cpu=0., Long64_t siz=-1, Float_t inittime=0., Float_t proctime=0.)
Set processing info.
void AddInput(TObject *obj)
Add obj to the input list.
Using a TBrowser one can browse all ROOT objects.
R__EXTERN TSystem * gSystem
virtual const char * GetLibraries(const char *regexp="", const char *option="", Bool_t isRegexp=kTRUE)
Return a space separated list of loaded shared libraries.
static Bool_t IsStandardDraw(const char *selec)
Find out if this is a standard selection used for Draw actions (either TSelectorDraw, TProofDraw or deriving from them).
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual TObject * Remove(TObject *obj)
Remove object from the list.
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
virtual void RecordEnd(EQueryStatus status, TList *outlist=0)
End of query settings.
virtual Int_t ReadFile(const char *filename)
Read lines in filename in this macro.
virtual const char * GetName() const
Returns name of object.
Bool_t Matches(const char *ref)
Return TRUE if reference ref matches.
TString & Remove(Ssiz_t pos)
TObject * GetInputObject(const char *classname) const
Return first instance of class 'classname' in the input list.
virtual Int_t GetSize() const
virtual const char * GetName() const
Returns name of object.
The TTimeStamp encapsulates seconds and ns since EPOCH.
virtual void SetInputList(TList *in, Bool_t adopt=kTRUE)
Set / change the input list.
virtual ~TQueryResult()
Destructor.
void SetArchived(const char *archfile)
Set (or update) query in archived state.
Mother of all ROOT objects.
virtual void Add(TObject *obj)
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
Bool_t operator==(const TQueryResult &qr1, const TQueryResult &qr2)
Compare two query result instances for equality.
const char * AsString() const
Return the date & time as a string (ctime() format).
virtual const char * GetTitle() const
Returns title of object.
virtual void SetTitle(const char *title="")
Change (i.e. set) the title of the TNamed.
virtual TObjString * AddLine(const char *text)
Add line with text in the list of lines of this macro.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.