20 #ifndef GLITE_WMS_COMMON_REQUESTAD_JOBAD_H
21 #define GLITE_WMS_COMMON_REQUESTAD_JOBAD_H
29 #include "classad_distribution.h"
32 #include <boost/scoped_ptr.hpp>
65 JobAd(
const std::string& jdl_string);
70 JobAd(
const classad::ClassAd& classAd);
95 void toFile(
const std::string& file_path) ;
143 void setAttributeExpr (
const std::string& attr_name,
const std::string& attr_value);
163 Ad getAd(
const std::string& attr_name);
170 std::string
getString(
const std::string& attr_name) ;
177 int getInt(
const std::string& attr_name) ;
184 double getDouble(
const std::string& attr_name) ;
191 bool getBool(
const std::string& attr_name) ;
210 virtual void checkSyntax(
const std::string& attr_name, classad::ExprTree* attr_value);
211 virtual void checkSyntax(
const std::string& attr_name, classad::Value attr_value);
221 classad::ExprTree*
delAttribute(
const std::string& attr_name) ;
230 void check(
const bool& restore =
true ) ;
247 virtual void insertAttribute(
const std::string& attr_name , classad::ExprTree* val);
273 boost::scoped_ptr<JobAdSchema> schema ;
276 void checkJobType(
const std::vector<std::string> & attr_value) ;
277 void checkDataManagement( ) ;
279 virtual void checkSpecials( ) ;
281 classad::ExprTree *defaultRank ;
282 classad::ExprTree *defaultReq ;
284 void checkSemantic() ;
290 std::vector < std::string > allowed_protocols ;
291 static bool isAbsolutePath(
const std::string &path ,
bool platform_dependence =
true) ;
292 static const std::string getName (
const std::string &path ,
bool platform_dependence =
true) ;
std::string toSubmissionString()
void setLocalAccess(bool lookInto)
bool getBool(const std::string &attr_name)
bool checking
Definition: JobAd.h:266
Provides a representation of the job description in the JDL language.
Definition: ExpDagAd.h:84
virtual void checkSyntax(const std::string &attr_name, classad::ExprTree *attr_value)
virtual void checkRankReq()
void setAttributeExpr(const std::string &attr_name, const std::string &attr_value)
Ad getAd(const std::string &attr_name)
int getInt(const std::string &attr_name)
checkType lookInto_b
Definition: JobAd.h:265
double getDouble(const std::string &attr_name)
void operator=(const JobAd &jobad)
Provides a representation of the job description in the JDL language.
Definition: JobAd.h:55
classad::ClassAd user
Definition: JobAd.h:263
classad::ExprTree * delAttribute(const std::string &attr_name)
virtual void checkInputSandbox(std::vector< std::string > &extracted)
virtual void insertAttribute(const std::string &attr_name, classad::ExprTree *val)
bool gettoBretrieved()
Definition: JobAd.h:196
friend class Job
Definition: JobAd.h:288
Definition: JdlAttributeList.h:47
void check(const bool &restore=true)
const std::vector< std::string > getAllowedProtocols()
void toFile(const std::string &file_path)
bool toBretrieved
Definition: JobAd.h:266
void setAllowedProtocols(const std::vector< std::string > &attr_value)
void setDefaultRank(const std::string &attr_value)
void setDefaultReq(const std::string &attr_value)
checkType
Provides a method for extracting files from a specified path.
Definition: extractfiles.h:215
void fromClassAd(const classad::ClassAd &classAd)
void fromJobAd(const JobAd &jobad)
std::string getString(const std::string &attr_name)
ExtractedAd * getExtractedAd()
boost::scoped_ptr< ExtractedAd > extractedAd
Definition: JobAd.h:269
void checkMultiAttribute(const std::vector< std::string > &multi)