ROOT  6.06/09
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 ()
 
 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 ()
 Destructor. More...
 
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 ()
 
 ClassDef (TAlienPackage, 0)
 

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::TAlienPackage ( )

Referenced by InstallAllPackages().

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::~TAlienPackage ( )
virtual

Destructor.

Definition at line 121 of file TAlienPackage.cxx.

Member Function Documentation

Bool_t TAlienPackage::CheckDependencies ( )

Check the dependency packages of this package.

Definition at line 321 of file TAlienPackage.cxx.

Referenced by Enable().

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

TAlienPackage::ClassDef ( TAlienPackage  ,
 
)
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().

Bool_t TAlienPackage::Exec ( const char *  cmdline)

Execute package command.

Definition at line 294 of file TAlienPackage.cxx.

TString TAlienPackage::GetAliEnMainPackageDir ( ) const
inline

Definition at line 93 of file TAlienPackage.h.

Referenced by CheckDirectories().

Int_t TAlienPackage::GetDebugLevel ( )
inline
const char * TAlienPackage::GetEnable ( )

Return shell command to enable package.

Definition at line 160 of file TAlienPackage.cxx.

TString TAlienPackage::GetInstallationDirectory ( ) const
inline

Definition at line 89 of file TAlienPackage.h.

TList* TAlienPackage::GetInstallList ( ) const
inline

Definition at line 97 of file TAlienPackage.h.

TString TAlienPackage::GetName ( ) const
inline

Definition at line 77 of file TAlienPackage.h.

TString TAlienPackage::GetPlatform ( ) const
inline

Definition at line 85 of file TAlienPackage.h.

Referenced by CheckDirectories().

TString TAlienPackage::GetVersion ( ) const
inline

Definition at line 81 of file TAlienPackage.h.

Bool_t TAlienPackage::InstallAllPackages ( )
private

Installs a package and all its direct dependencies.

Definition at line 479 of file TAlienPackage.cxx.

Referenced by Enable().

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

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

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

Bool_t TAlienPackage::ReInstall ( )

Reinstalls a package e.g. uninstall + install.

Definition at line 237 of file TAlienPackage.cxx.

void TAlienPackage::SetAliEnMainPackageDir ( const TString theValue)
inline

Definition at line 91 of file TAlienPackage.h.

void TAlienPackage::SetDebugLevel ( Int_t theValue)
inline

Definition at line 99 of file TAlienPackage.h.

void TAlienPackage::SetInstallationDirectory ( const TString theValue)
inline

Definition at line 87 of file TAlienPackage.h.

void TAlienPackage::SetInstallList ( TList theValue)
inline

Definition at line 95 of file TAlienPackage.h.

void TAlienPackage::SetName ( const TString theValue)
inline

Definition at line 75 of file TAlienPackage.h.

void TAlienPackage::SetPlatform ( const TString theValue)
inline

Definition at line 83 of file TAlienPackage.h.

void TAlienPackage::SetVersion ( const TString theValue)
inline

Definition at line 79 of file TAlienPackage.h.

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

TString TAlienPackage::fAliEnMainPackageDir
private
Int_t TAlienPackage::fDebugLevel
private

Definition at line 48 of file TAlienPackage.h.

Referenced by GetDebugLevel().

TString TAlienPackage::fEnableCommand
private

Definition at line 45 of file TAlienPackage.h.

Referenced by GetEnable(), and TAlienPackage().

Bool_t TAlienPackage::fEnabled
private

Definition at line 49 of file TAlienPackage.h.

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

TString TAlienPackage::fInstallationDirectory
private
TList* TAlienPackage::fInstallList
private
TString TAlienPackage::fName
private
TList* TAlienPackage::fPackages
private

Definition at line 47 of file TAlienPackage.h.

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

TString TAlienPackage::fPlatform
private
TString TAlienPackage::fPostInstallCommand
private

Definition at line 44 of file TAlienPackage.h.

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

TString TAlienPackage::fVersion
private

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