Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TDavixSystem.h
Go to the documentation of this file.
1// @(#)root/net:$Id$
2// Author: Adrien Devresse and Fabrizio Furano
3
4/*************************************************************************
5 * Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TDavixSystem
13#define ROOT_TDavixSystem
14
15//////////////////////////////////////////////////////////////////////////
16// //
17// TDavixSystem //
18// //
19// A TSystem specialization for HTTP and WebDAV //
20// It supports HTTP and HTTPS in a number of dialects and options //
21// e.g. S3 is one of them //
22// Other caracteristics come from the full support of Davix, //
23// e.g. full redirection support in any circumstance //
24// //
25// Authors: Adrien Devresse (CERN IT/SDC) //
26// Fabrizio Furano (CERN IT/SDC) //
27// //
28// September 2013 //
29// //
30//////////////////////////////////////////////////////////////////////////
31
32#include "TSystem.h"
33
35
36class TDavixSystem : public TSystem {
37private:
39
40public:
42 TDavixSystem(const char *url);
43
44 virtual ~TDavixSystem();
45
46 virtual void FreeDirectory(void *dirp);
47 virtual const char *GetDirEntry(void *dirp);
48 virtual Bool_t ConsistentWith(const char *path, void *dirptr);
49
50 virtual Int_t GetPathInfo(const char* path, FileStat_t &buf);
51 virtual Bool_t IsPathLocal(const char *path);
52 virtual Int_t Locate(const char* path, TString &endurl);
53 virtual Int_t MakeDirectory(const char* dir);
54 virtual void *OpenDirectory(const char* dir);
55 virtual int Unlink(const char *path);
56
58};
59
60#endif
#define ClassDef(name, id)
Definition Rtypes.h:337
virtual Int_t MakeDirectory(const char *dir)
Make a directory.
virtual void * OpenDirectory(const char *dir)
Open a directory. Returns 0 if directory does not exist.
virtual Int_t GetPathInfo(const char *path, FileStat_t &buf)
Get info about a file.
virtual void FreeDirectory(void *dirp)
Free a directory.
virtual const char * GetDirEntry(void *dirp)
Get a directory entry. Returns 0 if no more entries.
virtual ~TDavixSystem()
virtual Int_t Locate(const char *path, TString &endurl)
virtual Bool_t IsPathLocal(const char *path)
Returns TRUE if the url in 'path' points to the local file system.
virtual Bool_t ConsistentWith(const char *path, void *dirptr)
Check consistency of this helper with the one required by 'path' or 'dirptr'.
TDavixFileInternal * d_ptr
virtual int Unlink(const char *path)
Unlink, i.e.
Basic string class.
Definition TString.h:139
Abstract base class defining a generic interface to the underlying Operating System.
Definition TSystem.h:266