#ifndef ROOT_TProofOutputFile
#define ROOT_TProofOutputFile
#ifndef ROOT_TNamed
#include "TNamed.h"
#endif
class TCollection;
class TProofOutputFile;
class TString;
class TList;
class TFile;
class TFileMerger;
class TProofOutputFile : public TNamed {
friend class TProof;
friend class TProofPlayer;
public:
private:
TProofOutputFile(const TProofOutputFile&);
TProofOutputFile& operator=(const TProofOutputFile&);
TString fDir;
TString fFileName;
TString fFileName1;
TString fLocation;
TString fMode;
TString fOutputFileName;
TString fWorkerOrdinal;
Bool_t fIsLocal;
Bool_t fMerged;
TFileMerger *fMerger;
TString GetTmpName(const char* name);
void ResolveKeywords(TString &fname);
void SetFileName(const char* name);
void SetDir(const char* dir) { fDir = dir; }
void SetWorkerOrdinal(const char* ordinal) { fWorkerOrdinal = ordinal; }
void AddFile(TFileMerger *merger, const char *path);
void NotifyError(const char *errmsg);
void Unlink(const char *path);
protected:
public:
TProofOutputFile() : fDir(), fFileName(), fFileName1(), fLocation(),
fMode(), fOutputFileName(), fWorkerOrdinal(), fIsLocal(kFALSE), fMerged(kFALSE),
fMerger(0) {}
TProofOutputFile(const char* path,
const char* location = "REMOTE", const char* mode = "CENTRAL");
virtual ~TProofOutputFile();
const char* GetDir() const { return fDir; }
TFileMerger* GetFileMerger(Bool_t local = kFALSE);
const char* GetFileName(Bool_t tmpName = kTRUE) const { return (tmpName) ? fFileName1 : fFileName; }
const char* GetLocation() const { return fLocation; }
const char* GetMode() const { return fMode; }
const char* GetOutputFileName() const { return fOutputFileName; }
const char* GetWorkerOrdinal() const { return fWorkerOrdinal; }
Int_t AdoptFile(TFile *f);
TFile* OpenFile(const char* opt);
Long64_t Merge(TCollection* list);
void Print(Option_t *option="") const;
void SetOutputFileName(const char *name);
ClassDef(TProofOutputFile,1)
};
#endif
Last change: Mon Oct 27 08:03:23 2008
Last generated: 2008-10-27 08:03
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.