12 #ifndef ROOT_TProofLog
13 #define ROOT_TProofLog
32 class TProofLog :
public TNamed,
public TQObject {
34 friend class TProofLogElem;
35 friend class TProofMgrLite;
36 friend class TXProofMgr;
44 TProofLogElem *Add(
const char *ord,
const char *url);
48 enum ELogLocationBit {
51 enum ERetrieveOpt { kLeading = 0x1, kTrailing = 0x2,
52 kAll = 0x3, kGrep = 0x4 };
54 TProofLog(
const char *stag,
const char *url, TProofMgr *mgr);
57 void Display(
const char *ord =
"*", Int_t from = -10, Int_t to = -1);
58 TList *GetListOfLogs()
const {
return fElem; }
59 Int_t Grep(
const char *txt, Int_t from = 0);
60 void Print(Option_t *opt = 0)
const;
61 void Prt(
const char *what, Bool_t newline = kTRUE);
62 Int_t Retrieve(
const char *ord =
"*",
63 TProofLog::ERetrieveOpt opt = TProofLog::kTrailing,
64 const char *fname = 0,
const char *pattern = 0);
65 Int_t Save(
const char *ord =
"*",
const char *fname = 0, Option_t *opt=
"w");
67 TDatime StartTime() {
return fStartTime; }
70 void SetLogToBox(Bool_t lgbox = kFALSE) { SetBit(kLogToBox, lgbox); }
71 Bool_t LogToBox() {
return (TestBit(kLogToBox)) ? kTRUE : kFALSE; }
73 static void SetMaxTransferSize(Long64_t maxsz);
79 class TProofLogElem :
public TNamed {
89 static Long64_t fgMaxTransferSize;
95 TProofLogElem(
const char *ord,
const char *url,
97 virtual ~TProofLogElem();
99 void Display(Int_t from = 0, Int_t to = -1);
100 TMacro *GetMacro()
const {
return fMacro; }
101 const char * GetRole() {
return fRole.Data(); }
102 Int_t Grep(
const char *txt, TString &res, Int_t from = 0);
103 Bool_t IsMaster()
const {
return (fRole ==
"master") ? kTRUE : kFALSE; }
104 Bool_t IsSubMaster()
const {
return (fRole ==
"submaster") ? kTRUE : kFALSE; }
105 Bool_t IsWorker()
const {
return (fRole ==
"worker") ? kTRUE : kFALSE; }
106 void Print(Option_t *opt = 0)
const;
107 void Prt(
const char *what);
108 Int_t Retrieve(TProofLog::ERetrieveOpt opt = TProofLog::kTrailing,
109 const char *pattern = 0);
111 static Long64_t GetMaxTransferSize();
112 static void SetMaxTransferSize(Long64_t maxsz);
114 ClassDef(TProofLogElem,0)