#include <TAlienSystem.h>
Inheritance diagram for TAlienSystem:
Public Member Functions | |
TAlienSystem (const char *name="Generic", const char *title="Generic System") | |
virtual | ~TAlienSystem () |
virtual Bool_t | Init () |
virtual int | MakeDirectory (const char *name) |
virtual void * | OpenDirectory (const char *name) |
virtual void | FreeDirectory (void *dirp) |
virtual const char * | GetDirEntry (void *dirp) |
virtual void * | GetDirPtr () const |
virtual Bool_t | ChangeDirectory (const char *path) |
virtual const char * | WorkingDirectory () |
virtual const char * | HomeDirectory (const char *userName=0) |
virtual int | mkdir (const char *name, Bool_t recursive=kFALSE) |
Bool_t | cd (const char *path) |
const char * | pwd () |
virtual int | CopyFile (const char *from, const char *to, Bool_t overwrite=kFALSE) |
virtual int | Rename (const char *from, const char *to) |
virtual int | Link (const char *from, const char *to) |
virtual int | Symlink (const char *from, const char *to) |
virtual int | Unlink (const char *name) |
int | GetPathInfo (const char *path, Long_t *id, Long_t *size, Long_t *flags, Long_t *modtime) |
int | GetPathInfo (const char *path, Long_t *id, Long64_t *size, Long_t *flags, Long_t *modtime) |
virtual int | GetPathInfo (const char *path, FileStat_t &buf) |
virtual int | AlienFilestat (const char *fpath, FileStat_t &buf) |
virtual int | GetFsInfo (const char *path, Long_t *id, Long_t *bsize, Long_t *blocks, Long_t *bfree) |
virtual int | Chmod (const char *file, UInt_t mode) |
virtual int | Umask (Int_t mask) |
virtual int | Utime (const char *file, Long_t modtime, Long_t actime) |
virtual const char * | FindFile (const char *search, TString &file, EAccessMode mode=kFileExists) |
virtual Bool_t | AccessPathName (const char *path, EAccessMode mode=kFileExists) |
virtual Int_t | GetUid (const char *user=0) |
virtual Int_t | GetGid (const char *group=0) |
virtual Int_t | GetEffectiveUid () |
virtual Int_t | GetEffectiveGid () |
virtual UserGroup_t * | GetUserInfo (Int_t uid) |
virtual UserGroup_t * | GetUserInfo (const char *user=0) |
virtual UserGroup_t * | GetGroupInfo (Int_t gid) |
virtual UserGroup_t * | GetGroupInfo (const char *group=0) |
Protected Attributes | |
char | fWorkingDirectory [1024] |
Definition at line 31 of file TAlienSystem.h.
TAlienSystem::TAlienSystem | ( | const char * | name = "Generic" , |
|
const char * | title = "Generic System" | |||
) |
TAlienSystem::~TAlienSystem | ( | ) | [virtual] |
Definition at line 39 of file TAlienSystem.cxx.
Bool_t TAlienSystem::Init | ( | ) | [virtual] |
int TAlienSystem::MakeDirectory | ( | const char * | name | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 52 of file TAlienSystem.cxx.
References TUrl::CleanRelativePath(), TObject::Error(), TGrid::GetGrid(), TUrl::GetProtocol(), TUrl::GetUrl(), gGrid, TObject::Info(), kTRUE, and TUrl::SetProtocol().
Referenced by mkdir().
void * TAlienSystem::OpenDirectory | ( | const char * | name | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 76 of file TAlienSystem.cxx.
References TObject::AbstractMethod(), TUrl::CleanRelativePath(), TUrl::GetProtocol(), TUrl::GetUrl(), TObject::Info(), kTRUE, and TUrl::SetProtocol().
void TAlienSystem::FreeDirectory | ( | void * | dirp | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 92 of file TAlienSystem.cxx.
References TObject::AbstractMethod().
const char * TAlienSystem::GetDirEntry | ( | void * | dirp | ) | [virtual] |
virtual void* TAlienSystem::GetDirPtr | ( | ) | const [inline, virtual] |
Bool_t TAlienSystem::ChangeDirectory | ( | const char * | path | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 113 of file TAlienSystem.cxx.
References TUrl::CleanRelativePath(), TUrl::GetProtocol(), TUrl::GetUrl(), TObject::Info(), kTRUE, and TUrl::SetProtocol().
Referenced by cd().
const char * TAlienSystem::WorkingDirectory | ( | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 130 of file TAlienSystem.cxx.
References fWorkingDirectory.
Referenced by pwd().
const char * TAlienSystem::HomeDirectory | ( | const char * | userName = 0 |
) | [virtual] |
Reimplemented from TSystem.
Definition at line 137 of file TAlienSystem.cxx.
References TObject::Error(), TGrid::GetGrid(), TGrid::GetHomeDirectory(), and gGrid.
Reimplemented from TSystem.
Definition at line 151 of file TAlienSystem.cxx.
References AccessPathName(), TSystem::DirName(), kFileExists, kTRUE, TString::Length(), and MakeDirectory().
Bool_t TAlienSystem::cd | ( | const char * | path | ) | [inline] |
Reimplemented from TSystem.
Definition at line 53 of file TAlienSystem.h.
References ChangeDirectory().
const char* TAlienSystem::pwd | ( | ) | [inline] |
Reimplemented from TSystem.
Definition at line 54 of file TAlienSystem.h.
References WorkingDirectory().
int TAlienSystem::CopyFile | ( | const char * | from, | |
const char * | to, | |||
Bool_t | overwrite = kFALSE | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 178 of file TAlienSystem.cxx.
References TObject::AbstractMethod().
int TAlienSystem::Rename | ( | const char * | from, | |
const char * | to | |||
) | [virtual] |
int TAlienSystem::Link | ( | const char * | from, | |
const char * | to | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 198 of file TAlienSystem.cxx.
References TObject::AbstractMethod().
int TAlienSystem::Symlink | ( | const char * | from, | |
const char * | to | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 207 of file TAlienSystem.cxx.
References TObject::AbstractMethod().
int TAlienSystem::Unlink | ( | const char * | name | ) | [virtual] |
int TAlienSystem::GetPathInfo | ( | const char * | path, | |
Long_t * | id, | |||
Long_t * | size, | |||
Long_t * | flags, | |||
Long_t * | modtime | |||
) |
Reimplemented from TSystem.
Definition at line 226 of file TAlienSystem.cxx.
References TObject::Error(), kMaxInt, and Long64_t.
Referenced by GetPathInfo().
int TAlienSystem::GetPathInfo | ( | const char * | path, | |
FileStat_t & | buf | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 295 of file TAlienSystem.cxx.
References AlienFilestat(), and buf.
int TAlienSystem::AlienFilestat | ( | const char * | fpath, | |
FileStat_t & | buf | |||
) | [virtual] |
Definition at line 307 of file TAlienSystem.cxx.
References buf, TUrl::CleanRelativePath(), TUrl::GetProtocol(), TUrl::GetUrl(), TObject::Info(), kTRUE, TUrl::SetProtocol(), stat, and stat64().
Referenced by GetPathInfo().
int TAlienSystem::GetFsInfo | ( | const char * | path, | |
Long_t * | id, | |||
Long_t * | bsize, | |||
Long_t * | blocks, | |||
Long_t * | bfree | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 342 of file TAlienSystem.cxx.
References TObject::AbstractMethod().
int TAlienSystem::Chmod | ( | const char * | file, | |
UInt_t | mode | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 352 of file TAlienSystem.cxx.
References TUrl::CleanRelativePath(), TUrl::GetProtocol(), TUrl::GetUrl(), TObject::Info(), kTRUE, and TUrl::SetProtocol().
int TAlienSystem::Umask | ( | Int_t | mask | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 365 of file TAlienSystem.cxx.
References TObject::AbstractMethod().
Reimplemented from TSystem.
Definition at line 374 of file TAlienSystem.cxx.
References TObject::AbstractMethod().
const char * TAlienSystem::FindFile | ( | const char * | search, | |
TString & | file, | |||
EAccessMode | mode = kFileExists | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 384 of file TAlienSystem.cxx.
References TObject::AbstractMethod().
Bool_t TAlienSystem::AccessPathName | ( | const char * | path, | |
EAccessMode | mode = kFileExists | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 394 of file TAlienSystem.cxx.
References TUrl::CleanRelativePath(), TString::EndsWith(), TObject::Error(), TGrid::GetGrid(), TUrl::GetProtocol(), TUrl::GetUrl(), gGrid, TObject::Info(), kFALSE, kTRUE, TString::Length(), TString::Remove(), and TUrl::SetProtocol().
Referenced by mkdir().
Int_t TAlienSystem::GetUid | ( | const char * | user = 0 |
) | [virtual] |
Reimplemented from TSystem.
Definition at line 430 of file TAlienSystem.cxx.
References TObject::AbstractMethod().
Int_t TAlienSystem::GetGid | ( | const char * | group = 0 |
) | [virtual] |
Reimplemented from TSystem.
Definition at line 449 of file TAlienSystem.cxx.
References TObject::AbstractMethod().
Int_t TAlienSystem::GetEffectiveUid | ( | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 439 of file TAlienSystem.cxx.
References TObject::AbstractMethod().
Int_t TAlienSystem::GetEffectiveGid | ( | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 458 of file TAlienSystem.cxx.
References TObject::AbstractMethod().
UserGroup_t * TAlienSystem::GetUserInfo | ( | Int_t | uid | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 468 of file TAlienSystem.cxx.
References TObject::AbstractMethod().
UserGroup_t * TAlienSystem::GetUserInfo | ( | const char * | user = 0 |
) | [virtual] |
Reimplemented from TSystem.
Definition at line 478 of file TAlienSystem.cxx.
References TObject::AbstractMethod().
UserGroup_t * TAlienSystem::GetGroupInfo | ( | Int_t | gid | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 489 of file TAlienSystem.cxx.
References TObject::AbstractMethod().
UserGroup_t * TAlienSystem::GetGroupInfo | ( | const char * | group = 0 |
) | [virtual] |
Reimplemented from TSystem.
Definition at line 502 of file TAlienSystem.cxx.
References TObject::AbstractMethod().
char TAlienSystem::fWorkingDirectory[1024] [protected] |