CommentExpression Class Reference

Represents an XQuery comment expression. More...

#include <commentexpression.h>

Inheritance diagram for CommentExpression:

Inheritance graph
[legend]
Collaboration diagram for CommentExpression:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CommentExpression (const char *_comment)
 Constructor.
virtual ~CommentExpression ()
virtual void print (OutputStream &dos) const

Private Attributes

const char * comment
 The entered string (comment).


Detailed Description

Represents an XQuery comment expression.

Represents an XQuery comment expression, e.g. (: foo :) or (: (: foo :) (: bar :) :), which takes therefore a string as argument.

Note:
Currently comment expressions are only supported in front of a query and not inside a query!
Author:
Michael Schmidt

Gunnar Jehl

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

Definition at line 51 of file commentexpression.h.


Constructor & Destructor Documentation

CommentExpression::CommentExpression ( const char *  _comment  ) 

Constructor.

Constructor - creating object for a string (comment).

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

Definition at line 38 of file commentexpression.cpp.

CommentExpression::~CommentExpression (  )  [virtual]

Destructor.

Definition at line 42 of file commentexpression.cpp.

References comment.


Member Function Documentation

void CommentExpression::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 48 of file commentexpression.cpp.

References comment, and NEWLINE.


Member Data Documentation

const char * CommentExpression::comment [private]

The entered string (comment).

The entered string (comment), which is the argument of the constructor.

Definition at line 75 of file commentexpression.h.

Referenced by print(), and ~CommentExpression().


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