ROOT  6.06/08
Reference Guide
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TAlienPackage Class Reference

Definition at line 36 of file TAlienPackage.h.

Public Member Functions

 TAlienPackage ()
 Default constructor of a AliEn package constructing a ROOT:v5-16-00 for Linux-i686. More...
 
 TAlienPackage (const char *name, const char *version, const char *platform, const char *installationdirectory="/var/tmp/alien/packages")
 Constructor of a AliEn package. More...
 
virtual ~ TAlienPackage ()
 
Bool_t Enable ()
 Install/enable an AliEn package on the local computer. More...
 
const char * GetEnable ()
 Return shell command to enable package. More...
 
Bool_t Exec (const char *cmdline)
 Execute package command. More...
 
Bool_t UnInstall ()
 Uninstall a package e.g. remove it from the local disk. More...
 
Bool_t ReInstall ()
 Reinstalls a package e.g. uninstall + install. More...
 
Bool_t CheckDependencies ()
 Check the dependency packages of this package. More...
 
Bool_t IsDirectory (const char *dir1, const char *str)
 Check that <str> is listed in GRID directory <dir1>. More...
 
Bool_t CheckDirectories (TString name, TString version)
 Check the name and version directory of package/version given. More...
 
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 ()
 

Private Member Functions

Bool_t PostInstall (TString name, TString version)
 Execute post_install procedure for a package. More...
 
Bool_t InstallSinglePackage (TString name, TString version, Bool_t isDep=kFALSE)
 Install a single package. More...
 
Bool_t InstallAllPackages ()
 Installs a package and all its direct dependencies. More...
 

Private Attributes

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

#include <TAlienPackage.h>

+ Collaboration diagram for TAlienPackage:

Constructor & Destructor Documentation

§ TAlienPackage() [1/2]

TAlienPackage::TAlienPackage ( )

Default constructor of a AliEn package constructing a ROOT:v5-16-00 for Linux-i686.

Definition at line 54 of file TAlienPackage.cxx.

Referenced by InstallAllPackages().

§ TAlienPackage() [2/2]

TAlienPackage::TAlienPackage ( const char *  name,
const char *  version,
const char *  platform,
const char *  installationdirectory = "/var/tmp/alien/packages" 
)

Constructor of a AliEn package.

Definition at line 85 of file TAlienPackage.cxx.

§ ~ TAlienPackage()

virtual TAlienPackage::~ TAlienPackage ( )
virtual

Member Function Documentation

§ CheckDependencies()

Bool_t TAlienPackage::CheckDependencies ( )

Check the dependency packages of this package.

Definition at line 321 of file TAlienPackage.cxx.

Referenced by Enable().

§ CheckDirectories()

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

Check the name and version directory of package/version given.

Definition at line 203 of file TAlienPackage.cxx.

Referenced by CheckDependencies(), and Enable().

§ Enable()

Bool_t TAlienPackage::Enable ( )

Install/enable an AliEn package on the local computer.

Definition at line 132 of file TAlienPackage.cxx.

Referenced by Exec(), InstallAllPackages(), and ReInstall().

§ Exec()

Bool_t TAlienPackage::Exec ( const char *  cmdline)

Execute package command.

Definition at line 294 of file TAlienPackage.cxx.

§ GetAliEnMainPackageDir()

TString TAlienPackage::GetAliEnMainPackageDir ( ) const
inline

Definition at line 93 of file TAlienPackage.h.

Referenced by CheckDirectories().

§ GetDebugLevel()

Int_t TAlienPackage::GetDebugLevel ( )
inline

§ GetEnable()

const char * TAlienPackage::GetEnable ( )

Return shell command to enable package.

Definition at line 160 of file TAlienPackage.cxx.

§ GetInstallationDirectory()

TString TAlienPackage::GetInstallationDirectory ( ) const
inline

Definition at line 89 of file TAlienPackage.h.

§ GetInstallList()

TList* TAlienPackage::GetInstallList ( ) const
inline

Definition at line 97 of file TAlienPackage.h.

§ GetName()

TString TAlienPackage::GetName ( ) const
inline

Definition at line 77 of file TAlienPackage.h.

§ GetPlatform()

TString TAlienPackage::GetPlatform ( ) const
inline

Definition at line 85 of file TAlienPackage.h.

Referenced by CheckDirectories().

§ GetVersion()

TString TAlienPackage::GetVersion ( ) const
inline

Definition at line 81 of file TAlienPackage.h.

§ InstallAllPackages()

Bool_t TAlienPackage::InstallAllPackages ( )
private

Installs a package and all its direct dependencies.

Definition at line 479 of file TAlienPackage.cxx.

Referenced by Enable().

§ InstallSinglePackage()

Bool_t TAlienPackage::InstallSinglePackage ( TString  name,
TString  version,
Bool_t  isDep = kFALSE 
)
private

Install a single package.

Definition at line 388 of file TAlienPackage.cxx.

Referenced by InstallAllPackages().

§ IsDirectory()

Bool_t TAlienPackage::IsDirectory ( const char *  dir1,
const char *  str 
)

Check that <str> is listed in GRID directory <dir1>.

Definition at line 186 of file TAlienPackage.cxx.

Referenced by CheckDirectories().

§ PostInstall()

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

Execute post_install procedure for a package.

Definition at line 250 of file TAlienPackage.cxx.

Referenced by InstallSinglePackage().

§ ReInstall()

Bool_t TAlienPackage::ReInstall ( )

Reinstalls a package e.g. uninstall + install.

Definition at line 237 of file TAlienPackage.cxx.

§ SetAliEnMainPackageDir()

void TAlienPackage::SetAliEnMainPackageDir ( const TString theValue)
inline

Definition at line 91 of file TAlienPackage.h.

§ SetDebugLevel()

void TAlienPackage::SetDebugLevel ( Int_t theValue)
inline

Definition at line 99 of file TAlienPackage.h.

§ SetInstallationDirectory()

void TAlienPackage::SetInstallationDirectory ( const TString theValue)
inline

Definition at line 87 of file TAlienPackage.h.

§ SetInstallList()

void TAlienPackage::SetInstallList ( TList theValue)
inline

Definition at line 95 of file TAlienPackage.h.

§ SetName()

void TAlienPackage::SetName ( const TString theValue)
inline

Definition at line 75 of file TAlienPackage.h.

§ SetPlatform()

void TAlienPackage::SetPlatform ( const TString theValue)
inline

Definition at line 83 of file TAlienPackage.h.

§ SetVersion()

void TAlienPackage::SetVersion ( const TString theValue)
inline

Definition at line 79 of file TAlienPackage.h.

§ UnInstall()

Bool_t TAlienPackage::UnInstall ( )

Uninstall a package e.g. remove it from the local disk.

Definition at line 172 of file TAlienPackage.cxx.

Referenced by ReInstall().

Member Data Documentation

§ fAliEnMainPackageDir

TString TAlienPackage::fAliEnMainPackageDir
private

§ fDebugLevel

Int_t TAlienPackage::fDebugLevel
private

Definition at line 48 of file TAlienPackage.h.

Referenced by GetDebugLevel().

§ fEnableCommand

TString TAlienPackage::fEnableCommand
private

Definition at line 45 of file TAlienPackage.h.

Referenced by GetEnable(), and TAlienPackage().

§ fEnabled

Bool_t TAlienPackage::fEnabled
private

Definition at line 49 of file TAlienPackage.h.

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

§ fInstallationDirectory

TString TAlienPackage::fInstallationDirectory
private

§ fInstallList

TList* TAlienPackage::fInstallList
private

§ fName

TString TAlienPackage::fName
private

§ fPackages

TList* TAlienPackage::fPackages
private

Definition at line 47 of file TAlienPackage.h.

Referenced by Exec(), InstallAllPackages(), and TAlienPackage().

§ fPlatform

TString TAlienPackage::fPlatform
private

§ fPostInstallCommand

TString TAlienPackage::fPostInstallCommand
private

Definition at line 44 of file TAlienPackage.h.

Referenced by InstallSinglePackage(), PostInstall(), and TAlienPackage().

§ fVersion

TString TAlienPackage::fVersion
private

The documentation for this class was generated from the following files: