#include <TCastorFile.h>
Inheritance diagram for TCastorFile:
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 |
Definition at line 56 of file TCastorFile.h.
TCastorFile::TCastorFile | ( | const char * | url, | |
Option_t * | option = "" , |
|||
const char * | ftitle = "" , |
|||
Int_t | compress = 1 , |
|||
Int_t | netopt = 0 | |||
) |
TCastorFile::TCastorFile | ( | ) | [inline] |
virtual TCastorFile::~TCastorFile | ( | ) | [inline, virtual] |
Definition at line 76 of file TCastorFile.h.
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.
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().
Reimplemented from TNetFile.
Definition at line 524 of file TCastorFile.cxx.
References TObject::Error(), fInternalPath, fIsCastor, fWrittenTo, kFALSE, kTRUE, StrDup(), UseCastor2API(), and TNetFile::WriteBuffer().
TString TCastorFile::fDiskServer [private] |
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] |