Get Methods | |
enum | { , TYPE_INTEGER = classad::Value::INTEGER_VALUE, TYPE_BOOLEAN = classad::Value::BOOLEAN_VALUE, TYPE_STRING = classad::Value::STRING_VALUE, TYPE_REAL = classad::Value::REAL_VALUE, TYPE_EXPRESSION = classad::Value::UNDEFINED_VALUE } |
int | getType (const std::string &attr_name) |
Retrieve the type of the value specified for attr_name. More... | |
void | addAttribute (const std::string &attr_name, int attr_value) |
Allow adding a value to an already set attribute of the JobAd instance (i.e. More... | |
void | addAttribute (const std::string &attr_name, double attr_value) |
Allow adding a value to an already set attribute of the JobAd instance (i.e. More... | |
void | addAttribute (const std::string &attr_name, bool attr_value) |
Allow adding a value to an already set attribute of the JobAd instance (i.e. More... | |
void | addAttribute (const std::string &attr_name, const std::string &attr_value) |
Allow adding a value to an already set attribute of the JobAd instance (i.e. More... | |
void | addAttribute (const std::string &attr_name, Ad *attr_value) |
Allow adding a value to an already set attribute of the JobAd instance (i.e. More... | |
virtual void | setAttributeExpr (const std::string &attr_name, const std::string &attr_value) |
Add The specified Expression Attribute to the jdl istance. More... | |
virtual void | setAttribute (const std::string &attr_name, int attr_value) |
Add The specified Integer Attribute to the jdl istance. More... | |
virtual void | setAttribute (const std::string &attr_name, const std::string &attr_value) |
Add The specified String Attribute to the jdl istance. More... | |
virtual void | setAttribute (const std::string &attr_name, double attr_value) |
Add The specified String Attribute to the jdl istance. More... | |
virtual void | setAttribute (const std::string &attr_name, bool attr_value) |
Add The specified String Attribute to the jdl istance. More... | |
virtual void | setAttribute (const std::string &attr_name, Ad *attr_value) |
Add The specified Integer Attribute to the jdl istance. More... | |
virtual std::string | getAttributeExpr (const std::string &attr_name) |
Retreive the value of the specified attribute. More... | |
std::vector< int > | getIntValue (const std::string &attr_name) |
Retreive the value of the specified attribute. More... | |
std::vector< double > | getDoubleValue (const std::string &attr_name) |
Retreive the value of the specified attribute. More... | |
std::vector< bool > | getBoolValue (const std::string &attr_name) |
Retreive the value of the specified attribute. More... | |
std::vector< std::string > | getStringValue (const std::string &attr_name) |
Retreive the value of the specified attribute. More... | |
std::vector< std::vector< std::string > > | getStringList (const std::string &attr_name) |
Retreive the value of the specified attribute. More... | |
Public Types | |
Public Methods | |
Constructors | |
Ad () | |
default Constructor. | |
virtual | ~Ad () throw () |
Default Destructor. | |
Ad (const classad::ClassAd &classAd) | |
Constructor by ClassAd. More... | |
Ad (const std::string &jdl_string) | |
Constructor by string. More... | |
classad::ClassAd * | ad () |
Deep copy of Ad. More... | |
From methods | |
virtual void | fromString (const std::string &jdl_string) |
Create an Ad instance from a string. More... | |
virtual void | fromFile (const std::string &jdl_file) |
Create an Ad instacne from a file. More... | |
To methods | |
virtual std::string | toString () |
Convert the Ad Instance into a single line string representation. | |
virtual std::string | toString (const std::string &attr_name) |
Convert an Ad attribute into its string representation. More... | |
virtual std::string | toLines () |
Convert the Ad Instance into a multi line indented string representation. More... | |
bool | isSet () |
Check whether the JobAd has been initialised. More... | |
void | clear () |
Reset the JobAd Instance. More... | |
has methods | |
bool | hasAttribute (const std::string &attr_name) |
Check If the specified attribute has already been set. More... | |
virtual classad::ExprTree * | delAttribute (const std::string &attr_name) |
Delete an Attribute. More... | |
bool | hasAttribute (const std::string &attr_name, const std::string &attr_value) |
Check if the specified value is present in the specified attribute. | |
std::vector< std::string > | attributes () |
Return the list of all attributes inside classad. | |
Protected Methods | |
std::string | toLower (const std::string &src) |
Convert the string into lower case. More... | |
virtual void | addAttribute (std::string attr_name, classad::Value val) |
Add a value to a list (if already present) or set the first value of this attribute. More... | |
virtual void | appendValue (classad::ExprTree *tree, const classad::Value &val, const std::string &attr_name) |
Append a value to a list. More... | |
virtual void | insertAttribute (const std::string &attr_name, classad::ExprTree *val) |
Insert a classad Exptression inside the Ad instance. More... | |
virtual void | insertAttribute (const std::string &attr_name, classad::Value val) |
Insert a classad Exptression inside the Ad instance. More... | |
virtual classad::Value | getTypeValue (const std::string &attr_name) |
Retrieve the Value of the specified attribute. More... | |
bool | hasAttribute (classad::ExprTree *tree, const std::string &attr_value) |
Check whether a value is present inside a classad Expression. More... |
It allows the user to create a valid ClassAd instance utilizing native classes and retrieve any kind of information from it. It is utilised as a superclass for JobAd class
|
|
|
Constructor by ClassAd.
|
|
Constructor by string.
|
|
Deep copy of Ad.
|
|
Add a value to a list (if already present) or set the first value of this attribute.
|
|
Allow adding a value to an already set attribute of the JobAd instance (i.e. it transforms it in a list attribute). if used on a non-set attribute the corresponding setAttribute method is automatically called.
|
|
Allow adding a value to an already set attribute of the JobAd instance (i.e. it transforms it in a list attribute). if used on a non-set attribute the corresponding setAttribute method is automatically called.
|
|
Allow adding a value to an already set attribute of the JobAd instance (i.e. it transforms it in a list attribute). if used on a non-set attribute the corresponding setAttribute method is automatically called.
|
|
Allow adding a value to an already set attribute of the JobAd instance (i.e. it transforms it in a list attribute). if used on a non-set attribute the corresponding setAttribute method is automatically called.
|
|
Allow adding a value to an already set attribute of the JobAd instance (i.e. it transforms it in a list attribute). if used on a non-set attribute the corresponding setAttribute method is automatically called.
|
|
Append a value to a list.
|
|
Reset the JobAd Instance. All the previous existing attributes will be deleted |
|
Delete an Attribute. It fails if the attribute doesn't exist
|
|
Create an Ad instacne from a file.
|
|
Create an Ad instance from a string.
|
|
Retreive the value of the specified attribute.
|
|
Retreive the value of the specified attribute.
|
|
Retreive the value of the specified attribute.
|
|
Retreive the value of the specified attribute.
|
|
Retreive the value of the specified attribute.
|
|
Retreive the value of the specified attribute.
|
|
Retrieve the type of the value specified for attr_name.
|
|
Retrieve the Value of the specified attribute.
|
|
Check whether a value is present inside a classad Expression.
|
|
Check If the specified attribute has already been set.
|
|
Insert a classad Exptression inside the Ad instance.
|
|
Insert a classad Exptression inside the Ad instance.
|
|
Check whether the JobAd has been initialised.
|
|
Add The specified Integer Attribute to the jdl istance.
|
|
Add The specified String Attribute to the jdl istance.
|
|
Add The specified String Attribute to the jdl istance.
|
|
Add The specified String Attribute to the jdl istance.
|
|
Add The specified Integer Attribute to the jdl istance.
|
|
Add The specified Expression Attribute to the jdl istance.
|
|
Convert the Ad Instance into a multi line indented string representation.
|
|
Convert the string into lower case.
|
|
Convert an Ad attribute into its string representation.
|