28 #ifndef TABLES_TAQLNODEDER_H
29 #define TABLES_TAQLNODEDER_H
85 virtual void show (std::ostream& os)
const override;
86 virtual void save (
AipsIO& aio)
const override;
123 Bool ignoreBlanks,
Int maxDistance);
125 virtual void show (std::ostream& os)
const override;
126 virtual void save (
AipsIO& aio)
const override;
165 virtual void show (std::ostream& os)
const override;
166 virtual void save (
AipsIO& aio)
const override;
219 virtual void show (std::ostream& os)
const override;
220 virtual void save (
AipsIO& aio)
const override;
266 virtual void show (std::ostream& os)
const override;
267 virtual void save (
AipsIO& aio)
const override;
300 virtual void show (std::ostream& os)
const override;
301 virtual void save (
AipsIO& aio)
const override;
332 virtual void show (std::ostream& os)
const override;
333 virtual void save (
AipsIO& aio)
const override;
364 virtual void show (std::ostream& os)
const override;
365 virtual void save (
AipsIO& aio)
const override;
394 virtual void show (std::ostream& os)
const override;
395 virtual void save (
AipsIO& aio)
const override;
423 virtual void show (std::ostream& os)
const override;
424 virtual void save (
AipsIO& aio)
const override;
453 virtual void show (std::ostream& os)
const override;
454 virtual void save (
AipsIO& aio)
const override;
486 virtual void show (std::ostream& os)
const override;
487 virtual void save (
AipsIO& aio)
const override;
517 virtual void show (std::ostream& os)
const override;
518 virtual void save (
AipsIO& aio)
const override;
549 virtual void show (std::ostream& os)
const override;
550 virtual void save (
AipsIO& aio)
const override;
582 virtual void show (std::ostream& os)
const override;
583 virtual void save (
AipsIO& aio)
const override;
614 virtual void show (std::ostream& os)
const override;
615 virtual void save (
AipsIO& aio)
const override;
644 virtual void show (std::ostream& os)
const override;
645 virtual void save (
AipsIO& aio)
const override;
674 virtual void show (std::ostream& os)
const override;
675 virtual void save (
AipsIO& aio)
const override;
714 virtual void show (std::ostream& os)
const override;
715 virtual void save (
AipsIO& aio)
const override;
759 virtual void show (std::ostream& os)
const override;
764 virtual void showDerived (std::ostream& os)
const = 0;
803 virtual void showDerived (std::ostream& os)
const override;
804 virtual void save (
AipsIO& aio)
const override;
841 virtual void showDerived (std::ostream& os)
const override;
842 virtual void save (
AipsIO& aio)
const override;
876 virtual void show (std::ostream& os)
const override;
877 virtual void save (
AipsIO& aio)
const override;
914 virtual void show (std::ostream& os)
const override;
915 virtual void save (
AipsIO& aio)
const override;
947 virtual void show (std::ostream& os)
const override;
948 virtual void save (
AipsIO& aio)
const override;
980 virtual void show (std::ostream& os)
const override;
981 virtual void save (
AipsIO& aio)
const override;
1015 virtual void showDerived (std::ostream& os)
const override;
1016 virtual void save (
AipsIO& aio)
const override;
1049 virtual void show (std::ostream& os)
const override;
1050 virtual void save (
AipsIO& aio)
const override;
1083 virtual void show (std::ostream& os)
const override;
1084 virtual void save (
AipsIO& aio)
const override;
1113 virtual void show (std::ostream& os)
const override;
1114 virtual void save (
AipsIO& aio)
const override;
1142 virtual void showDerived (std::ostream& os)
const override;
1143 virtual void save (
AipsIO& aio)
const override;
1172 virtual void show (std::ostream& os)
const override;
1173 virtual void save (
AipsIO& aio)
const override;
1200 virtual void show (std::ostream& os)
const override;
1201 virtual void save (
AipsIO& aio)
const override;
1228 virtual void show (std::ostream& os)
const override;
1229 virtual void save (
AipsIO& aio)
const override;
1255 virtual void show (std::ostream& os)
const override;
1256 virtual void save (
AipsIO& aio)
const override;
1284 virtual void showDerived (std::ostream& os)
const override;
1285 virtual void save (
AipsIO& aio)
const override;
1313 virtual void show (std::ostream& os)
const override;
1314 virtual void save (
AipsIO& aio)
const override;
1340 virtual void show (std::ostream& os)
const override;
1341 virtual void save (
AipsIO& aio)
const override;
1368 virtual void show (std::ostream& os)
const override;
1369 virtual void save (
AipsIO& aio)
const override;
virtual void save(AipsIO &aio) const override
Save the object.
Raw TaQL parse tree node defining a selection command.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
virtual void save(AipsIO &aio) const override
Save the object.
TaQLRangeNodeRep(Bool leftClosed, TaQLNode start, const TaQLNode &end, Bool rightClosed)
TaQLJoinNodeRep(const TaQLMultiNode &tables, const TaQLNode &condition)
static TaQLNode restore(AipsIO &aio)
virtual void show(std::ostream &os) const override
Print the object in an ostream.
static TaQLNode restore(AipsIO &aio)
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
Raw TaQL parse tree node defining a count command.
TaQLAltTabNodeRep(const TaQLMultiNode &with, const TaQLNode &table, const TaQLMultiNode &from, const TaQLMultiNode &commands)
static TaQLNode restore(AipsIO &aio)
virtual void show(std::ostream &os) const override
Print the object in an ostream.
TaQLCopyColNodeRep(const TaQLMultiNode &names, const TaQLMultiNode &dminfo)
TaQLCountNodeRep(const TaQLMultiNode &with, const TaQLNode &columns, const TaQLMultiNode &tables, const TaQLNode &where)
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
static TaQLMultiNode restore(AipsIO &aio)
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
virtual void show(std::ostream &os) const override
Print the object in an ostream.
Bool getNoExecute() const
virtual void showDerived(std::ostream &os) const override
virtual void save(AipsIO &aio) const override
Save the object.
static TaQLNode restore(AipsIO &aio)
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
TaQLAddColNodeRep(const TaQLMultiNode &cols, const TaQLMultiNode &dminfo)
virtual void save(AipsIO &aio) const override
Save the object.
Raw TaQL parse tree node defining an alter table add rows command.
static TaQLNode restore(AipsIO &aio)
virtual void save(AipsIO &aio) const override
Save the object.
TaQLInsertNodeRep(const TaQLMultiNode &with, const TaQLMultiNode &tables, const TaQLMultiNode &columns, const TaQLNode &values, const TaQLNode &limit)
Raw TaQL parse tree node defining a select command.
TaQLTableNodeRep(const TaQLNode &table, const String &alias)
TaQLUnaryNodeRep(Type type, const TaQLNode &child)
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual void save(AipsIO &aio) const override
Save the object.
virtual void show(std::ostream &os) const override
Print the object in an ostream.
Raw TaQL parse tree node defining an update command.
TaQLMultiNode itsIndices1
TaQLRegexNodeRep(const String &value)
virtual void show(std::ostream &os) const override
Print the object in an ostream.
static TaQLNode restore(AipsIO &aio)
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
AipsIO is the object persistency mechanism of Casacore.
virtual void showDerived(std::ostream &os) const override
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
static TaQLNode restore(AipsIO &aio)
virtual void showDerived(std::ostream &os) const override
TaQLConstNodeRep(Bool value)
virtual void save(AipsIO &aio) const override
Save the object.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
virtual void save(AipsIO &aio) const override
Save the object.
TaQLColumnsNodeRep(Bool distinct, const TaQLMultiNode &nodes)
virtual void save(AipsIO &aio) const override
Save the object.
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual void save(AipsIO &aio) const override
Save the object.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
static TaQLNode restore(AipsIO &aio)
void setPPFix(const String &prefix, const String &postfix)
static TaQLBinaryNodeRep * handleRegex(const TaQLNode &left, const TaQLRegexNode ®ex)
Handle a comparison wih a regex.
TaQLUpdateNodeRep(const TaQLMultiNode &with, const TaQLMultiNode &tables, const TaQLMultiNode &update, const TaQLMultiNode &from, const TaQLNode &where, const TaQLNode &sort, const TaQLNode &limitoff)
static TaQLNode restore(AipsIO &aio)
static TaQLNode restore(AipsIO &aio)
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
virtual void show(std::ostream &os) const override
Print the object in an ostream.
static TaQLNode restore(AipsIO &aio)
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual void save(AipsIO &aio) const override
Save the object.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
virtual void showDerived(std::ostream &os) const =0
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
Raw TaQL parse tree node defining a range.
static TaQLNode restore(AipsIO &aio)
Raw TaQL parse tree node defining an alter table set keyword command.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
Raw TaQL parse tree node defining a constant value.
TaQLMultiNode itsSubTables
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
Raw TaQL parse tree node defining a create table command.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
TaQLRenDropNodeRep(Int type, const TaQLMultiNode &cols)
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
Raw TaQL parse tree node defining an index in a array.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
Raw TaQL parse tree node defining a calc command.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
static TaQLNode restore(AipsIO &aio)
static TaQLNode restore(AipsIO &aio)
static TaQLNode restore(AipsIO &aio)
virtual void save(AipsIO &aio) const override
Save the object.
static TaQLNode restore(AipsIO &aio)
Raw TaQL parse tree node defining a list of nodes.
TaQLQueryNodeRep(int nodeType)
TaQLMultiNode itsLikeDrop
static TaQLNode restore(AipsIO &aio)
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual void save(AipsIO &aio) const override
Save the object.
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual void save(AipsIO &aio) const override
Save the object.
TaQLMultiNode itsIndices2
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
TaQLDropTabNodeRep(const TaQLMultiNode &with, const TaQLMultiNode &tables)
TaQLCalcNodeRep(const TaQLMultiNode &withTables, const TaQLMultiNode &fromTables, const TaQLNode &expr, const TaQLNode &where, const TaQLNode &sort, const TaQLNode &limitoff)
virtual void save(AipsIO &aio) const override
Save the object.
Raw TaQL parse tree node defining a delete command.
static TaQLNode restore(AipsIO &aio)
Envelope class for a node containing a list of nodes.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
void restoreSuper(AipsIO &aio)
Raw TaQL parse tree node defining a table.
virtual void save(AipsIO &aio) const override
Save the object.
virtual void save(AipsIO &aio) const override
Save the object.
virtual void save(AipsIO &aio) const override
Save the object.
Raw TaQL parse tree node defining an alter table copy column command.
const String & getString() const
Raw TaQL parse tree node defining a groupby list.
Raw TaQL parse tree node defining a giving expression list.
static TaQLNode restore(AipsIO &aio)
static TaQLNode restore(AipsIO &aio)
Envelope class for a node containing a constant regex value.
static TaQLNode restore(AipsIO &aio)
Raw TaQL parse tree node defining a unary operator.
Raw TaQL parse tree node defining a constant regex value.
virtual void show(std::ostream &os) const override
Print the object in an ostream.
Normal or Gaussian distribution.
Raw TaQL parse tree node defining a record field.
std::complex< Double > DComplex
virtual void save(AipsIO &aio) const override
Save the object.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
static TaQLNode restore(AipsIO &aio)
static TaQLNode restore(AipsIO &aio)
TaQLUpdExprNodeRep(const String &name, const String &nameMask, const TaQLNode &expr)
virtual void save(AipsIO &aio) const override
Save the object.
Raw TaQL parse tree node defining an alter table command.
virtual void save(AipsIO &aio) const override
Save the object.
virtual void show(std::ostream &os) const override
Print the object in an ostream.
Raw TaQL parse tree node defining a keyword or column name.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
TaQLFuncNodeRep(const String &name)
virtual void show(std::ostream &os) const override
Print the object in an ostream.
TaQLIndexNodeRep(const TaQLNode &start, const TaQLNode &end, const TaQLNode &incr)
static TaQLNode restore(AipsIO &aio)
void saveSuper(AipsIO &aio) const
virtual void save(AipsIO &aio) const override
Save the object.
static TaQLNode restore(AipsIO &aio)
bool Bool
Define the standard types used by Casacore.
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual void save(AipsIO &aio) const override
Save the object.
Raw TaQL parse tree node defining a function.
virtual void show(std::ostream &os) const override
Print the object in an ostream.
TaQLSetKeyNodeRep(const TaQLMultiNode &keyvals)
virtual void show(std::ostream &os) const override
Print the object in an ostream.
TaQLShowNodeRep(const TaQLMultiNode &names)
virtual void save(AipsIO &aio) const override
Save the object.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
TaQLConcTabNodeRep(const String &tableName, const TaQLMultiNode &tables, const TaQLMultiNode &subtableNames)
virtual void save(AipsIO &aio) const override
Save the object.
Raw TaQL parse tree node defining an alter table rename or drop command.
Raw TaQL parse tree node defining a create column specification.
TaQLBinaryNodeRep(Type type, const TaQLNode &left, const TaQLNode &right)
virtual void save(AipsIO &aio) const override
Save the object.
virtual void show(std::ostream &os) const override
Print the object in an ostream.
char nodeType() const
Get the node type of the derived class.
virtual void save(AipsIO &aio) const override
Save the object.
static TaQLNode restore(AipsIO &aio)
Raw TaQL parse tree node defining a unit.
Raw TaQL parse tree node defining a column update expression.
static TaQLNode restore(AipsIO &aio)
TaQLUnitNodeRep(const String &unit, const TaQLNode &child)
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
Type
Do not change the values of this enum, as objects might be persistent.
static TaQLNode restore(AipsIO &aio)
TaQLGivingNodeRep(const String &name, const TaQLMultiNode &type)
TaQLRecFldNodeRep(const String &name, const TaQLNode &values, const String &dtype)
static TaQLNode restore(AipsIO &aio)
virtual void show(std::ostream &os) const override
Print the object in an ostream.
TaQLKeyColNodeRep(const String &name, const String &nameMask=String())
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
TaQLDeleteNodeRep(const TaQLMultiNode &with, const TaQLMultiNode &tables, const TaQLNode &where, const TaQLNode &sort, const TaQLNode &limitoff)
Raw TaQL parse tree node defining a DROP TABLE command.
TableExprNode regex(const TableExprNode &node)
Functions for regular expression matching and pattern matching.
virtual void showDerived(std::ostream &os) const override
virtual void save(AipsIO &aio) const override
Save the object.
Type
Do not change the values of this enum, as objects might be persistent.
static TaQLNode restore(AipsIO &aio)
TaQLGroupNodeRep(Type type, const TaQLMultiNode &nodes)
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
static TaQLNode restore(AipsIO &aio)
Envelope class to hold the result of a visit to the node tree.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
TaQLMultiNode itsExprList
virtual void show(std::ostream &os) const override
Print the object in an ostream.
Raw TaQL parse tree node defining a limit/offset expression.
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
TaQLMultiNode itsCommands
void setSeparator(uInt incr, const String &sep)
std::vector< TaQLNode > itsNodes
Raw TaQL parse tree node defining a sort key.
virtual void save(AipsIO &aio) const override
Save the object.
TaQLLimitOffNodeRep(const TaQLNode &limit, const TaQLNode &offset)
Raw TaQL parse tree node defining a sort list.
virtual void save(AipsIO &aio) const override
Save the object.
Type
Do not change the values of this enum, as objects might be persistent.
Raw TaQL parse tree node defining an alter table add column command.
virtual void save(AipsIO &aio) const override
Save the object.
virtual void save(AipsIO &aio) const override
Save the object.
String: the storage and methods of handling collections of characters.
virtual void showDerived(std::ostream &os) const override
Raw TaQL parse tree node defining a select column expression.
Raw TaQL parse tree node defining a show command.
Raw TaQL parse tree node defining a select column list.
Raw TaQL parse tree node defining a join operation.
static TaQLNode restore(AipsIO &aio)
Envelope class for a node in the raw TaQL parse tree.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
const std::vector< TaQLNode > & getNodes() const
static TaQLNode restore(AipsIO &aio)
TaQLSortKeyNodeRep(Type type, const TaQLNode &child)
TaQLColNodeRep(const TaQLNode &expr, const String &name, const String &nameMask, const String &dtype)
virtual void save(AipsIO &aio) const override
Save the object.
virtual void save(AipsIO &aio) const override
Save the object.
Class to visit the nodes in the raw TaQL parse tree.
virtual void save(AipsIO &aio) const override
Save the object.
TaQLSortNodeRep(Bool unique, Type type, const TaQLMultiNode &keys)
TaQLCreTabNodeRep(const TaQLMultiNode &with, const TaQLNode &giving, const TaQLMultiNode &likeDrop, const TaQLMultiNode &cols, const TaQLNode &limit, const TaQLMultiNode &dminfo)
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
Type
Do not change the values of this enum, as objects might be persistent.
Type
Do not change the values of this enum, as objects might be persistent.
Class to handle date/time type conversions and I/O.
Bool getFromExecute() const
void setSeparator(const String &sep)
virtual void save(AipsIO &aio) const override
Save the object.
virtual void save(AipsIO &aio) const override
Save the object.
virtual void show(std::ostream &os) const override
Print the object in an ostream.
static TaQLNode restore(AipsIO &aio)
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const override
Visit a node for tree traversal.
const String & getUnit() const
static TaQLNode restore(AipsIO &aio)
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual void show(std::ostream &os) const override
Print the object in an ostream.
virtual void save(AipsIO &aio) const override
Save the object.
Raw TaQL parse tree node defining a binary operator.
static TaQLNode restore(AipsIO &aio)
Raw TaQL parse tree node defining an alter table command.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
Representation of a node in the raw TaQL parse tree.
static TaQLNode restore(AipsIO &aio)
TaQLAddRowNodeRep(const TaQLNode &nrow)
Raw TaQL parse tree node defining an insert command.
TaQLMultiNodeRep(Bool isSetOrArray=False)
void add(const TaQLNode &node)
TaQLColSpecNodeRep(const String &name, const String &likeCol, const String &dtype, const TaQLMultiNode &spec)
Type
Do not change the values of this enum, as objects might be persistent.
TaQLSelectNodeRep(const TaQLNode &columns, const TaQLMultiNode &withTables, const TaQLNode &where, const TaQLNode &groupby, const TaQLNode &having, const TaQLNode &sort, const TaQLNode &limitoff, const TaQLNode &giving, const TaQLMultiNode &dminfo)