casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes
casa::TaQLConstNodeRep Class Reference

Raw TaQL parse tree node defining a constant value. More...

#include <TaQLNodeDer.h>

Inheritance diagram for casa::TaQLConstNodeRep:
casa::TaQLNodeRep

List of all members.

Public Types

enum  Type {
  CTBool,
  CTInt,
  CTReal,
  CTComplex,
  CTString,
  CTTime
}
 Do not change the values of this enum, as objects might be persistent. More...

Public Member Functions

 TaQLConstNodeRep (Bool value)
 TaQLConstNodeRep (Int64 value, Bool isTableName=False)
 TaQLConstNodeRep (Double value)
 TaQLConstNodeRep (Double value, const String &unit)
 TaQLConstNodeRep (DComplex value)
 TaQLConstNodeRep (const String &value, Bool isTableName=False)
 TaQLConstNodeRep (const MVTime &value)
virtual ~TaQLConstNodeRep ()
void setIsTableName ()
const StringgetString () const
const StringgetUnit () const
virtual TaQLNodeResult visit (TaQLNodeVisitor &) const
 Visit a node for tree traversal.
virtual void show (std::ostream &os) const
 Print the object in an ostream.
virtual void save (AipsIO &aio) const
 Save the object.

Static Public Member Functions

static TaQLConstNodeReprestore (AipsIO &aio)

Public Attributes

Type itsType
Bool itsIsTableName
Bool itsBValue
Int64 itsIValue
Double itsRValue
DComplex itsCValue
String itsSValue
MVTime itsTValue
String itsUnit

Detailed Description

Raw TaQL parse tree node defining a constant value.

Intended use:

Internal

Review Status

Test programs:
tTaQLNode

Prerequisite

Synopsis

This class is a TaQLNodeRep holding a constant expression or a table name. The types supported are Bool, Int, Double, DComplex, String, and MVTime. Note that a keyword or column name is represented by TaQLKeyColNodeRep.

Definition at line 60 of file TaQLNodeDer.h.


Member Enumeration Documentation

Do not change the values of this enum, as objects might be persistent.

Enumerator:
CTBool 
CTInt 
CTReal 
CTComplex 
CTString 
CTTime 

Definition at line 64 of file TaQLNodeDer.h.


Constructor & Destructor Documentation

casa::TaQLConstNodeRep::TaQLConstNodeRep ( Bool  value) [inline, explicit]

Definition at line 70 of file TaQLNodeDer.h.

casa::TaQLConstNodeRep::TaQLConstNodeRep ( Int64  value,
Bool  isTableName = False 
) [inline, explicit]

Definition at line 73 of file TaQLNodeDer.h.

casa::TaQLConstNodeRep::TaQLConstNodeRep ( Double  value) [inline, explicit]

Definition at line 77 of file TaQLNodeDer.h.

casa::TaQLConstNodeRep::TaQLConstNodeRep ( Double  value,
const String unit 
) [inline, explicit]

Definition at line 81 of file TaQLNodeDer.h.

casa::TaQLConstNodeRep::TaQLConstNodeRep ( DComplex  value) [inline, explicit]

Definition at line 85 of file TaQLNodeDer.h.

casa::TaQLConstNodeRep::TaQLConstNodeRep ( const String value,
Bool  isTableName = False 
) [inline, explicit]

Definition at line 88 of file TaQLNodeDer.h.

casa::TaQLConstNodeRep::TaQLConstNodeRep ( const MVTime value) [inline, explicit]

Definition at line 91 of file TaQLNodeDer.h.


Member Function Documentation

const String& casa::TaQLConstNodeRep::getUnit ( ) const [inline]

Definition at line 99 of file TaQLNodeDer.h.

References itsUnit.

virtual void casa::TaQLConstNodeRep::save ( AipsIO aio) const [virtual]

Save the object.

Implements casa::TaQLNodeRep.

Definition at line 96 of file TaQLNodeDer.h.

References itsIsTableName, and casa::True.

virtual void casa::TaQLConstNodeRep::show ( std::ostream &  os) const [virtual]

Print the object in an ostream.

Implements casa::TaQLNodeRep.

Visit a node for tree traversal.

Implements casa::TaQLNodeRep.


Member Data Documentation

Definition at line 108 of file TaQLNodeDer.h.

Definition at line 111 of file TaQLNodeDer.h.

Definition at line 107 of file TaQLNodeDer.h.

Referenced by setIsTableName().

Definition at line 109 of file TaQLNodeDer.h.

Definition at line 110 of file TaQLNodeDer.h.

Definition at line 112 of file TaQLNodeDer.h.

Definition at line 113 of file TaQLNodeDer.h.

Definition at line 106 of file TaQLNodeDer.h.

Definition at line 114 of file TaQLNodeDer.h.

Referenced by getUnit().


The documentation for this class was generated from the following file: