casacore::TaQLConstNodeRep Class Reference

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

#include <TaQLNodeDer.h>

Inheritance diagram for casacore::TaQLConstNodeRep:
casacore::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 61 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 65 of file TaQLNodeDer.h.


Constructor & Destructor Documentation

casacore::TaQLConstNodeRep::TaQLConstNodeRep ( Bool  value  )  [explicit]
casacore::TaQLConstNodeRep::TaQLConstNodeRep ( Int64  value,
Bool  isTableName = False 
) [explicit]
casacore::TaQLConstNodeRep::TaQLConstNodeRep ( Double  value  )  [explicit]
casacore::TaQLConstNodeRep::TaQLConstNodeRep ( Double  value,
const String unit 
) [explicit]
casacore::TaQLConstNodeRep::TaQLConstNodeRep ( DComplex  value  )  [explicit]
casacore::TaQLConstNodeRep::TaQLConstNodeRep ( const String value,
Bool  isTableName = False 
) [explicit]
casacore::TaQLConstNodeRep::TaQLConstNodeRep ( const MVTime value  )  [explicit]
virtual casacore::TaQLConstNodeRep::~TaQLConstNodeRep (  )  [virtual]

Member Function Documentation

const String& casacore::TaQLConstNodeRep::getString (  )  const
const String& casacore::TaQLConstNodeRep::getUnit (  )  const [inline]

Definition at line 82 of file TaQLNodeDer.h.

References itsUnit.

static TaQLConstNodeRep* casacore::TaQLConstNodeRep::restore ( AipsIO aio  )  [static]
virtual void casacore::TaQLConstNodeRep::save ( AipsIO aio  )  const [virtual]

Save the object.

Implements casacore::TaQLNodeRep.

void casacore::TaQLConstNodeRep::setIsTableName (  )  [inline]

Definition at line 79 of file TaQLNodeDer.h.

References itsIsTableName, and casacore::True.

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

Print the object in an ostream.

Implements casacore::TaQLNodeRep.

virtual TaQLNodeResult casacore::TaQLConstNodeRep::visit ( TaQLNodeVisitor  )  const [virtual]

Visit a node for tree traversal.

Implements casacore::TaQLNodeRep.


Member Data Documentation

Definition at line 91 of file TaQLNodeDer.h.

Definition at line 94 of file TaQLNodeDer.h.

Definition at line 90 of file TaQLNodeDer.h.

Referenced by setIsTableName().

Definition at line 92 of file TaQLNodeDer.h.

Definition at line 93 of file TaQLNodeDer.h.

Definition at line 95 of file TaQLNodeDer.h.

Definition at line 96 of file TaQLNodeDer.h.

Definition at line 89 of file TaQLNodeDer.h.

Definition at line 97 of file TaQLNodeDer.h.

Referenced by getUnit().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1