49 Error(
"GetStaged",
"list of pathnames was not specified!");
60 Warning(
"GetStaged",
"object is of unexpected type %s - ignoring", o->
ClassName());
67 Info(
"GetStaged",
"%d files staged", stagedlist->
GetSize());
84 Warning(
"Stage",
"found object of unexpected type %s - ignoring",
90 success &=
Stage(pn, opt);
107 ::Error(
"TFileStager::Open",
"stager name missing: do nothing");
112 (
h =
gROOT->GetPluginManager()->FindHandler(
"TFileStager", stager))) {
113 if (
h->LoadPlugin() == -1)
169 if (
Locate(ourl, endp) == 0) {
193 pathname = ((
TUrl*)o)->GetUrl();
194 }
else if (cn ==
"TObjString") {
196 }
else if (cn ==
"TFileInfo") {
R__EXTERN TSystem * gSystem
Collection abstract base class.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Class that contains a list of TFileInfo's and accumulated meta data information about its entries.
Class describing a generic file including meta information.
Bool_t AddUrl(const char *url, Bool_t infront=kFALSE)
Add a new URL.
TUrl * GetCurrentUrl() const
Return the current url.
virtual Int_t LocateCollection(TFileCollection *fc, Bool_t addDummyUrl=kFALSE)
Massive location of files.
virtual Bool_t IsStaged(const char *)
Just check if the file exists locally.
static TString GetPathName(TObject *o)
Return the path name contained in object 'o' allowing for TUrl, TObjString or TFileInfo.
static TFileStager * Open(const char *stager)
Open a stager, after having loaded the relevant plug-in.
virtual TList * GetStaged(TCollection *pathlist)
Retrieves the staging (online) status for a list of path names.
virtual Int_t Locate(const char *u, TString &f)
Just check if the file exists locally.
virtual Bool_t Stage(const char *, Option_t *=nullptr)
A ROOT file is composed of a header, followed by consecutive data records (TKey instances) with a wel...
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
void Close(Option_t *option="") override
Close a file.
void Add(TObject *obj) override
const char * GetName() const override
Returns name of object.
Collectable string class.
Mother of all ROOT objects.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
R__ALWAYS_INLINE Bool_t IsZombie() const
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
const char * Data() const
virtual Bool_t IsPathLocal(const char *path)
Returns TRUE if the url in 'path' points to the local file system.
This class represents a WWW compatible URL.
const char * GetAnchor() const
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
void SetAnchor(const char *anchor)
void SetOptions(const char *opt)