#include <source.h>
Public Member Functions | |
| ClassAdParser () | |
| Constructor. | |
| ~ClassAdParser () | |
| Destructor. | |
| ClassAd * | ParseClassAd (const std::string &buffer, bool full=false) |
| ClassAd * | ParseClassAd (const std::string &buffer, int &offset) |
| ClassAd * | ParseClassAd (const char *buffer, bool full=false) |
| ClassAd * | ParseClassAd (const char *buffer, int &offset) |
| ClassAd * | ParseClassAd (FILE *file, bool full=false) |
| ClassAd * | ParseClassAd (std::istream &stream, bool full=false) |
| ClassAd * | ParseClassAd (LexerSource *lexer_source, bool full=false) |
| bool | ParseClassAd (const std::string &buffer, ClassAd &ad, bool full=false) |
| bool | ParseClassAd (const std::string &buffer, ClassAd &classad, int &offset) |
| bool | ParseClassAd (const char *buffer, ClassAd &classad, bool full=false) |
| bool | ParseClassAd (const char *buffer, ClassAd &classad, int &offset) |
| bool | ParseClassAd (FILE *file, ClassAd &classad, bool full=false) |
| bool | ParseClassAd (std::istream &stream, ClassAd &classad, bool full=false) |
| bool | ParseClassAd (LexerSource *lexer_source, ClassAd &ad, bool full=false) |
| bool | ParseExpression (const std::string &buffer, ExprTree *&expr, bool full=false) |
| bool | ParseExpression (LexerSource *lexer_source, ExprTree *&expr, bool full=false) |
| ExprTree * | ParseExpression (const std::string &buffer, bool full=false) |
| ExprTree * | ParseExpression (LexerSource *lexer_source, bool full=false) |
| ExprTree * | ParseNextExpression (void) |
| void | SetDebug (bool d) |
| Lexer::TokenType | PeekToken (void) |
| Lexer::TokenType | ConsumeToken (void) |
| ClassAdParser () | |
| Constructor. | |
| ~ClassAdParser () | |
| Destructor. | |
| ClassAd * | ParseClassAd (const std::string &buffer, bool full=false) |
| ClassAd * | ParseClassAd (const std::string &buffer, int &offset) |
| ClassAd * | ParseClassAd (const char *buffer, bool full=false) |
| ClassAd * | ParseClassAd (const char *buffer, int &offset) |
| ClassAd * | ParseClassAd (FILE *file, bool full=false) |
| ClassAd * | ParseClassAd (std::istream &stream, bool full=false) |
| ClassAd * | ParseClassAd (LexerSource *lexer_source, bool full=false) |
| bool | ParseClassAd (const std::string &buffer, ClassAd &ad, bool full=false) |
| bool | ParseClassAd (const std::string &buffer, ClassAd &classad, int &offset) |
| bool | ParseClassAd (const char *buffer, ClassAd &classad, bool full=false) |
| bool | ParseClassAd (const char *buffer, ClassAd &classad, int &offset) |
| bool | ParseClassAd (FILE *file, ClassAd &classad, bool full=false) |
| bool | ParseClassAd (std::istream &stream, ClassAd &classad, bool full=false) |
| bool | ParseClassAd (LexerSource *lexer_source, ClassAd &ad, bool full=false) |
| bool | ParseExpression (const std::string &buffer, ExprTree *&expr, bool full=false) |
| bool | ParseExpression (LexerSource *lexer_source, ExprTree *&expr, bool full=false) |
| ExprTree * | ParseExpression (const std::string &buffer, bool full=false) |
| ExprTree * | ParseExpression (LexerSource *lexer_source, bool full=false) |
| ExprTree * | ParseNextExpression (void) |
| void | SetDebug (bool d) |
| Lexer::TokenType | PeekToken (void) |
| Lexer::TokenType | ConsumeToken (void) |
This reads ClassAd strings from various sources and converts them into a ClassAd. It can read from C++ strings, C strings, FILEs, and streams.
| bool ClassAdParser::ParseClassAd | ( | const std::string & | buffer, | |
| ClassAd & | ad, | |||
| bool | full = false | |||
| ) |
Parse a ClassAd
| 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. |
| ClassAd* ClassAdParser::ParseClassAd | ( | const std::string & | buffer, | |
| bool | full = false | |||
| ) |
Parse a ClassAd
| 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. |
| ClassAd* ClassAdParser::ParseClassAd | ( | const std::string & | buffer, | |
| bool | full = false | |||
| ) |
Parse a ClassAd
| 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 ClassAdParser::ParseClassAd | ( | const std::string & | buffer, | |
| ClassAd & | ad, | |||
| bool | full = false | |||
| ) |
Parse a ClassAd
| 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. |
| ExprTree* ClassAdParser::ParseExpression | ( | const std::string & | buffer, | |
| bool | full = false | |||
| ) |
Parse an expression
| 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. |
| ExprTree* ClassAdParser::ParseExpression | ( | const std::string & | buffer, | |
| bool | full = false | |||
| ) |
Parse an expression
| 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. |
| bool ClassAdParser::ParseExpression | ( | const std::string & | buffer, | |
| ExprTree *& | expr, | |||
| bool | full = false | |||
| ) |
Parse an expression
| 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. |
| bool ClassAdParser::ParseExpression | ( | const std::string & | buffer, | |
| ExprTree *& | expr, | |||
| bool | full = false | |||
| ) |
Parse an expression
| 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. |
1.7.1