28 #ifndef TABLES_TAQLNODEDER_H
29 #define TABLES_TAQLNODEDER_H
86 virtual void show (std::ostream& os)
const;
124 Bool ignoreBlanks,
Int maxDistance);
127 virtual void show (std::ostream& os)
const;
168 virtual void show (std::ostream& os)
const;
223 virtual void show (std::ostream& os)
const;
271 virtual void show (std::ostream& os)
const;
306 virtual void show (std::ostream& os)
const;
339 virtual void show (std::ostream& os)
const;
372 virtual void show (std::ostream& os)
const;
403 virtual void show (std::ostream& os)
const;
433 virtual void show (std::ostream& os)
const;
464 virtual void show (std::ostream& os)
const;
498 virtual void show (std::ostream& os)
const;
530 virtual void show (std::ostream& os)
const;
563 virtual void show (std::ostream& os)
const;
597 virtual void show (std::ostream& os)
const;
630 virtual void show (std::ostream& os)
const;
661 virtual void show (std::ostream& os)
const;
692 virtual void show (std::ostream& os)
const;
733 virtual void show (std::ostream& os)
const;
779 virtual void show (std::ostream& os)
const;
784 virtual void showDerived (std::ostream& os)
const = 0;
899 virtual void show (std::ostream& os)
const;
938 virtual void show (std::ostream& os)
const;
972 virtual void show (std::ostream& os)
const;
1006 virtual void show (std::ostream& os)
const;
1041 virtual void showDerived (std::ostream& os)
const;
1075 virtual void show (std::ostream& os)
const;
1109 virtual void show (std::ostream& os)
const;
1140 virtual void show (std::ostream& os)
const;
1171 virtual void showDerived (std::ostream& os)
const;
1202 virtual void show (std::ostream& os)
const;
1231 virtual void show (std::ostream& os)
const;
1260 virtual void show (std::ostream& os)
const;
1288 virtual void show (std::ostream& os)
const;
1318 virtual void showDerived (std::ostream& os)
const;
1348 virtual void show (std::ostream& os)
const;
static TaQLTableNodeRep * restore(AipsIO &aio)
Raw TaQL parse tree node defining a selection command.
TaQLRangeNodeRep(Bool leftClosed, TaQLNode start, const TaQLNode &end, Bool rightClosed)
TaQLJoinNodeRep(const TaQLMultiNode &tables, const TaQLNode &condition)
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
virtual void save(AipsIO &aio) const
Save the object.
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 TaQLConstNodeRep * restore(AipsIO &aio)
TaQLCountNodeRep(const TaQLMultiNode &with, const TaQLNode &columns, const TaQLMultiNode &tables, const TaQLNode &where)
virtual void show(std::ostream &os) const
Print the object in an ostream.
virtual void show(std::ostream &os) const
Print the object in an ostream.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
virtual void show(std::ostream &os) const
Print the object in an ostream.
static TaQLLimitOffNodeRep * restore(AipsIO &aio)
virtual void show(std::ostream &os) const
Print the object in an ostream.
TaQLColSpecNodeRep(const String &name, const String &dtype, const TaQLMultiNode &spec)
virtual ~TaQLRenDropNodeRep()
Bool getNoExecute() const
virtual void show(std::ostream &os) const
Print the object in an ostream.
virtual void show(std::ostream &os) const
Print the object in an ostream.
static TaQLColSpecNodeRep * restore(AipsIO &aio)
TaQLAddColNodeRep(const TaQLMultiNode &cols, const TaQLMultiNode &dminfo)
Raw TaQL parse tree node defining an alter table add rows command.
virtual ~TaQLQueryNodeRep()
virtual ~TaQLColSpecNodeRep()
virtual void show(std::ostream &os) const
Print the object in an ostream.
virtual void save(AipsIO &aio) const
Save the object.
virtual void save(AipsIO &aio) const
Save the object.
TaQLInsertNodeRep(const TaQLMultiNode &with, const TaQLMultiNode &tables, const TaQLMultiNode &columns, const TaQLNode &values, const TaQLNode &limit)
virtual void show(std::ostream &os) const
Print the object in an ostream.
virtual ~TaQLGivingNodeRep()
virtual ~TaQLShowNodeRep()
Raw TaQL parse tree node defining a select command.
TaQLTableNodeRep(const TaQLNode &table, const String &alias)
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
TaQLUnaryNodeRep(Type type, const TaQLNode &child)
Raw TaQL parse tree node defining an update command.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
TaQLMultiNode itsIndices1
TaQLRegexNodeRep(const String &value)
virtual void showDerived(std::ostream &os) const
static TaQLUnaryNodeRep * restore(AipsIO &aio)
virtual void saveSuper(AipsIO &aio) const
AipsIO is the object persistency mechanism of Casacore.
virtual void save(AipsIO &aio) const
Save the object.
virtual void show(std::ostream &os) const
Print the object in an ostream.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
virtual void save(AipsIO &aio) const
Save the object.
TaQLConstNodeRep(Bool value)
virtual ~TaQLTableNodeRep()
virtual ~TaQLAddColNodeRep()
static TaQLSetKeyNodeRep * restore(AipsIO &aio)
static TaQLGroupNodeRep * restore(AipsIO &aio)
TaQLColumnsNodeRep(Bool distinct, const TaQLMultiNode &nodes)
static TaQLUpdateNodeRep * restore(AipsIO &aio)
virtual void save(AipsIO &aio) const
Save the object.
virtual void show(std::ostream &os) const
Print the object in an ostream.
void setPPFix(const String &prefix, const String &postfix)
static TaQLAddColNodeRep * restore(AipsIO &aio)
static TaQLBinaryNodeRep * handleRegex(const TaQLNode &left, const TaQLRegexNode ®ex)
Handle a comparison wih a regex.
virtual void show(std::ostream &os) const
Print the object in an ostream.
virtual void show(std::ostream &os) const
Print the object in an ostream.
static TaQLColNodeRep * restore(AipsIO &aio)
virtual ~TaQLAltTabNodeRep()
TaQLUpdateNodeRep(const TaQLMultiNode &with, const TaQLMultiNode &tables, const TaQLMultiNode &update, const TaQLMultiNode &from, const TaQLNode &where, const TaQLNode &sort, const TaQLNode &limitoff)
virtual void show(std::ostream &os) const
Print the object in an ostream.
virtual void show(std::ostream &os) const
Print the object in an ostream.
virtual ~TaQLCalcNodeRep()
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
static TaQLIndexNodeRep * restore(AipsIO &aio)
virtual void showDerived(std::ostream &os) const =0
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
Raw TaQL parse tree node defining a range.
virtual void show(std::ostream &os) const
Print the object in an ostream.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
static TaQLAltTabNodeRep * restore(AipsIO &aio)
Raw TaQL parse tree node defining an alter table set keyword command.
static TaQLFuncNodeRep * restore(AipsIO &aio)
casacore::String join(Itr begin, Itr end, const casacore::String &delimiter)
Raw TaQL parse tree node defining a constant value.
TaQLMultiNode itsSubTables
Raw TaQL parse tree node defining a create table command.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
virtual casacore::String type() const
Implements RegionShape::type.
virtual void restoreSuper(AipsIO &aio)
TaQLRenDropNodeRep(Int type, const TaQLMultiNode &cols)
Raw TaQL parse tree node defining an index in a array.
virtual void save(AipsIO &aio) const
Save the object.
Raw TaQL parse tree node defining a calc command.
virtual void save(AipsIO &aio) const
Save the object.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
virtual void save(AipsIO &aio) const
Save the object.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
virtual ~TaQLConstNodeRep()
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
virtual ~TaQLSelectNodeRep()
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
virtual void save(AipsIO &aio) const
Save the object.
const_iterator end() const
Raw TaQL parse tree node defining a list of nodes.
virtual void show(std::ostream &os) const
Print the object in an ostream.
TaQLQueryNodeRep(int nodeType)
virtual ~TaQLJoinNodeRep()
virtual ~TaQLSortNodeRep()
virtual void show(std::ostream &os) const
Print the object in an ostream.
virtual void save(AipsIO &aio) const
Save the object.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
virtual ~TaQLConcTabNodeRep()
virtual void show(std::ostream &os) const
Print the object in an ostream.
virtual void showDerived(std::ostream &os) const
virtual ~TaQLInsertNodeRep()
static TaQLRegexNodeRep * restore(AipsIO &aio)
static TaQLShowNodeRep * restore(AipsIO &aio)
virtual ~TaQLRegexNodeRep()
TaQLMultiNode itsIndices2
virtual ~TaQLCountNodeRep()
virtual ~TaQLUpdExprNodeRep()
virtual void show(std::ostream &os) const
Print the object in an ostream.
virtual void showDerived(std::ostream &os) const
virtual void save(AipsIO &aio) const
Save the object.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
TaQLCalcNodeRep(const TaQLMultiNode &withTables, const TaQLMultiNode &fromTables, const TaQLNode &expr, const TaQLNode &where, const TaQLNode &sort, const TaQLNode &limitoff)
static TaQLRangeNodeRep * restore(AipsIO &aio)
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 TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
static TaQLCountNodeRep * restore(AipsIO &aio)
Raw TaQL parse tree node defining a delete command.
virtual void show(std::ostream &os) const
Print the object in an ostream.
virtual ~TaQLMultiNodeRep()
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
virtual ~TaQLUnaryNodeRep()
Envelope class for a node containing a list of nodes.
Raw TaQL parse tree node defining a table.
virtual void showDerived(std::ostream &os) const
virtual void show(std::ostream &os) const
Print the object in an ostream.
static TaQLKeyColNodeRep * restore(AipsIO &aio)
virtual ~TaQLRecFldNodeRep()
virtual ~TaQLSortKeyNodeRep()
virtual ~TaQLFuncNodeRep()
static TaQLRecFldNodeRep * restore(AipsIO &aio)
const String & getString() const
Raw TaQL parse tree node defining a groupby list.
virtual void save(AipsIO &aio) const
Save the object.
static TaQLGivingNodeRep * restore(AipsIO &aio)
TaQLCreTabNodeRep(const TaQLMultiNode &with, const TaQLNode &giving, const TaQLMultiNode &cols, const TaQLNode &limit, const TaQLMultiNode &dminfo)
Raw TaQL parse tree node defining a giving expression list.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
Envelope class for a node containing a constant regex value.
Raw TaQL parse tree node defining a unary operator.
Raw TaQL parse tree node defining a constant regex value.
Normal or Gaussian distribution.
Raw TaQL parse tree node defining a record field.
std::complex< Double > DComplex
virtual void show(std::ostream &os) const
Print the object in an ostream.
static TaQLDeleteNodeRep * restore(AipsIO &aio)
virtual ~TaQLSetKeyNodeRep()
virtual void show(std::ostream &os) const
Print the object in an ostream.
TaQLUpdExprNodeRep(const String &name, const String &nameMask, const TaQLNode &expr)
virtual void save(AipsIO &aio) const
Save the object.
Raw TaQL parse tree node defining an alter table command.
static TaQLMultiNodeRep * restore(AipsIO &aio)
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
virtual ~TaQLUnitNodeRep()
Raw TaQL parse tree node defining a keyword or column name.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
virtual void save(AipsIO &aio) const
Save the object.
virtual ~TaQLGroupNodeRep()
static TaQLSortKeyNodeRep * restore(AipsIO &aio)
virtual void save(AipsIO &aio) const
Save the object.
TaQLFuncNodeRep(const String &name)
virtual void save(AipsIO &aio) const
Save the object.
TaQLIndexNodeRep(const TaQLNode &start, const TaQLNode &end, const TaQLNode &incr)
bool Bool
Define the standard types used by Casacore.
virtual void save(AipsIO &aio) const
Save the object.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
Raw TaQL parse tree node defining a function.
virtual void save(AipsIO &aio) const
Save the object.
virtual ~TaQLKeyColNodeRep()
TaQLSetKeyNodeRep(const TaQLMultiNode &keyvals)
TaQLShowNodeRep(const TaQLMultiNode &names)
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
virtual void save(AipsIO &aio) const
Save the object.
TaQLConcTabNodeRep(const String &tableName, const TaQLMultiNode &tables, const TaQLMultiNode &subtableNames)
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
Raw TaQL parse tree node defining an alter table rename or drop command.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
Raw TaQL parse tree node defining a create column specification.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
TaQLBinaryNodeRep(Type type, const TaQLNode &left, const TaQLNode &right)
virtual void save(AipsIO &aio) const
Save the object.
static TaQLJoinNodeRep * restore(AipsIO &aio)
char nodeType() const
Get the node type of the derived class.
virtual void show(std::ostream &os) const
Print the object in an ostream.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
virtual void save(AipsIO &aio) const
Save the object.
virtual void show(std::ostream &os) const
Print the object in an ostream.
virtual void show(std::ostream &os) const
Print the object in an ostream.
Raw TaQL parse tree node defining a unit.
Raw TaQL parse tree node defining a column update expression.
TaQLUnitNodeRep(const String &unit, const TaQLNode &child)
virtual void save(AipsIO &aio) const
Save the object.
virtual void save(AipsIO &aio) const
Save the object.
virtual void show(std::ostream &os) const
Print the object in an ostream.
virtual ~TaQLBinaryNodeRep()
virtual void save(AipsIO &aio) const
Save the object.
virtual void save(AipsIO &aio) const
Save the object.
virtual ~TaQLColumnsNodeRep()
virtual void show(std::ostream &os) const
Print the object in an ostream.
Type
Do not change the values of this enum, as objects might be persistent.
TaQLGivingNodeRep(const String &name, const TaQLMultiNode &type)
TaQLRecFldNodeRep(const String &name, const TaQLNode &values, const String &dtype)
TaQLKeyColNodeRep(const String &name, const String &nameMask=String())
static TaQLBinaryNodeRep * restore(AipsIO &aio)
virtual ~TaQLDeleteNodeRep()
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
TaQLDeleteNodeRep(const TaQLMultiNode &with, const TaQLMultiNode &tables, const TaQLNode &where, const TaQLNode &sort, const TaQLNode &limitoff)
virtual void save(AipsIO &aio) const
Save the object.
virtual void save(AipsIO &aio) const
Save the object.
TableExprNode regex(const TableExprNode &node)
Functions for regular expression matching and pattern matching.
virtual void showDerived(std::ostream &os) const
virtual void show(std::ostream &os) const
Print the object in an ostream.
virtual void show(std::ostream &os) const
Print the object in an ostream.
Type
Do not change the values of this enum, as objects might be persistent.
TaQLGroupNodeRep(Type type, const TaQLMultiNode &nodes)
Envelope class to hold the result of a visit to the node tree.
TaQLMultiNode itsExprList
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
static TaQLUpdExprNodeRep * restore(AipsIO &aio)
Raw TaQL parse tree node defining a limit/offset expression.
TaQLMultiNode itsCommands
void setSeparator(uInt incr, const String &sep)
std::vector< TaQLNode > itsNodes
Raw TaQL parse tree node defining a sort key.
static TaQLSelectNodeRep * restore(AipsIO &aio)
TaQLLimitOffNodeRep(const TaQLNode &limit, const TaQLNode &offset)
Raw TaQL parse tree node defining a sort list.
virtual ~TaQLIndexNodeRep()
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
static TaQLRenDropNodeRep * restore(AipsIO &aio)
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
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.
String: the storage and methods of handling collections of characters.
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.
virtual void save(AipsIO &aio) const
Save the object.
Envelope class for a node in the raw TaQL parse tree.
const std::vector< TaQLNode > & getNodes() const
static TaQLUnitNodeRep * restore(AipsIO &aio)
static TaQLAddRowNodeRep * restore(AipsIO &aio)
TaQLSortKeyNodeRep(Type type, const TaQLNode &child)
TaQLColNodeRep(const TaQLNode &expr, const String &name, const String &nameMask, const String &dtype)
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
virtual void save(AipsIO &aio) const
Save the object.
Class to visit the nodes in the raw TaQL parse tree.
virtual ~TaQLRangeNodeRep()
TaQLSortNodeRep(Bool unique, Type type, const TaQLMultiNode &keys)
virtual ~TaQLUpdateNodeRep()
Type
Do not change the values of this enum, as objects might be persistent.
virtual void save(AipsIO &aio) const
Save the object.
Type
Do not change the values of this enum, as objects might be persistent.
virtual void save(AipsIO &aio) const
Save the object.
Class to handle date/time type conversions and I/O.
Bool getFromExecute() const
static TaQLInsertNodeRep * restore(AipsIO &aio)
void setSeparator(const String &sep)
virtual void save(AipsIO &aio) const
Save the object.
static TaQLColumnsNodeRep * restore(AipsIO &aio)
static TaQLCreTabNodeRep * restore(AipsIO &aio)
virtual void save(AipsIO &aio) const
Save the object.
static TaQLCalcNodeRep * restore(AipsIO &aio)
const String & getUnit() const
virtual ~TaQLColNodeRep()
virtual ~TaQLLimitOffNodeRep()
Raw TaQL parse tree node defining a binary operator.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
virtual TaQLNodeResult visit(TaQLNodeVisitor &) const
Visit a node for tree traversal.
virtual void save(AipsIO &aio) const
Save the object.
Raw TaQL parse tree node defining an alter table command.
virtual ~TaQLAddRowNodeRep()
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.
TaQLAddRowNodeRep(const TaQLNode &nrow)
virtual void show(std::ostream &os) const
Print the object in an ostream.
Raw TaQL parse tree node defining an insert command.
TaQLMultiNodeRep(Bool isSetOrArray=False)
virtual void save(AipsIO &aio) const
Save the object.
void add(const TaQLNode &node)
virtual ~TaQLCreTabNodeRep()
Type
Do not change the values of this enum, as objects might be persistent.
static TaQLConcTabNodeRep * restore(AipsIO &aio)
static TaQLSortNodeRep * restore(AipsIO &aio)
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.
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)