TCastorFile Class Reference

#include <TCastorFile.h>

Inheritance diagram for TCastorFile:

TNetFile TFile TFile TDirectoryFile TDirectoryFile TDirectoryFile TDirectoryFile TDirectory TDirectory TDirectory TDirectory TDirectory TDirectory TDirectory TDirectory List of all members.

Public Member Functions

 TCastorFile (const char *url, Option_t *option="", const char *ftitle="", Int_t compress=1, Int_t netopt=0)
 TCastorFile ()
virtual ~TCastorFile ()
Bool_t WriteBuffer (const char *buf, Int_t len)

Private Member Functions

void FindServerAndPath ()
void ConnectServer (Int_t *stat, EMessageTypes *kind, Int_t netopt, Int_t tcpwindowsize, Bool_t forceOpen, Bool_t forceRead)
Int_t SysClose (Int_t fd)

Private Attributes

TString fDiskServer
TString fInternalPath
Bool_t fIsCastor
Bool_t fWrittenTo
TString fAuthProto

Detailed Description

Definition at line 56 of file TCastorFile.h.


Constructor & Destructor Documentation

TCastorFile::TCastorFile ( const char *  url,
Option_t option = "",
const char *  ftitle = "",
Int_t  compress = 1,
Int_t  netopt = 0 
)

TCastorFile::TCastorFile (  )  [inline]

Definition at line 75 of file TCastorFile.h.

References fIsCastor, fWrittenTo, and kFALSE.

virtual TCastorFile::~TCastorFile (  )  [inline, virtual]

Definition at line 76 of file TCastorFile.h.


Member Function Documentation

void TCastorFile::FindServerAndPath (  )  [private]

Definition at line 195 of file TCastorFile.cxx.

References TString::BeginsWith(), TString::Data(), TString::EndsWith(), TObject::Error(), fAuthProto, fDiskServer, fInternalPath, fIsCastor, flags, TFile::fOption, Form(), free(), TFile::fUrl, fWrittenTo, gDebug, TUrl::GetFile(), TSystem::GetHostByName(), TUrl::GetHostFQDN(), TUrl::GetOptions(), TUrl::GetProtocol(), TUrl::GetUrl(), gSystem, TObject::Info(), kTRUE, name, p, RFIO_HSM_CNS, rfio_HsmIf_IsHsmFile(), rfio_parse(), TUrl::SetProtocol(), strlcpy(), and UseCastor2API().

Referenced by ConnectServer().

void TCastorFile::ConnectServer ( Int_t stat,
EMessageTypes kind,
Int_t  netopt,
Int_t  tcpwindowsize,
Bool_t  forceOpen,
Bool_t  forceRead 
) [private, virtual]

Reimplemented from TNetFile.

Definition at line 553 of file TCastorFile.cxx.

References TNetFile::ConnectServer(), FindServerAndPath(), fIsCastor, kErrFileOpen, and kROOTD_ERR.

Int_t TCastorFile::SysClose ( Int_t  fd  )  [private, virtual]

Reimplemented from TNetFile.

Definition at line 506 of file TCastorFile.cxx.

References TString::Data(), fInternalPath, fIsCastor, fWrittenTo, kFALSE, rfio_HsmIf_reqtoput(), TNetFile::SysClose(), and UseCastor2API().

Bool_t TCastorFile::WriteBuffer ( const char *  buf,
Int_t  len 
) [virtual]

Reimplemented from TNetFile.

Definition at line 524 of file TCastorFile.cxx.

References TObject::Error(), fInternalPath, fIsCastor, fWrittenTo, kFALSE, kTRUE, StrDup(), UseCastor2API(), and TNetFile::WriteBuffer().


Member Data Documentation

TString TCastorFile::fDiskServer [private]

Definition at line 59 of file TCastorFile.h.

Referenced by FindServerAndPath().

TString TCastorFile::fInternalPath [private]

Definition at line 60 of file TCastorFile.h.

Referenced by FindServerAndPath(), SysClose(), and WriteBuffer().

Bool_t TCastorFile::fIsCastor [private]

Definition at line 61 of file TCastorFile.h.

Referenced by ConnectServer(), FindServerAndPath(), SysClose(), TCastorFile(), and WriteBuffer().

Bool_t TCastorFile::fWrittenTo [private]

Definition at line 62 of file TCastorFile.h.

Referenced by FindServerAndPath(), SysClose(), TCastorFile(), and WriteBuffer().

TString TCastorFile::fAuthProto [private]

Definition at line 64 of file TCastorFile.h.

Referenced by FindServerAndPath().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:35:08 2011 for ROOT_528-00b_version by  doxygen 1.5.1