26#ifndef TABLES_TABLEPARSETABLELIST_H
27#define TABLES_TABLEPARSETABLELIST_H
30#include <casacore/casa/aips.h>
31#include <casacore/tables/TaQL/ExprNodeRep.h>
32#include <casacore/tables/Tables/Table.h>
38 class TableParseQuery;
163 const std::vector<const Table*>& tempTables,
164 const std::vector<TableParseQuery*>& stack,
165 Int joinsIndex = -1);
176 const std::vector<TableParseQuery*>& stack);
String: the storage and methods of handling collections of characters.
Bool empty() const
Test for empty.
Class to connect a Table and its alias name.
TableExprInfo getTableInfo() const
Get it as a TableExprInfo object.
void replaceTable(const Table &table)
Replace the Table object.
Int joinIndex() const
Get the index of the table in the list of join objects.
const String & name() const
Get the given table name.
const String & shorthand() const
Get the shorthand.
Bool test(const String &str) const
Test if shorthand matches.
Int tabnr() const
Get the given table number (of $i tables in TempTables)
const Table & table() const
Get table object.
TableParsePair(const Table &table, Int tabnr, const String &name, const String &shorthand, Int joinIndex=-1)
Associate the table and the shorthand.
Class containing two lists of TableParsePair objects.
Table addTable(Int tabnr, const String &name, const Table &ttab, const String &shorthand, Bool addToFromList, const std::vector< const Table * > &tempTables, const std::vector< TableParseQuery * > &stack, Int joinsIndex=-1)
Add a table to the list of tables with the given shorthand name.
const std::vector< TableParsePair > & fromTables() const
Get the FROM tables.
std::vector< TableParsePair > & fromTablesNC()
Bool empty() const
Is the FROM table list empty?
TableExprInfo first() const
Return the first FROM table (which is usually the table to operate on).
TableRecord & findKeyword(const String &name, String &keyName, Bool update=True)
Find the keyword given in the name parameter which is split into its shorthand, column and/or keyword...
TableParsePair findTable(const String &shorthand, Bool doWith) const
Try to find the Table for the given shorthand in the table list.
void replaceTable(const Table &table)
Replace the first Table object in the FROM list with the given one.
std::vector< TableParsePair > itsFromTables
std::vector< TableParsePair > itsWithTables
static TableParsePair findTable(const String &shorthand, Bool doWith, const std::vector< TableParseQuery * > &stack)
Find a table for the given shorthand.
const Table & firstTable() const
Return the first FROM table (which is usually the table to operate on).
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.