#include <xbexp.h>
Public Member Functions | |
| xbExpn (xbXBase *) | |
| xbExpn Constructor | |
| virtual | ~xbExpn () |
| xbExpn Destructor | |
| xbShort | GetNextToken (const char *s, xbShort MaxLen) |
| GetNextToken. | |
| xbShort | ProcessExpression (xbExpNode *n, xbShort) |
| Short description. | |
| xbShort | ProcessExpression (xbShort opt) |
| xbExpNode * | GetTree () |
| void | SetTreeToNull () |
| xbExpNode * | GetFirstTreeNode (xbExpNode *) |
| Short description. | |
| xbExpNode * | GetFirstTreeNode () |
| xbShort | ProcessExpression (const char *exp, xbDbf *d) |
| ProcessExpression. | |
| xbShort | ParseExpression (const char *exp, xbDbf *d) |
| ParseExpression. | |
| xbExpNode * | GetExpressionHandle () |
| GetExpressionHandle. | |
| char | GetExpressionResultType (xbExpNode *) |
| GetExpressionResultType. | |
| char | GetExpressionResultType () |
| char * | GetCharResult () |
| xbString & | GetStringResult () |
| Short description. | |
| xbDouble | GetDoubleResult () |
| Short description. | |
| xbLong | GetIntResult () |
| Short description. | |
| xbShort | ProcessExpression (xbExpNode *) |
| Short description. | |
| xbShort | ProcessExpression () |
| xbShort | BuildExpressionTree (const char *Expression, xbShort MaxTokenLen, xbDbf *d) |
| BuildExpressionTree. | |
| void | InitStack () |
| Destructor. | |
| xbExpNode * | Pop () |
| Pop the top value from the stack. | |
| xbShort | Push (xbExpNode *) |
| Push a value onto the stack. | |
| xbShort | GetStackDepth () |
| void | DumpStack () |
| Short description. | |
| const char * | GetValidFuncName (xbShort funcNo) |
| void | DumpExpressionTree (xbShort printOption) |
| void | DumpExpressionTree (xbExpNode *, xbShort printOption) |
| DumpExpressionTree. | |
| void | DumpExpNode (xbExpNode *, xbShort printOption) |
| DumpExpNode. | |
| xbDouble | ABS (xbDouble) |
| Short description. | |
| xbLong | ASC (const char *) |
| Short description. | |
| xbLong | AT (const char *, const char *) |
| Short description. | |
| char * | CDOW (const char *) |
| Short description. | |
| char * | CHR (xbLong) |
| Short description. | |
| char * | CMONTH (const char *) |
| Short description. | |
| char * | CTOD (const char *) |
| Short description. | |
| char * | DATE () |
| Short description. | |
| xbLong | DAY (const char *) |
| Short description. | |
| char * | DESCEND (const char *) |
| Short description. | |
| xbLong | DESCEND (const xbDate &) |
| Short description. | |
| xbDouble | DESCEND (xbDouble) |
| Short description. | |
| xbLong | DOW (const char *) |
| Short description. | |
| char * | DTOC (const char *) |
| Short description. | |
| char * | DTOS (const char *) |
| Short description. | |
| xbDouble | EXP (xbDouble) |
| Short description. | |
| char * | IIF (xbShort, const char *, const char *) |
| Short description. | |
| xbLong | INT (xbDouble) |
| Short description. | |
| xbLong | ISALPHA (const char *) |
| Short description. | |
| xbLong | ISLOWER (const char *) |
| Short description. | |
| xbLong | ISUPPER (const char *) |
| Short description. | |
| char * | LEFT (const char *, xbShort) |
| Short description. | |
| xbLong | LEN (const char *) |
| Short description. | |
| xbDouble | LOG (xbDouble) |
| Short description. | |
| char * | LOWER (const char *) |
| Short description. | |
| char * | LTRIM (const char *) |
| Short description. | |
| xbDouble | MAX (xbDouble, xbDouble) |
| Short description. | |
| xbLong | MONTH (const char *) |
| Short description. | |
| xbDouble | MIN (xbDouble, xbDouble) |
| Short description. | |
| xbLong | RECNO (xbDbf *) |
| Short description. | |
| char * | REPLICATE (const char *, xbShort) |
| Short description. | |
| char * | RIGHT (const char *, xbShort) |
| Short description. | |
| char * | RTRIM (const char *) |
| Short description. | |
| char * | SPACE (xbShort) |
| Short description. | |
| xbDouble | SQRT (xbDouble) |
| Short description. | |
| char * | STR (const char *) |
| Short description. | |
| char * | STR (const char *, xbShort) |
| Short description. | |
| char * | STR (const char *, xbShort, xbShort) |
| Short description. | |
| char * | STR (xbDouble) |
| Short description. | |
| char * | STR (xbDouble, xbShort) |
| Short description. | |
| char * | STR (xbDouble, xbUShort length, xbShort numDecimals) |
| Short description. | |
| char * | STRZERO (const char *) |
| Short description. | |
| char * | STRZERO (const char *, xbShort) |
| Short description. | |
| char * | STRZERO (const char *, xbShort, xbShort) |
| Short description. | |
| char * | STRZERO (xbDouble) |
| Short description. | |
| char * | STRZERO (xbDouble, xbShort) |
| Short description. | |
| char * | STRZERO (xbDouble, xbShort, xbShort) |
| Short description. | |
| char * | SUBSTR (const char *, xbShort, xbShort) |
| Short description. | |
| char * | TRIM (const char *) |
| Short description. | |
| char * | UPPER (const char *) |
| Short description. | |
| xbLong | VAL (const char *) |
| Short description. | |
| xbLong | YEAR (const char *) |
| Short description. | |
Protected Member Functions | |
| xbShort | IsWhiteSpace (char) |
| IsWhiteSpace. | |
| char | IsSeparator (char) |
| IsSeparator. | |
| xbExpNode * | LoadExpNode (const char *ENodeText, const char EType, const xbShort ELen, const xbShort BufLen) |
| GetExpNode. | |
| xbShort | OperatorWeight (const char *Oper, xbShort len) |
| OperatorWeight. | |
| xbShort | ReduceComplexExpression (const char *NextToken, xbShort Len, xbExpNode *cn, xbDbf *d) |
| ReduceComplexExpression. | |
| xbShort | GetFunctionTokenLen (const char *s) |
| GetFunctionTokenLen. | |
| xbShort | ReduceFunction (const char *NextToken, xbExpNode *cn, xbDbf *d) |
| ReduceFunction. | |
| xbExpNode * | GetNextTreeNode (xbExpNode *) |
| Short description. | |
| xbShort | ProcessOperator (xbShort) |
| Short description. | |
| xbShort | ProcessFunction (char *) |
| Short description. | |
| xbShort | ValidOperation (char *, char, char) |
| Short description. | |
| char | GetOperandType (xbExpNode *) |
| Short description. | |
| xbShort | AlphaOperation (char *) |
| Short description. | |
| xbShort | NumericOperation (char *) |
| Short description. | |
| xbShort | GetFuncInfo (const char *Function, xbShort Option) |
| Get information on a function. | |
| xbDouble | GetDoub (xbExpNode *) |
| Short description. | |
| xbLong | GetInt (xbExpNode *) |
| Short description. | |
xbExpn class
This class is used for processing expressions
| xbExpn::~xbExpn | ( | ) | [virtual] |
xbExpn Destructor
| xbShort xbExpn::AlphaOperation | ( | char * | Operator | ) | [protected] |
Short description.
| Operator |
| xbLong xbExpn::ASC | ( | const char * | String | ) |
Short description.
| String |
| xbLong xbExpn::AT | ( | const char * | s1, | |
| const char * | s2 | |||
| ) |
Short description.
| s1 | ||
| s2 |
BuildExpressionTree.
| char * xbExpn::CDOW | ( | const char * | Date8 | ) |
Short description.
| Date8 |
| char * xbExpn::CHR | ( | xbLong | l | ) |
Short description.
| l |
| char * xbExpn::CMONTH | ( | const char * | Date8 | ) |
Short description.
| Date8 |
| char * xbExpn::CTOD | ( | const char * | indate | ) |
Short description.
| indate |
| char * xbExpn::DATE | ( | ) |
Short description.
| xbLong xbExpn::DAY | ( | const char * | Date8 | ) |
Short description.
| Date8 |
| char * xbExpn::DESCEND | ( | const char * | str | ) |
Short description.
| str |
| xbLong xbExpn::DOW | ( | const char * | Date8 | ) |
Short description.
| Date8 |
| char * xbExpn::DTOC | ( | const char * | Date8 | ) |
Short description.
| Date8 |
| char * xbExpn::DTOS | ( | const char * | Date8 | ) |
Short description.
| Date8 |
| void xbExpn::DumpExpressionTree | ( | xbShort | printOption | ) | [inline] |
| void xbExpn::DumpStack | ( | ) |
Short description.
| char* xbExpn::GetCharResult | ( | ) |
| xbDouble xbExpn::GetDoubleResult | ( | ) |
Short description.
| xbExpNode * xbExpn::GetExpressionHandle | ( | ) |
GetExpressionHandle.
| char xbExpn::GetExpressionResultType | ( | ) | [inline] |
| char xbExpn::GetExpressionResultType | ( | xbExpNode * | e | ) |
GetExpressionResultType.
| xbExpNode* xbExpn::GetFirstTreeNode | ( | ) | [inline] |
Get information on a function.
Returns the information specifed (Option) for the specified function.
| Function | name of function to get information about | |||||||||
| Option | One of the following:
|
| xbShort xbExpn::GetFunctionTokenLen | ( | const char * | s | ) | [protected] |
GetFunctionTokenLen.
| xbLong xbExpn::GetIntResult | ( | ) |
Short description.
| char xbExpn::GetOperandType | ( | xbExpNode * | e | ) | [protected] |
Short description.
| e |
| xbShort xbExpn::GetStackDepth | ( | ) | [inline] |
| xbString & xbExpn::GetStringResult | ( | ) |
Short description.
| xbExpNode* xbExpn::GetTree | ( | ) | [inline] |
| const char* xbExpn::GetValidFuncName | ( | xbShort | funcNo | ) | [inline] |
| char * xbExpn::IIF | ( | xbShort | ifCondition, | |
| const char * | trueRslt, | |||
| const char * | falseRslt | |||
| ) |
Short description.
| ifCondition | ||
| trueRslt | ||
| falseRslt |
| void xbExpn::InitStack | ( | ) |
Destructor.
Short description.
| xbLong xbExpn::ISALPHA | ( | const char * | String | ) |
Short description.
| String |
| xbLong xbExpn::ISLOWER | ( | const char * | String | ) |
Short description.
| String |
| char xbExpn::IsSeparator | ( | char | c | ) | [protected] |
IsSeparator.
| xbLong xbExpn::ISUPPER | ( | const char * | String | ) |
Short description.
| String |
| xbShort xbExpn::IsWhiteSpace | ( | char | c | ) | [protected] |
IsWhiteSpace.
| char * xbExpn::LEFT | ( | const char * | String, | |
| xbShort | Len | |||
| ) |
Short description.
| String | ||
| Len |
| xbLong xbExpn::LEN | ( | const char * | String | ) |
Short description.
| String |
| xbExpNode * xbExpn::LoadExpNode | ( | const char * | ENodeText, | |
| const char | EType, | |||
| const xbShort | ELen, | |||
| const xbShort | BufLen | |||
| ) | [protected] |
GetExpNode.
LoadExpNode
| char * xbExpn::LOWER | ( | const char * | String | ) |
Short description.
| String |
| char * xbExpn::LTRIM | ( | const char * | String | ) |
Short description.
| String |
| xbLong xbExpn::MONTH | ( | const char * | Date8 | ) |
Short description.
| Date8 |
| xbShort xbExpn::NumericOperation | ( | char * | Operator | ) | [protected] |
Short description.
| Operator |
OperatorWeight.
This function determines the priority of an operator
| xbExpNode * xbExpn::Pop | ( | ) |
Pop the top value from the stack.
| xbShort xbExpn::ProcessExpression | ( | ) | [inline] |
Short description.
| Wtree | ||
| RecBufSw |
| xbShort xbExpn::ProcessFunction | ( | char * | Func | ) | [protected] |
Short description.
| Func |
Short description.
| RecBufSw |
| xbShort xbExpn::ReduceComplexExpression | ( | const char * | NextToken, | |
| xbShort | Len, | |||
| xbExpNode * | cn, | |||
| xbDbf * | d | |||
| ) | [protected] |
ReduceComplexExpression.
ReduceFunction.
| char * xbExpn::REPLICATE | ( | const char * | String, | |
| xbShort | Cnt | |||
| ) |
Short description.
| String | ||
| Cnt |
| char * xbExpn::RIGHT | ( | const char * | String, | |
| xbShort | cnt | |||
| ) |
Short description.
| String | cnt |
| char * xbExpn::RTRIM | ( | const char * | String | ) |
Short description.
| String |
| void xbExpn::SetTreeToNull | ( | ) | [inline] |
| char * xbExpn::SPACE | ( | xbShort | Cnt | ) |
Short description.
| Cnt |
Short description.
| d | ||
| length | ||
| numDecimals |
| char * xbExpn::STR | ( | xbDouble | d | ) |
Short description.
| d |
Short description.
| String | ||
| length | ||
| char * xbExpn::STR | ( | const char * | String, | |
| xbShort | length | |||
| ) |
Short description.
| String | ||
| length |
| char * xbExpn::STR | ( | const char * | String | ) |
Short description.
| String |
Short description.
| d | ||
| length | ||
| char * xbExpn::STRZERO | ( | xbDouble | d | ) |
Short description.
| d |
Short description.
| String | ||
| length | ||
| char * xbExpn::STRZERO | ( | const char * | String, | |
| xbShort | length | |||
| ) |
Short description.
| String | ||
| length |
| char * xbExpn::STRZERO | ( | const char * | String | ) |
Short description.
| String |
Short description.
| String | ||
| StartPos | ||
| Len |
| char * xbExpn::TRIM | ( | const char * | String | ) |
Short description.
| String |
| char * xbExpn::UPPER | ( | const char * | String | ) |
Short description.
| String |
| xbLong xbExpn::VAL | ( | const char * | String | ) |
Short description.
| String |
| xbShort xbExpn::ValidOperation | ( | char * | Operand, | |
| char | Op1, | |||
| char | Op2 | |||
| ) | [protected] |
Short description.
| Operand | ||
| Op1 | Op2 |
| xbLong xbExpn::YEAR | ( | const char * | Date8 | ) |
Short description.
| Date8 |
1.6.1