ROOT logo
ROOT » TREE » TREE » TQueryResult

class TQueryResult: public TNamed


TQueryResult

A container class for query results.


Function Members (Methods)

public:
TQueryResult()
TQueryResult(const TQueryResult&)
virtual~TQueryResult()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidBrowse(TBrowser* b = 0)
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
static TClass*TNamed::Class()
static TClass*TObject::Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Long64_tGetBytes() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
TDatimeGetEndTime() const
Long64_tGetEntries() const
Long64_tGetFirst() const
virtual const char*TObject::GetIconName() const
Float_tGetInitTime() const
TList*GetInputList()
TObject*GetInputObject(const char* classname) const
const char*GetLibList() const
TMacro*GetLogFile() const
virtual const char*TNamed::GetName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
const char*GetOptions() const
TList*GetOutputList()
const char*GetParList() const
Float_tGetProcTime() const
const char*GetResultFile() const
TMacro*GetSelecHdr() const
TMacro*GetSelecImp() const
Int_tGetSeqNum() const
TDatimeGetStartTime() const
TQueryResult::EQueryStatusGetStatus() const
virtual const char*TNamed::GetTitle() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Float_tGetUsedCPU() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual TClass*TNamed::IsA() const
virtual TClass*TObject::IsA() const
Bool_tIsArchived() const
virtual Bool_tIsDone() const
Bool_tIsDraw() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
Bool_tIsFinalized() const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
Bool_tMatches(const char* ref)
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TQueryResult&operator=(const TQueryResult&)
TNamed&TNamed::operator=(const TNamed& rhs)
TObject&TObject::operator=(const TObject& rhs)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* opt = "") const
virtual voidTNamed::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidTNamed::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTObject::ShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer& b)
virtual voidTNamed::Streamer(TBuffer& b)
virtual voidTObject::Streamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
TQueryResult(Int_t seqnum, const char* opt, TList* inlist, Long64_t entries, Long64_t first, const char* selec)
voidAddInput(TObject* obj)
voidAddLogLine(const char* logline)
TQueryResult*CloneInfo()
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
virtual voidRecordEnd(TQueryResult::EQueryStatus status, TList* outlist = 0)
voidSaveSelector(const char* selec)
voidSetArchived(const char* archfile)
virtual voidSetFinalized()
virtual voidSetInputList(TList* in, Bool_t adopt = kTRUE)
virtual voidSetOutputList(TList* out, Bool_t adopt = kTRUE)
virtual voidSetProcessInfo(Long64_t ent, Float_t cpu = 0., Long64_t siz = -1, Float_t inittime = 0., Float_t proctime = 0.)

Data Members

private:
enum EQueryStatus { kAborted
kSubmitted
kRunning
kStopped
kCompleted
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
Bool_tfArchivedwhether the query has been archived
Long64_tfBytesnumber of bytes processed
Bool_tfDrawtrue if draw action query
TDatimefEndtime when processing ended
Long64_tfEntriesnumber of entries processed
Bool_tfFinalizedwhether Terminate has been run
Long64_tfFirstfirst entry processed
Float_tfInitTimeInitialization time (seconds) (millisec precision)
TList*fInputListinput list; contains also data sets, entry list, ...
TStringfLibListblank-separated list of libs loaded at fStart
TMacro*fLogFilefile with log messages from the query
TStringTNamed::fNameobject identifier
TStringfOptionsprocessing options + aclic mode (<opt>#<aclic_mode>)
TList*fOutputListoutput list
TStringfParListcolon-separated list of PAR loaded at fStart
Float_tfProcTimeProcessing time (seconds) (millisec precision)
TStringfResultFileURL of the file where results have been archived
TMacro*fSelecHdrselector header file
TMacro*fSelecImpselector implementation file
Int_tfSeqNumquery unique sequential number
TDatimefStarttime when processing started
TQueryResult::EQueryStatusfStatusquery status
TStringTNamed::fTitleobject title
Float_tfUsedCPUreal CPU time used (seconds)

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TQueryResult(Int_t seqnum, const char* opt, TList* inlist, Long64_t entries, Long64_t first, const char* selec)
 Main constructor.
~TQueryResult()
 Destructor.
TQueryResult * CloneInfo()
 Return an instance of TQueryResult containing only the local
 info fields, i.e. no outputlist, liblist, dset, selectors, etc..
 Used for fast retrieve of information about existing queries
 and their status.
void SaveSelector(const char* selec)
 Save the selector header and implementation into the dedicated
 TMacro instances. The header is searched for in the same directory
 of the implementation file.
void RecordEnd(TQueryResult::EQueryStatus status, TList* outlist = 0)
 End of query settings.
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 AddLogLine(const char* logline)
 Fill log file.
void AddInput(TObject* obj)
 Add obj to the input list
void SetArchived(const char* archfile)
 Set (or update) query in archived state.
void Print(Option_t* opt = "") const
 Print query content. Use opt = "F" for a full listing.
void Browse(TBrowser* b = 0)
 To support browsing of the results.
void SetInputList(TList* in, Bool_t adopt = kTRUE)
 Set / change the input list.
 The flag 'adopt' determines whether the list is adopted (default)
 or cloned. If adopted, object ownership is transferred to this object.
 The internal fInputList will always be owner of its objects.
void SetOutputList(TList* out, Bool_t adopt = kTRUE)
 Set / change the output list.
 The flag 'adopt' determines whether the list is adopted (default)
 or cloned.  If adopted, object ownership is transferred to this object.
 The internal fOutputList will always be owner of its objects.
Bool_t Matches(const char* ref)
 Return TRUE if reference ref matches.
TObject * GetInputObject(const char* classname) const
 Return first instance of class 'classname' in the input list.
 Usefull to access TDSet, TEventList, ...
TQueryResult(Int_t seqnum, const char* opt, TList* inlist, Long64_t entries, Long64_t first, const char* selec)
void SetFinalized()
TQueryResult()
{ }
Int_t GetSeqNum() const
{ return fSeqNum; }
EQueryStatus GetStatus() const
{ return fStatus; }
TDatime GetStartTime() const
{ return fStart; }
TDatime GetEndTime() const
{ return fEnd; }
const char * GetOptions() const
{ return fOptions; }
TList * GetInputList()
{ return fInputList; }
Long64_t GetEntries() const
{ return fEntries; }
Long64_t GetFirst() const
{ return fFirst; }
Long64_t GetBytes() const
{ return fBytes; }
Float_t GetUsedCPU() const
{ return fUsedCPU; }
TMacro * GetLogFile() const
{ return fLogFile; }
TMacro * GetSelecHdr() const
{ return fSelecHdr; }
TMacro * GetSelecImp() const
{ return fSelecImp; }
const char * GetLibList() const
{ return fLibList; }
const char * GetParList() const
{ return fParList; }
TList * GetOutputList()
{ return fOutputList; }
const char * GetResultFile() const
{ return fResultFile; }
Float_t GetInitTime() const
{ return fInitTime; }
Float_t GetProcTime() const
{ return fProcTime; }
Bool_t IsArchived() const
{ return fArchived; }
Bool_t IsDone() const
{ return (fStatus > kRunning); }
Bool_t IsDraw() const
{ return fDraw; }
Bool_t IsFinalized() const
{ return fFinalized; }