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 void FreeDirectory(void *dirp) override;
47 const char *GetDirEntry(void *dirp) override;
48 Bool_t ConsistentWith(const char *path, void *dirptr) override;
49
50 Int_t GetPathInfo(const char* path, FileStat_t &buf) override;
51 Bool_t IsPathLocal(const char *path) override;
52 virtual Int_t Locate(const char* path, TString &endurl);
53 Int_t MakeDirectory(const char* dir) override;
54 void *OpenDirectory(const char* dir) override;
55 int Unlink(const char *path) override;
56
58};
59
60#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:348
Bool_t ConsistentWith(const char *path, void *dirptr) override
Check consistency of this helper with the one required by 'path' or 'dirptr'.
Int_t MakeDirectory(const char *dir) override
Make a directory.
void FreeDirectory(void *dirp) override
Free a directory.
virtual ~TDavixSystem()
virtual Int_t Locate(const char *path, TString &endurl)
const char * GetDirEntry(void *dirp) override
Get a directory entry. Returns 0 if no more entries.
TDavixFileInternal * d_ptr
Bool_t IsPathLocal(const char *path) override
Returns TRUE if the url in 'path' points to the local file system.
Int_t GetPathInfo(const char *path, FileStat_t &buf) override
Get info about a file.
int Unlink(const char *path) override
Unlink, i.e.
void * OpenDirectory(const char *dir) override
Open a directory.
Basic string class.
Definition TString.h:138
Abstract base class defining a generic interface to the underlying Operating System.
Definition TSystem.h:276