Logo ROOT  
Reference Guide
TGridJDL.h
Go to the documentation of this file.
1 // @(#)root/net:$Id$
2 // Author: Jan Fiete Grosse-Oetringhaus 28/9/2004
3 // Jancurova.lucia@cern.ch Slovakia 29/9/2008
4 
5 /*************************************************************************
6  * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
7  * All rights reserved. *
8  * *
9  * For the licensing terms see $ROOTSYS/LICENSE. *
10  * For the list of contributors see $ROOTSYS/README/CREDITS. *
11  *************************************************************************/
12 
13 #ifndef ROOT_TGridJDL
14 #define ROOT_TGridJDL
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TGridJDL //
19 // //
20 // Abstract base class to generate JDL files for job submission to the //
21 // Grid. //
22 // //
23 // Related classes are TGLiteJDL //
24 // . //
25 //////////////////////////////////////////////////////////////////////////
26 
27 #include "TObject.h"
28 #include "TString.h"
29 #include "TMap.h"
30 
31 
32 class TGridJDL : public TObject {
33 protected:
34  TMap fMap; // stores the key, value pairs of the JDL
35  TMap fDescriptionMap; // stores the key, value pairs of the JDL
36 public:
37  TGridJDL() : fMap(), fDescriptionMap() { }
38  virtual ~TGridJDL();
39 
40  void SetValue(const char *key, const char *value);
41  const char *GetValue(const char *key);
42  void SetDescription(const char *key, const char *description);
43  const char *GetDescription(const char *key);
44  TString AddQuotes(const char *value);
45  void AddToSet(const char *key, const char *value);
46  void AddToSetDescription(const char *key, const char *description);
47  virtual TString Generate();
48  virtual void Clear(const Option_t* = 0);
49 
50  virtual void SetExecutable(const char *value=0, const char *description=0) = 0;
51  virtual void SetArguments(const char *value=0, const char *description=0) = 0;
52  virtual void SetEMail(const char *value=0, const char *description=0) = 0;
53  virtual void SetOutputDirectory(const char *value=0, const char *description=0) = 0;
54  virtual void SetPrice(UInt_t price=1, const char *description=0) = 0;
55  virtual void SetTTL(UInt_t ttl=72000, const char *description=0) = 0;
56  virtual void SetJobTag(const char *jobtag=0, const char *description=0) = 0;
57  virtual void SetInputDataListFormat(const char *format="xml-single", const char *description=0) = 0;
58  virtual void SetInputDataList(const char *list="collection.xml", const char *description=0) = 0;
59 
60  virtual void SetSplitMode(const char *value, UInt_t maxnumberofinputfiles=0,
61  UInt_t maxinputfilesize=0, const char *d1=0,
62  const char *d2=0, const char *d3=0) = 0;
63  virtual void SetSplitArguments(const char *splitarguments=0, const char *description=0) = 0;
64  virtual void SetValidationCommand(const char *value, const char *description=0) = 0;
65 
66  virtual void AddToInputSandbox(const char *value=0, const char *description=0) = 0;
67  virtual void AddToOutputSandbox(const char *value=0, const char *description=0) = 0;
68  virtual void AddToInputData(const char *value=0, const char *description=0) = 0;
69  virtual void AddToInputDataCollection(const char *value=0, const char *description=0) = 0;
70  virtual void AddToRequirements(const char *value=0, const char *description=0) = 0;
71  virtual void AddToPackages(const char *name="AliRoot", const char *version="default",
72  const char *type="VO_ALICE", const char *description=0) = 0;
73  virtual void AddToOutputArchive(const char *value=0, const char *description=0) = 0;
74 
75  ClassDef(TGridJDL,1) // ABC defining interface JDL generator
76 };
77 
78 #endif
TGridJDL::SetValidationCommand
virtual void SetValidationCommand(const char *value, const char *description=0)=0
TGridJDL::AddToRequirements
virtual void AddToRequirements(const char *value=0, const char *description=0)=0
TGridJDL::AddToSetDescription
void AddToSetDescription(const char *key, const char *description)
Adds a value to a key value which hosts a set of values.
Definition: TGridJDL.cxx:195
TGridJDL::AddToInputData
virtual void AddToInputData(const char *value=0, const char *description=0)=0
TGridJDL::SetJobTag
virtual void SetJobTag(const char *jobtag=0, const char *description=0)=0
TGridJDL::SetExecutable
virtual void SetExecutable(const char *value=0, const char *description=0)=0
TGridJDL::AddQuotes
TString AddQuotes(const char *value)
Adds quotes to the provided string.
Definition: TGridJDL.cxx:159
TGridJDL::SetDescription
void SetDescription(const char *key, const char *description)
Sets a value. If the entry already exists the old one is replaced.
Definition: TGridJDL.cxx:104
TGridJDL::TGridJDL
TGridJDL()
Definition: TGridJDL.h:43
TGridJDL::AddToOutputArchive
virtual void AddToOutputArchive(const char *value=0, const char *description=0)=0
TGridJDL::GetDescription
const char * GetDescription(const char *key)
Returns the value corresponding to the provided key.
Definition: TGridJDL.cxx:131
TGridJDL::SetOutputDirectory
virtual void SetOutputDirectory(const char *value=0, const char *description=0)=0
TGridJDL::AddToOutputSandbox
virtual void AddToOutputSandbox(const char *value=0, const char *description=0)=0
TGridJDL::fMap
TMap fMap
Definition: TGridJDL.h:40
TString
Definition: TString.h:136
TString.h
TGridJDL::SetEMail
virtual void SetEMail(const char *value=0, const char *description=0)=0
TGridJDL::SetInputDataList
virtual void SetInputDataList(const char *list="collection.xml", const char *description=0)=0
TGridJDL::Generate
virtual TString Generate()
Generates the JDL snippet.
Definition: TGridJDL.cxx:208
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
TGridJDL::SetValue
void SetValue(const char *key, const char *value)
Sets a value. If the entry already exists the old one is replaced.
Definition: TGridJDL.cxx:50
TGridJDL::SetSplitArguments
virtual void SetSplitArguments(const char *splitarguments=0, const char *description=0)=0
TGridJDL::GetValue
const char * GetValue(const char *key)
Returns the value corresponding to the provided key.
Definition: TGridJDL.cxx:77
TGridJDL::~TGridJDL
virtual ~TGridJDL()
Cleanup.
Definition: TGridJDL.cxx:34
TGridJDL::SetInputDataListFormat
virtual void SetInputDataListFormat(const char *format="xml-single", const char *description=0)=0
TGridJDL::AddToInputSandbox
virtual void AddToInputSandbox(const char *value=0, const char *description=0)=0
TGridJDL::AddToInputDataCollection
virtual void AddToInputDataCollection(const char *value=0, const char *description=0)=0
TGridJDL::SetArguments
virtual void SetArguments(const char *value=0, const char *description=0)=0
unsigned int
TGridJDL::Clear
virtual void Clear(const Option_t *=0)
Clears the JDL information.
Definition: TGridJDL.cxx:42
TGridJDL::SetSplitMode
virtual void SetSplitMode(const char *value, UInt_t maxnumberofinputfiles=0, UInt_t maxinputfilesize=0, const char *d1=0, const char *d2=0, const char *d3=0)=0
TObject.h
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TMap.h
name
char name[80]
Definition: TGX11.cxx:110
TGridJDL::fDescriptionMap
TMap fDescriptionMap
Definition: TGridJDL.h:41
TGridJDL::SetPrice
virtual void SetPrice(UInt_t price=1, const char *description=0)=0
TGridJDL
Definition: TGridJDL.h:32
TGridJDL::AddToSet
void AddToSet(const char *key, const char *value)
Adds a value to a key value which hosts a set of values.
Definition: TGridJDL.cxx:172
TGridJDL::SetTTL
virtual void SetTTL(UInt_t ttl=72000, const char *description=0)=0
type
int type
Definition: TGX11.cxx:121
TGridJDL::AddToPackages
virtual void AddToPackages(const char *name="AliRoot", const char *version="default", const char *type="VO_ALICE", const char *description=0)=0
TMap
Definition: TMap.h:40