ROOT  6.06/09
Reference Guide
Macros | Functions
TCastorFile.cxx File Reference
#include "NetErrors.h"
#include "TCastorFile.h"
#include "TError.h"
#include <stdlib.h>
#include <errno.h>
#include <stage_api.h>
#include <rfio_api.h>
#include <Cns_api.h>
#include <Cglobals.h>
#include <rfio_constants.h>
+ Include dependency graph for TCastorFile.cxx:

Go to the source code of this file.

Macros

#define RFIO_KERNEL
 
#define RFIO_USE_CASTOR_V2   "RFIO_USE_CASTOR_V2"
 
#define RFIO_HSM_BASETYPE   0x0
 
#define RFIO_HSM_CNS   RFIO_HSM_BASETYPE+1
 

Functions

int rfio_HsmIf_reqtoput (char *)
 
int rfio_parse (char *, char **, char **)
 
int rfio_HsmIf_IsHsmFile (const char *)
 
char * getconfent (char *, char *, int)
 
static int UseCastor2API ()
 
static const char * GetAuthProto (TString &url)
 Determine the authentication protocol to be tried first from the url string or from defaults. More...
 
 ClassImp (TCastorFile) TCastorFile
 Create a TCastorFile. More...
 

Macro Definition Documentation

#define RFIO_HSM_BASETYPE   0x0

Definition at line 75 of file TCastorFile.cxx.

#define RFIO_HSM_CNS   RFIO_HSM_BASETYPE+1

Definition at line 76 of file TCastorFile.cxx.

Referenced by TCastorFile::FindServerAndPath().

#define RFIO_KERNEL

Definition at line 67 of file TCastorFile.cxx.

#define RFIO_USE_CASTOR_V2   "RFIO_USE_CASTOR_V2"

Definition at line 74 of file TCastorFile.cxx.

Referenced by UseCastor2API().

Function Documentation

ClassImp ( TCastorFile  )

Create a TCastorFile.

A TCastorFile is like a normal TNetFile except that it obtains the remote node (disk server) via the CASTOR API, once the disk server and the local file path are determined, the file will be accessed via the rootd daemon. File names have to be specified like: castor:/castor/cern.ch/user/r/rdm/bla.root. The other arguments are the same as for TNetFile and TFile.

Definition at line 157 of file TCastorFile.cxx.

static const char* GetAuthProto ( TString url)
static

Determine the authentication protocol to be tried first from the url string or from defaults.

The auth option, if any, is removed from 'url'.

Definition at line 127 of file TCastorFile.cxx.

Referenced by ClassImp().

char* getconfent ( char *  ,
char *  ,
int   
)

Referenced by UseCastor2API().

int rfio_HsmIf_IsHsmFile ( const char *  )
int rfio_HsmIf_reqtoput ( char *  )

Referenced by TCastorFile::SysClose().

int rfio_parse ( char *  ,
char **  ,
char **   
)
static int UseCastor2API ( )
static