TAlienPackage Class Reference

#include <TAlienPackage.h>

List of all members.

Public Member Functions

 TAlienPackage ()
 TAlienPackage (const char *name, const char *version, const char *platform, const char *installationdirectory="/var/tmp/alien/packages")
virtual ~TAlienPackage ()
Bool_t Enable ()
const char * GetEnable ()
Bool_t Exec (const char *cmdline)
Bool_t UnInstall ()
Bool_t ReInstall ()
Bool_t CheckDependencies ()
Bool_t IsDirectory (const char *dir1, const char *str)
Bool_t CheckDirectories (TString name, TString version)
void SetName (const TString &theValue)
TString GetName () const
void SetVersion (const TString &theValue)
TString GetVersion () const
void SetPlatform (const TString &theValue)
TString GetPlatform () const
void SetInstallationDirectory (const TString &theValue)
TString GetInstallationDirectory () const
void SetAliEnMainPackageDir (const TString &theValue)
TString GetAliEnMainPackageDir () const
void SetInstallList (TList *theValue)
TListGetInstallList () const
void SetDebugLevel (Int_t &theValue)
Int_t GetDebugLevel ()
 ClassDef (TAlienPackage, 0)

Private Member Functions

Bool_t PostInstall (TString name, TString version)
Bool_t InstallSinglePackage (TString name, TString version, Bool_t isDep=kFALSE)
Bool_t InstallAllPackages ()

Private Attributes

TString fName
TString fVersion
TString fPlatform
TString fInstallationDirectory
TString fAliEnMainPackageDir
TString fPostInstallCommand
TString fEnableCommand
TListfInstallList
TListfPackages
Int_t fDebugLevel
Bool_t fEnabled


Detailed Description

Definition at line 36 of file TAlienPackage.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

Bool_t TAlienPackage::PostInstall ( TString  name,
TString  version 
) [private]

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().

Bool_t TAlienPackage::CheckDirectories ( TString  name,
TString  version 
)

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]

Definition at line 75 of file TAlienPackage.h.

References fName.

TString TAlienPackage::GetName (  )  const [inline]

Definition at line 77 of file TAlienPackage.h.

References fName.

void TAlienPackage::SetVersion ( const TString theValue  )  [inline]

Definition at line 79 of file TAlienPackage.h.

References fVersion.

TString TAlienPackage::GetVersion (  )  const [inline]

Definition at line 81 of file TAlienPackage.h.

References fVersion.

void TAlienPackage::SetPlatform ( const TString theValue  )  [inline]

Definition at line 83 of file TAlienPackage.h.

References fPlatform.

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]

Definition at line 87 of file TAlienPackage.h.

References fInstallationDirectory.

TString TAlienPackage::GetInstallationDirectory (  )  const [inline]

Definition at line 89 of file TAlienPackage.h.

References fInstallationDirectory.

void TAlienPackage::SetAliEnMainPackageDir ( const TString theValue  )  [inline]

Definition at line 91 of file TAlienPackage.h.

References fAliEnMainPackageDir.

TString TAlienPackage::GetAliEnMainPackageDir (  )  const [inline]

Definition at line 93 of file TAlienPackage.h.

References fAliEnMainPackageDir.

Referenced by CheckDirectories().

void TAlienPackage::SetInstallList ( TList theValue  )  [inline]

Definition at line 95 of file TAlienPackage.h.

References fInstallList.

TList* TAlienPackage::GetInstallList (  )  const [inline]

Definition at line 97 of file TAlienPackage.h.

References fInstallList.

void TAlienPackage::SetDebugLevel ( Int_t theValue  )  [inline]

Definition at line 99 of file TAlienPackage.h.

References fDebugLevel.

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  ,
 
)


Member Data Documentation

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]

Definition at line 45 of file TAlienPackage.h.

Referenced by GetEnable(), and TAlienPackage().

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]

Definition at line 48 of file TAlienPackage.h.

Referenced by GetDebugLevel(), and SetDebugLevel().

Bool_t TAlienPackage::fEnabled [private]

Definition at line 49 of file TAlienPackage.h.

Referenced by Enable(), Exec(), TAlienPackage(), and UnInstall().


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