Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-16 09:27:16

0001 // @(#)root/netx:$Id$
0002 // Author: G. Ganis Feb 2011
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TNetFileStager
0013 #define ROOT_TNetFileStager
0014 
0015 //////////////////////////////////////////////////////////////////////////
0016 //                                                                      //
0017 // TNetFileStager                                                       //
0018 //                                                                      //
0019 // TFileStager implementation for a 'rootd' backend.                    //
0020 //                                                                      //
0021 //////////////////////////////////////////////////////////////////////////
0022 
0023 #include "TFileStager.h"
0024 
0025 class TCollection;
0026 
0027 namespace ROOT::Deprecated {
0028 
0029 class TNetSystem;
0030 
0031 class TNetFileStager : public TFileStager {
0032 
0033 private:
0034    TString        fPrefix; // prefix to prepend to requests
0035    TNetSystem   *fSystem; // instance of the admin interface
0036 
0037    static void    GetPrefix(const char *url, TString &pfx);
0038 
0039 public:
0040    TNetFileStager(const char *stager = "");
0041    virtual ~TNetFileStager();
0042 
0043    Bool_t  IsStaged(const char *path) override;
0044    Int_t   Locate(const char *path, TString &endpath) override;
0045    Bool_t  Matches(const char *s) override;
0046 
0047    Bool_t  IsValid() const override { return fSystem ? kTRUE : kFALSE; }
0048 
0049    void    Print(Option_t *option = "") const override;
0050 
0051    ClassDefOverride(TNetFileStager,0)  // Implementation for a 'rootd' backend
0052 };
0053 
0054 } // namespace ROOT::Deprecated
0055 
0056 using TNetFileStager R__DEPRECATED(6, 42, "TNetFileStager is deprecated") = ROOT::Deprecated::TNetFileStager;
0057 
0058 #endif