StringConstExpression Class Reference

Represents an XQuery string value. More...

#include <stringconstexpression.h>

Inheritance diagram for StringConstExpression:

Inheritance graph
[legend]
Collaboration diagram for StringConstExpression:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 StringConstExpression (const char *_str)
 Constructor.
virtual ~StringConstExpression ()
void print (OutputStream &dos) const
void eval (OutputStream &eos, Environment *env, unsigned modus)
virtual ValuegetNextValue ()

Private Attributes

const char * str
 The entered string.


Detailed Description

Represents an XQuery string value.

Represents an XQuery string value, e.g. "foo", which takes therefore a string as argument and returns this string.

Author:
Michael Schmidt

Gunnar Jehl

Version:
2.1
License:
Software License Agreement (BSD License)

Definition at line 50 of file stringconstexpression.h.


Constructor & Destructor Documentation

StringConstExpression::StringConstExpression ( const char *  _str  ) 

Constructor.

Constructor - creating object for a string.

Parameters:
[in] _str Pointer to a char object.

Definition at line 38 of file stringconstexpression.cpp.

References str.

StringConstExpression::~StringConstExpression (  )  [virtual]

Destructor.

Definition at line 55 of file stringconstexpression.cpp.

References str.


Member Function Documentation

void StringConstExpression::eval ( OutputStream eos,
Environment env,
unsigned  modus 
) [virtual]

Evaluates the expression in the given environment.

Evaluates the expression in the given environment. The evaluation takes place in the environment that is passed to this method. In addition, the parameter modus is one of the following: EVAL_QUERY, EVAL_QUERY_SILENT or EVAL_SIGNOFF (see also the corresponding defines for more information). This method implements the XQuery semantics for the standard expression types, but also the GCX specific extensions like signOff-statements.

Parameters:
[in] eos Pointer to a OutputStream object.
[in] env Pointer to an Environment object.
[in] modus The query evaluation mode.
Exceptions:
RuntimeException If illegal evaluation mode.

Implements ConstExpression.

Definition at line 63 of file stringconstexpression.cpp.

References EVAL_QUERY, EVAL_SIGNOFF, and str.

Value * StringConstExpression::getNextValue (  )  [virtual]

Returns the next value of the operand.

Returns the next value of the operand for iteration.

Return values:
Value* Pointer to a Value object.

Implements ConstExpression.

Definition at line 84 of file stringconstexpression.cpp.

References OperandExpression::cur_val, OperandExpression::initial, Value::setStrVal(), and str.

void StringConstExpression::print ( OutputStream dos  )  const [virtual]

Prints the expression.

Prints the expression.

Parameters:
[in] dos Pointer to a OutputStream object.
Return values:
void 

Implements Expression.

Definition at line 59 of file stringconstexpression.cpp.

References str.


Member Data Documentation

const char * StringConstExpression::str [private]

The entered string.

The entered string, which is the argument of the constructor.

Definition at line 84 of file stringconstexpression.h.

Referenced by eval(), getNextValue(), print(), StringConstExpression(), and ~StringConstExpression().


Generated on Sun May 24 20:20:30 2009 for G(arbage) C(ollected) X(Query) Engine by  doxygen 1.5.9