In file source.h:

class ClassAdParser

The parser object

Public Methods

ClassAdParser()
Constructor
bool ParseClassAd( const string &buffer, ClassAd &ad, bool full=false )
Parse a ClassAd
ClassAd* ParseClassAd( const string &buffer, bool full=false )
Parse a ClassAd
bool ParseExpression( const string &buffer, ExprTree*& expr, bool full=false)
Parse an expression
ExprTree* ParseExpression( const string &buffer, bool full=false)
Parse an expression
~ClassAdParser()
Destructor

Documentation

The parser object
ClassAd* ParseClassAd( const string &buffer, bool full=false )
Parse a ClassAd
Returns:
pointer to the ClassAd object if successful, or NULL otherwise
Parameters:
buffer - Buffer containing the string representation of the classad.
full - If this parameter is true, the parse is considered to succeed only if the ClassAd was parsed successfully and no other tokens follow the ClassAd.

bool ParseClassAd( const string &buffer, ClassAd &ad, bool full=false )
Parse a ClassAd
Returns:
true on success, false on failure
Parameters:
buffer - Buffer containing the string representation of the classad.
ad - The classad to be populated
full - If this parameter is true, the parse is considered to succeed only if the ClassAd was parsed successfully and no other tokens follow the ClassAd.

bool ParseExpression( const string &buffer, ExprTree*& expr, bool full=false)
Parse an expression
Returns:
true if the parse succeeded, false otherwise.
Parameters:
expr - Reference to a ExprTree pointer, which will be pointed to the parsed expression. The previous value of the pointer will be destroyed.
full - If this parameter is true, the parse is considered to succeed only if the expression was parsed successfully and no other tokens follow the expression.

ExprTree* ParseExpression( const string &buffer, bool full=false)
Parse an expression
Returns:
pointer to the expression object if successful, or NULL otherwise
Parameters:
buffer - Buffer containing the string representation of the expression.
full - If this parameter is true, the parse is considered to succeed only if the expression was parsed successfully and no other tokens are left.


This class has no child classes.

alphabetic index hierarchy of classes


Condor Home Page

generated by doc++