casa
5.7.0-16
|
Raw TaQL parse tree node defining a constant value. More...
#include <TaQLNodeDer.h>
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) | |
TaQLConstNodeRep (Double value) | |
TaQLConstNodeRep (Double value, const String &unit) | |
TaQLConstNodeRep (DComplex value) | |
TaQLConstNodeRep (const String &value, Bool isTableName=False) | |
TaQLConstNodeRep (const MVTime &value) | |
TaQLConstNodeRep (Int64 value, const String &subTableName) | |
virtual | ~TaQLConstNodeRep () |
void | setIsTableName () |
const String & | getString () const |
const String & | getUnit () const |
virtual TaQLNodeResult | visit (TaQLNodeVisitor &) const |
Visit a node for tree traversal. More... | |
virtual void | show (std::ostream &os) const |
Print the object in an ostream. More... | |
virtual void | save (AipsIO &aio) const |
Save the object. More... | |
Public Member Functions inherited from casacore::TaQLNodeRep | |
TaQLNodeRep (int nodeType) | |
Constructor for derived classes specifying the type. More... | |
virtual | ~TaQLNodeRep () |
char | nodeType () const |
Get the node type of the derived class. More... | |
const TaQLStyle & | style () const |
Get the TaQL style. More... | |
String | addEscape (const String &str) const |
Add escape characters to a table name where needed. More... | |
Static Public Member Functions | |
static TaQLConstNodeRep * | restore (AipsIO &aio) |
Static Public Member Functions inherited from casacore::TaQLNodeRep | |
static String | checkDataType (const String &) |
Check the data type string and return its standard form. More... | |
Public Attributes | |
Type | itsType |
Bool | itsIsTableName |
Bool | itsBValue |
Int64 | itsIValue |
Double | itsRValue |
DComplex | itsCValue |
String | itsSValue |
MVTime | itsTValue |
String | itsUnit |
Raw TaQL parse tree node defining a constant value.
Internal
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.
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.
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
virtual |
const String& casacore::TaQLConstNodeRep::getString | ( | ) | const |
|
inline |
Definition at line 83 of file TaQLNodeDer.h.
References itsUnit.
|
static |
|
virtual |
Save the object.
Implements casacore::TaQLNodeRep.
|
inline |
Definition at line 80 of file TaQLNodeDer.h.
References itsIsTableName, and casacore::True.
|
virtual |
Print the object in an ostream.
Implements casacore::TaQLNodeRep.
|
virtual |
Visit a node for tree traversal.
Implements casacore::TaQLNodeRep.
Bool casacore::TaQLConstNodeRep::itsBValue |
Definition at line 92 of file TaQLNodeDer.h.
DComplex casacore::TaQLConstNodeRep::itsCValue |
Definition at line 95 of file TaQLNodeDer.h.
Bool casacore::TaQLConstNodeRep::itsIsTableName |
Definition at line 91 of file TaQLNodeDer.h.
Referenced by setIsTableName().
Int64 casacore::TaQLConstNodeRep::itsIValue |
Definition at line 93 of file TaQLNodeDer.h.
Double casacore::TaQLConstNodeRep::itsRValue |
Definition at line 94 of file TaQLNodeDer.h.
String casacore::TaQLConstNodeRep::itsSValue |
Definition at line 96 of file TaQLNodeDer.h.
MVTime casacore::TaQLConstNodeRep::itsTValue |
Definition at line 97 of file TaQLNodeDer.h.
Type casacore::TaQLConstNodeRep::itsType |
Definition at line 90 of file TaQLNodeDer.h.
String casacore::TaQLConstNodeRep::itsUnit |
Definition at line 98 of file TaQLNodeDer.h.
Referenced by getUnit().