TaQLResult.h

Classes

TaQLResult -- Class to hold the result of a TaQL command. (full description)

class TaQLResult

Interface

Public Members
TaQLResult (const Table& = Table())
explicit TaQLResult (const TableExprNode&)
Bool isTable() const
Table table() const
operator Table() const
TableExprNode node() const

Description

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

Prerequisite

Synopsis

The result of a TaQL command can be a Table or a TableExprNode. This class holds the actual result.

Motivation

It is possible to give a TaQL command resulting in a TableExprNode to make it possible to make expressions of columns.

Member Description

TaQLResult (const Table& = Table())

Construct from a Table.

explicit TaQLResult (const TableExprNode&)

Construct from a TableExprNode.

Bool isTable() const

Is the result a Table?

Table table() const

Return the result as a Table. It throws an exception if it is not a Table.

operator Table() const

Make it possible to convert automatically to a Table

TableExprNode node() const

Return the result as a TableExprNode. It throws an exception if it is not a TableExprNode.