#include <TAlienPackage.h>
Definition at line 36 of file TAlienPackage.h.
TAlienPackage::TAlienPackage | ( | ) |
Referenced by InstallAllPackages().
TAlienPackage::TAlienPackage | ( | const char * | name, | |
const char * | version, | |||
const char * | platform, | |||
const char * | installationdirectory = "/var/tmp/alien/packages" | |||
) |
Definition at line 83 of file TAlienPackage.cxx.
References TGrid::Connect(), TString::Data(), fAliEnMainPackageDir, fEnableCommand, fEnabled, fInstallationDirectory, fInstallList, fName, fPackages, fPlatform, fPostInstallCommand, fVersion, gDebug, gGrid, Info, kFALSE, and TCollection::SetOwner().
TAlienPackage::~TAlienPackage | ( | ) | [virtual] |
Definition at line 119 of file TAlienPackage.cxx.
References TString::Data(), fInstallList, fName, fPlatform, fVersion, GetDebugLevel(), Info, and SafeDelete.
Definition at line 248 of file TAlienPackage.cxx.
References TSystem::ChangeDirectory(), TGrid::Command(), TFile::Cp(), TString::Data(), Error, TSystem::Exec(), fAliEnMainPackageDir, fInstallationDirectory, Form(), fPostInstallCommand, GetDebugLevel(), gGrid, gSystem, Info, kFALSE, kTRUE, name, result(), and version.
Referenced by InstallSinglePackage().
Bool_t TAlienPackage::InstallSinglePackage | ( | TString | name, | |
TString | version, | |||
Bool_t | isDep = kFALSE | |||
) | [private] |
Definition at line 386 of file TAlienPackage.cxx.
References TSystem::AccessPathName(), TSystem::ChangeDirectory(), TFile::Cp(), TString::Data(), Error, TSystem::Exec(), fAliEnMainPackageDir, fInstallationDirectory, Form(), fPlatform, fPostInstallCommand, GetDebugLevel(), gSystem, Info, kFALSE, kTRUE, name, PostInstall(), s1, s2, version, and Warning().
Referenced by InstallAllPackages().
Bool_t TAlienPackage::InstallAllPackages | ( | ) | [private] |
Definition at line 477 of file TAlienPackage.cxx.
References TList::Add(), TObjArray::At(), TList::At(), TList::Clear(), TString::Data(), Enable(), fInstallList, fName, fPackages, fPlatform, fVersion, GetDebugLevel(), TCollection::GetEntries(), TObjString::GetName(), TObjString::GetString(), Info, InstallSinglePackage(), j, kFALSE, kTRUE, and TAlienPackage().
Referenced by Enable().
Bool_t TAlienPackage::Enable | ( | ) |
Definition at line 130 of file TAlienPackage.cxx.
References CheckDependencies(), CheckDirectories(), TList::Clear(), TString::Data(), TSystem::Exec(), fEnabled, fInstallationDirectory, fInstallList, fName, Form(), fPlatform, fVersion, GetDebugLevel(), gSystem, Info, InstallAllPackages(), kFALSE, and kTRUE.
Referenced by Exec(), InstallAllPackages(), and ReInstall().
const char * TAlienPackage::GetEnable | ( | ) |
Definition at line 158 of file TAlienPackage.cxx.
References TString::Data(), fEnableCommand, fInstallationDirectory, fName, Form(), and fVersion.
Bool_t TAlienPackage::Exec | ( | const char * | cmdline | ) |
Definition at line 292 of file TAlienPackage.cxx.
References TList::At(), TString::Data(), Enable(), TSystem::Exec(), fEnabled, fName, fPackages, fVersion, TCollection::GetEntries(), gSystem, Info, j, kFALSE, and kTRUE.
Bool_t TAlienPackage::UnInstall | ( | ) |
Definition at line 170 of file TAlienPackage.cxx.
References TString::Data(), TSystem::Exec(), fEnabled, fInstallationDirectory, fName, Form(), fVersion, gSystem, kFALSE, and kTRUE.
Referenced by ReInstall().
Bool_t TAlienPackage::ReInstall | ( | ) |
Definition at line 235 of file TAlienPackage.cxx.
References Enable(), kFALSE, kTRUE, and UnInstall().
Bool_t TAlienPackage::CheckDependencies | ( | ) |
Definition at line 319 of file TAlienPackage.cxx.
References TList::Add(), TObjArray::At(), TList::At(), CheckDirectories(), TGrid::Command(), TString::Data(), fAliEnMainPackageDir, fInstallList, fName, Form(), fVersion, GetDebugLevel(), TCollection::GetEntries(), TObjArray::GetEntries(), TObjString::GetName(), TObjString::GetString(), gGrid, i, Info, j, kFALSE, kTRUE, result(), TString::Tokenize(), and Warning().
Referenced by Enable().
Bool_t TAlienPackage::IsDirectory | ( | const char * | dir1, | |
const char * | str | |||
) |
Definition at line 184 of file TAlienPackage.cxx.
References gGrid, i, kFALSE, kTRUE, TGrid::Ls(), and result().
Referenced by CheckDirectories().
Definition at line 201 of file TAlienPackage.cxx.
References TString::Data(), Error, GetAliEnMainPackageDir(), GetDebugLevel(), GetPlatform(), Info, IsDirectory(), kFALSE, kTRUE, name, s, and version.
Referenced by CheckDependencies(), and Enable().
void TAlienPackage::SetName | ( | const TString & | theValue | ) | [inline] |
TString TAlienPackage::GetName | ( | ) | const [inline] |
void TAlienPackage::SetVersion | ( | const TString & | theValue | ) | [inline] |
TString TAlienPackage::GetVersion | ( | ) | const [inline] |
void TAlienPackage::SetPlatform | ( | const TString & | theValue | ) | [inline] |
TString TAlienPackage::GetPlatform | ( | ) | const [inline] |
Definition at line 85 of file TAlienPackage.h.
References fPlatform.
Referenced by CheckDirectories().
void TAlienPackage::SetInstallationDirectory | ( | const TString & | theValue | ) | [inline] |
TString TAlienPackage::GetInstallationDirectory | ( | ) | const [inline] |
void TAlienPackage::SetAliEnMainPackageDir | ( | const TString & | theValue | ) | [inline] |
TString TAlienPackage::GetAliEnMainPackageDir | ( | ) | const [inline] |
Definition at line 93 of file TAlienPackage.h.
References fAliEnMainPackageDir.
Referenced by CheckDirectories().
void TAlienPackage::SetInstallList | ( | TList * | theValue | ) | [inline] |
TList* TAlienPackage::GetInstallList | ( | ) | const [inline] |
void TAlienPackage::SetDebugLevel | ( | Int_t & | theValue | ) | [inline] |
Int_t TAlienPackage::GetDebugLevel | ( | ) | [inline] |
Definition at line 101 of file TAlienPackage.h.
References fDebugLevel.
Referenced by CheckDependencies(), CheckDirectories(), Enable(), InstallAllPackages(), InstallSinglePackage(), PostInstall(), and ~TAlienPackage().
TAlienPackage::ClassDef | ( | TAlienPackage | , | |
0 | ||||
) |
TString TAlienPackage::fName [private] |
Definition at line 39 of file TAlienPackage.h.
Referenced by CheckDependencies(), Enable(), Exec(), GetEnable(), GetName(), InstallAllPackages(), SetName(), TAlienPackage(), UnInstall(), and ~TAlienPackage().
TString TAlienPackage::fVersion [private] |
Definition at line 40 of file TAlienPackage.h.
Referenced by CheckDependencies(), Enable(), Exec(), GetEnable(), GetVersion(), InstallAllPackages(), SetVersion(), TAlienPackage(), UnInstall(), and ~TAlienPackage().
TString TAlienPackage::fPlatform [private] |
Definition at line 41 of file TAlienPackage.h.
Referenced by Enable(), GetPlatform(), InstallAllPackages(), InstallSinglePackage(), SetPlatform(), TAlienPackage(), and ~TAlienPackage().
TString TAlienPackage::fInstallationDirectory [private] |
Definition at line 42 of file TAlienPackage.h.
Referenced by Enable(), GetEnable(), GetInstallationDirectory(), InstallSinglePackage(), PostInstall(), SetInstallationDirectory(), TAlienPackage(), and UnInstall().
TString TAlienPackage::fAliEnMainPackageDir [private] |
Definition at line 43 of file TAlienPackage.h.
Referenced by CheckDependencies(), GetAliEnMainPackageDir(), InstallSinglePackage(), PostInstall(), SetAliEnMainPackageDir(), and TAlienPackage().
TString TAlienPackage::fPostInstallCommand [private] |
Definition at line 44 of file TAlienPackage.h.
Referenced by InstallSinglePackage(), PostInstall(), and TAlienPackage().
TString TAlienPackage::fEnableCommand [private] |
TList* TAlienPackage::fInstallList [private] |
Definition at line 46 of file TAlienPackage.h.
Referenced by CheckDependencies(), Enable(), GetInstallList(), InstallAllPackages(), SetInstallList(), TAlienPackage(), and ~TAlienPackage().
TList* TAlienPackage::fPackages [private] |
Definition at line 47 of file TAlienPackage.h.
Referenced by Exec(), InstallAllPackages(), and TAlienPackage().
Int_t TAlienPackage::fDebugLevel [private] |
Bool_t TAlienPackage::fEnabled [private] |
Definition at line 49 of file TAlienPackage.h.
Referenced by Enable(), Exec(), TAlienPackage(), and UnInstall().