library: libNetx
#include "TXNetSystem.h"

TXNetSystem


class description - source file - inheritance tree (.pdf)

class TXNetSystem : public TNetSystem

Inheritance Chart:
TObject
<-
TNamed
<-
TSystem
<-
TNetSystem
<-
TXNetSystem
    private:
virtual void* GetDirPtr() const void InitXrdClient() public:
TXNetSystem() TXNetSystem(const char* url) TXNetSystem(const TXNetSystem&) virtual ~TXNetSystem() virtual Bool_t AccessPathName(const char* path, EAccessMode mode) static TClass* Class() virtual Bool_t ConsistentWith(const char* path, void* dirptr) virtual void FreeDirectory(void* dirp) virtual const char* GetDirEntry(void* dirp) const virtual Int_t GetPathInfo(const char* path, FileStat_t& buf) virtual TClass* IsA() const virtual Int_t MakeDirectory(const char* dir) virtual void* OpenDirectory(const char* dir) TXNetSystem& operator=(const TXNetSystem&) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
XrdClientAdmin* fClientAdmin Handle to the client admin object Bool_t fIsRootd Nature of remote file server Bool_t fIsXRootd Nature of remote file server TString fDir Current directory void* fDirp Directory pointer XrdClientVector<XrdClientString> fDirList Buffer for directory content Bool_t fDirListValid fDirList content valid ? static Bool_t fgInitDone Avoid initializing more than once static Bool_t fgRootdBC Control rootd backward compatibility

Class Description

                                                                      
 TXNetSystem                                                          
                                                                      
 Authors: Frank Winklmeier,  Fabrizio Furano                          
          INFN Padova, 2005                                           
                                                                      
 TXNetSystem is an extension of TNetSystem able to deal with new      
 xrootd servers. The class detects the nature of the server and       
 redirects the calls to TNetSystem in case of a rootd server.         
                                                                      


TXNetSystem() : TNetSystem()
 Create system management class without connecting to server.

TXNetSystem(const char *url) : TNetSystem()
 Create system management class and connect to server specified by url.

~TXNetSystem()
 Destructor

void InitXrdClient()
 One-time initialization of some communication variables for xrootd protocol

void* OpenDirectory(const char* dir)
 Open a directory. Returns a non-zero pointer (with no special
 purpose) in case of success, 0 in case of error.

void FreeDirectory(void *dirp)
 Free(Close) the directory referenced by dirp

Int_t MakeDirectory(const char* dir)
 Create a directory. Return 0 on success, -1 otherwise.

const char* GetDirEntry(void *dirp)
 Get directory entry for directory referenced by dirp.
 Returns 0 in case there are no more entries.

Int_t GetPathInfo(const char* path, FileStat_t &buf)
 Get info about a file. Info is returned in the form of a FileStat_t
 structure (see TSystem.h).
 The function returns 0 in case of success and 1 if the file could
 not be stat'ed.
 NOTICE: Not all information is available with an xrootd server.

Bool_t ConsistentWith(const char *path, void *dirptr)
 Check consistency of this helper with the one required
 by 'path' or 'dirptr'.

Bool_t AccessPathName(const char *path, EAccessMode mode)
 Returns FALSE if one can access a file using the specified access mode.
 NB: for the time being mode is ignored for XROOTD (just checks existence
 of the file or directory).
 Mode is the same as for the Unix access(2) function.
 Attention, bizarre convention of return value!!



Inline Functions


               void* GetDirPtr() const
             TClass* Class()
             TClass* IsA() const
                void ShowMembers(TMemberInspector& insp, char* parent)
                void Streamer(TBuffer& b)
                void StreamerNVirtual(TBuffer& b)
         TXNetSystem TXNetSystem(const TXNetSystem&)
        TXNetSystem& operator=(const TXNetSystem&)


Author: Frank Winklmeier, Fabrizio Furano
Last update: root/netx:$Name: $:$Id: TXNetSystem.cxx,v 1.2 2005/12/12 12:54:27 rdm Exp $
Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *


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.