28 #ifndef TABLES_TAQLNODEREP_H 29 #define TABLES_TAQLNODEREP_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/tables/TaQL/TaQLNodeResult.h> 34 #include <casacore/tables/TaQL/TaQLStyle.h> 35 #include <casacore/casa/BasicSL/String.h> 42 class TaQLNodeVisitor;
83 #define TaQLNode_Null char(0) 84 #define TaQLNode_Const char(1) 85 #define TaQLNode_Unary char(2) 86 #define TaQLNode_Binary char(3) 87 #define TaQLNode_Multi char(4) 88 #define TaQLNode_Func char(5) 89 #define TaQLNode_Range char(6) 90 #define TaQLNode_Index char(7) 91 #define TaQLNode_KeyCol char(8) 92 #define TaQLNode_Table char(9) 93 #define TaQLNode_Col char(10) 94 #define TaQLNode_Columns char(11) 95 #define TaQLNode_Join char(12) 96 #define TaQLNode_SortKey char(13) 97 #define TaQLNode_Sort char(14) 98 #define TaQLNode_LimitOff char(15) 99 #define TaQLNode_Giving char(16) 100 #define TaQLNode_UpdExpr char(17) 101 #define TaQLNode_Select char(18) 102 #define TaQLNode_Update char(19) 103 #define TaQLNode_Insert char(20) 104 #define TaQLNode_Delete char(21) 105 #define TaQLNode_Calc char(22) 106 #define TaQLNode_CreTab char(23) 107 #define TaQLNode_ColSpec char(24) 108 #define TaQLNode_RecFld char(25) 109 #define TaQLNode_Unit char(26) 110 #define TaQLNode_Regex char(27) 111 #define TaQLNode_Count char(28) 112 #define TaQLNode_Groupby char(29) 131 if (rep && --rep->
itsCount == 0)
delete rep;
146 virtual void show (std::ostream& os)
const = 0;
AipsIO is the object persistency mechanism of Casacore.
virtual void save(AipsIO &aio) const =0
Save the object.
const TaQLStyle & style() const
Get the TaQL style.
static void unlink(TaQLNodeRep *rep)
Decrement the reference count.
TaQLNodeRep(int nodeType)
Constructor for derived classes specifying the type.
Class with static members defining the TaQL style.
TaQLNodeRep & operator=(const TaQLNodeRep &)
char nodeType() const
Get the node type of the derived class.
virtual void show(std::ostream &os) const =0
Print the object in an ostream.
Envelope class to hold the result of a visit to the node tree.
static TaQLNodeRep * link(TaQLNodeRep *rep)
Increment the reference count.
String: the storage and methods of handling collections of characters.
Class to visit the nodes in the raw TaQL parse tree.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const =0
Visit a node for tree traversal.
this file contains all the compiler specific defines
Representation of a node in the raw TaQL parse tree.
static String checkDataType(const String &)
Check the data type string and return its standard form.