#ifndef ROOT_TXNetSystem
#define ROOT_TXNetSystem
#ifndef ROOT_TNetSystem
#include "TNetFile.h"
#endif
#ifndef ROOT_Rtypes
#include "Rtypes.h"
#endif
#include "XrdOuc/XrdOucString.hh"
#include "XrdClient/XrdClientVector.hh"
class XrdClientAdmin;
class TXNetSystemConnectGuard;
typedef XrdClientVector<XrdOucString> vecString;
typedef XrdClientVector<bool> vecBool;
class TXNetSystem : public TNetSystem {
friend class TXNetSystemConnectGuard;
private:
Bool_t fIsRootd;
Bool_t fIsXRootd;
TString fDir;
void *fDirp;
vecString fDirList;
Bool_t fDirListValid;
TString fUrl;
static Bool_t fgInitDone;
static Bool_t fgRootdBC;
XrdClientAdmin *Connect(const char *url);
void *GetDirPtr() const { return fDirp; }
void InitXrdClient();
void SaveEndPointUrl();
public:
TXNetSystem(Bool_t owner = kTRUE);
TXNetSystem(const char *url, Bool_t owner = kTRUE);
virtual ~TXNetSystem();
Bool_t AccessPathName(const char *path, EAccessMode mode);
virtual Bool_t ConsistentWith(const char *path, void *dirptr);
virtual void FreeDirectory(void *dirp);
virtual const char *GetDirEntry(void *dirp);
virtual Int_t GetPathInfo(const char* path, FileStat_t &buf);
virtual Int_t MakeDirectory(const char* dir);
virtual void *OpenDirectory(const char* dir);
virtual int Unlink(const char *path);
ClassDef(TXNetSystem,0)
};
class TXNetSystemConnectGuard {
private:
XrdClientAdmin *fClientAdmin;
public:
TXNetSystemConnectGuard(TXNetSystem *xn, const char *url);
~TXNetSystemConnectGuard();
bool IsValid() const { return ((fClientAdmin) ? 1 : 0); }
XrdClientAdmin *ClientAdmin() const { return fClientAdmin; }
};
#endif
ROOT page - Class index - Class Hierarchy - Top of the page
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.