#ifndef ROOT_TVirtualMonitoring
#define ROOT_TVirtualMonitoring
#ifndef ROOT_TNamed
#include "TNamed.h"
#endif
#ifndef ROOT_TList
#include "TList.h"
#endif
#ifndef ROOT_TMap
#include "TMap.h"
#endif
class TFile;
class TVirtualMonitoringWriter : public TNamed {
private:
TVirtualMonitoringWriter(const TVirtualMonitoringWriter&);
TVirtualMonitoringWriter& operator=(const TVirtualMonitoringWriter&);
Double_t fValue;
protected:
TList *fTmpOpenPhases;
public:
TVirtualMonitoringWriter() : TNamed(), fValue(0), fTmpOpenPhases(0) { }
TVirtualMonitoringWriter(const char *name, Double_t value)
: TNamed(name, ""), fValue(value), fTmpOpenPhases(0) { }
virtual ~TVirtualMonitoringWriter() { if (fTmpOpenPhases) delete fTmpOpenPhases; }
virtual Bool_t SendFileCloseEvent(TFile * )
{ MayNotUse("SendFileCloseEvent"); return kFALSE; }
virtual Bool_t SendFileReadProgress(TFile * )
{ MayNotUse("SendFileReadProgress"); return kFALSE; }
virtual Bool_t SendFileWriteProgress(TFile * )
{ MayNotUse("SendFileWriteProgress"); return kFALSE; }
virtual Bool_t SendParameters(TList * , const char * = 0)
{ MayNotUse("SendParameters"); return kFALSE; }
virtual Bool_t SendInfoTime() { MayNotUse("SendInfoTime"); return kFALSE; }
virtual Bool_t SendInfoUser(const char * = 0) { MayNotUse("SendInfoUser"); return kFALSE; }
virtual Bool_t SendInfoDescription(const char * ) { MayNotUse("SendInfoDescription"); return kFALSE; }
virtual Bool_t SendInfoStatus(const char * ) { MayNotUse("SendInfoStatus"); return kFALSE; }
virtual Bool_t SendFileOpenProgress(TFile * , TList * ,
const char * ,
Bool_t = kFALSE )
{ MayNotUse("SendFileOpenProgress"); return kFALSE; }
virtual Bool_t SendProcessingStatus(const char * , Bool_t = kFALSE)
{ MayNotUse("SendProcessingStatus"); return kFALSE; }
virtual Bool_t SendProcessingProgress(Double_t , Double_t , Bool_t = kFALSE)
{ MayNotUse("SendProcessingProgress"); return kFALSE; }
virtual void SetLogLevel(const char * = "WARNING")
{ MayNotUse("SetLogLevel"); };
virtual void Verbose(Bool_t ) { MayNotUse("Verbose"); }
ClassDef(TVirtualMonitoringWriter,0)
};
class TVirtualMonitoringReader : public TNamed {
public:
TVirtualMonitoringReader( const char * ="") { }
virtual ~TVirtualMonitoringReader() { }
virtual void DumpResult() { MayNotUse("DumpResult"); }
virtual void GetValues(const char * , const char * ,
const char * , const char * ,
Long_t , Long_t , Bool_t = kFALSE)
{ MayNotUse("GetValues"); }
virtual void GetLastValues(const char * , const char * ,
const char * , const char * ,
Bool_t =kFALSE)
{ MayNotUse("GetLastValues"); }
virtual void ProxyValues(const char * , const char * ,
const char * , const char * ,
Long_t , Long_t , Long_t )
{ MayNotUse("ProxyValues"); }
virtual TMap *GetMap() { MayNotUse("GetMap"); return 0; }
virtual void DeleteMap(TMap * ) { MayNotUse("DeleteMap"); }
ClassDef(TVirtualMonitoringReader, 1)
};
R__EXTERN TVirtualMonitoringWriter *gMonitoringWriter;
R__EXTERN TVirtualMonitoringReader *gMonitoringReader;
#endif