Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

JdlAttributeList Class Reference

JobAd Manipulation attribute class This class allow the user to know the names of all Jobad attributes and it is used principally by JobAd in order to perform the requested checks needed ro prepare for submission. More...

List of all members.

Check Methods

enum  Attr {
  JOBTYPE_MPICH_REQ_RTE, JOBTYPE_MPICH_REQ_CPU, JOBTYPE_MPICH_RANK_FREE, REQ_DEFAULT,
  RANK_DEFAULT, MAX_ATTR
}
void checkInt (const std::string &attr_name, int attr_value)
 Check if the couple attribute/value is admitted.

void checkDouble (const std::string &attr_name, const double &attr_value)
 Check if the couple attribute/value is admitted.

void checkBool (const std::string &attr_name, const bool &attr_value)
 Check if the couple attribute/value is admitted.

void checkString (const std::string &attr_name, const std::string &attr_value)
 Check if the couple attribute/value is admitted.

void checkAd (const std::string &attr_name, classad::ClassAd *attr_value)
 Check if the couple attribute/value is admitted.

void checkExpr (const std::string &attr_name, const std::string &attr_value)
 Check if the couple attribute/value is admitted.

void setDefault (Attr attr_name, const std::string &attr_value)
class JobAd

Public Types


Public Member Functions

 JdlAttributeList ()
virtual ~JdlAttributeList () throw ()
bool findBool (const std::string &attr_name)
bool findInt (const std::string &attr_name)
bool findString (const std::string &attr_name)
bool findDouble (const std::string &attr_name)
bool findAd (const std::string &attr_name)
bool findList (const std::string &attr_name)
bool findExpr (const std::string &attr_name)
bool findCheck (const std::string &attr_name)
bool findAttribute (const std::string &attr_name)
bool findAttr (const std::string &attr_name, std::vector< std::string >) const

Static Public Member Functions

std::string toLower (const std::string &source)


Detailed Description

JobAd Manipulation attribute class This class allow the user to know the names of all Jobad attributes and it is used principally by JobAd in order to perform the requested checks needed ro prepare for submission.


Member Enumeration Documentation

enum Attr
 

Enumeration values:
JOBTYPE_MPICH_REQ_RTE 
JOBTYPE_MPICH_REQ_CPU 
JOBTYPE_MPICH_RANK_FREE 
REQ_DEFAULT 
RANK_DEFAULT 
MAX_ATTR 


Constructor & Destructor Documentation

JdlAttributeList  ) 
 

virtual ~JdlAttributeList  )  throw () [inline, virtual]
 


Member Function Documentation

void checkAd const std::string &  attr_name,
classad::ClassAd *  attr_value
 

Check if the couple attribute/value is admitted.

Parameters:
attr_name - the name of the attribute
attr_value - the value of the attribute
Exceptions:
AdMismatchException - The type of value is not allowed for the specified attribute name

void checkBool const std::string &  attr_name,
const bool &  attr_value
 

Check if the couple attribute/value is admitted.

Parameters:
attr_name - the name of the attribute
attr_value - the value of the attribute
Exceptions:
AdMismatchException - The type of value is not allowed for the specified attribute name

void checkDouble const std::string &  attr_name,
const double &  attr_value
 

Check if the couple attribute/value is admitted.

Parameters:
attr_name - the name of the attribute
attr_value - the value of the attribute
Exceptions:
AdMismatchException - The type of value is not allowed for the specified attribute name

void checkExpr const std::string &  attr_name,
const std::string &  attr_value
 

Check if the couple attribute/value is admitted.

Parameters:
attr_name - the name of the attribute
attr_value - the value of the attribute
Exceptions:
AdMismatchException - The type of value is not allowed for the specified attribute name
AdFormatException - The type of value is not allowed for the specified attribute name

void checkInt const std::string &  attr_name,
int  attr_value
 

Check if the couple attribute/value is admitted.

Parameters:
attr_name - the name of the attribute
attr_value - the value of the attribute
Exceptions:
AdMismatchException - The type of value is not allowed for the specified attribute name

void checkString const std::string &  attr_name,
const std::string &  attr_value
 

Check if the couple attribute/value is admitted.

Parameters:
attr_name - the name of the attribute
attr_value - the value of the attribute
Exceptions:
AdMismatchException - The type of value is not allowed for the specified attribute name

bool findAd const std::string &  attr_name  )  [inline]
 

bool findAttr const std::string &  attr_name,
std::vector< std::string > 
const
 

bool findAttribute const std::string &  attr_name  ) 
 

bool findBool const std::string &  attr_name  )  [inline]
 

bool findCheck const std::string &  attr_name  )  [inline]
 

bool findDouble const std::string &  attr_name  )  [inline]
 

bool findExpr const std::string &  attr_name  )  [inline]
 

bool findInt const std::string &  attr_name  )  [inline]
 

bool findList const std::string &  attr_name  )  [inline]
 

bool findString const std::string &  attr_name  )  [inline]
 

void setDefault Attr  attr_name,
const std::string &  attr_value
 

std::string toLower const std::string &  source  )  [static]
 


Friends And Related Function Documentation

friend class JobAd [friend]
 


The documentation for this class was generated from the following file:
Generated on Wed Mar 1 00:37:56 2006 for COMMON API - configuration, jobid, ldif2classadi, logger, process, requestad, socket++i, task, utilities by doxygen 1.3.5