|
casacore
|
#include <TableParseTableList.h>
Public Member Functions | |
| TableParsePair () | |
| TableParsePair (const Table &table, Int tabnr, const String &name, const String &shorthand, Int joinIndex=-1) | |
| Associate the table and 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 String & | name () const |
| Get the given table name. | |
| const String & | shorthand () const |
| Get the shorthand. | |
| const Table & | table () const |
| Get table object. | |
| Table & | table () |
| TableExprInfo | getTableInfo () const |
| Get it as a TableExprInfo object. | |
| Int | joinIndex () const |
| Get the index of the table in the list of join objects. | |
| void | replaceTable (const Table &table) |
| Replace the Table object. | |
Private Attributes | |
| Int | tabnr_p |
| Int | joinIndex_p |
| String | name_p |
| String | shorthand_p |
| Table | table_p |
Class binding a shorthand to a table name.
Internal
This class is used by TableParse to associate a Table object and its shorthand name (as used in TaQL).
Definition at line 55 of file TableParseTableList.h.
|
inline |
Definition at line 59 of file TableParseTableList.h.
| casacore::TableParsePair::TableParsePair | ( | const Table & | table, |
| Int | tabnr, | ||
| const String & | name, | ||
| const String & | shorthand, | ||
| Int | joinIndex = -1 |
||
| ) |
Associate the table and the shorthand.
The full name and the table number (from $i) can also be given.
| TableExprInfo casacore::TableParsePair::getTableInfo | ( | ) | const |
Get it as a TableExprInfo object.
|
inline |
Get the index of the table in the list of join objects.
<0 means that it is no join table.
Definition at line 95 of file TableParseTableList.h.
References joinIndex_p.
|
inline |
|
inline |
Replace the Table object.
Definition at line 99 of file TableParseTableList.h.
|
inline |
|
inline |
Definition at line 87 of file TableParseTableList.h.
References table_p.
|
inline |
Get table object.
Definition at line 85 of file TableParseTableList.h.
References table_p.
Referenced by replaceTable().
|
inline |
Get the given table number (of $i tables in TempTables)
Definition at line 73 of file TableParseTableList.h.
References tabnr_p.
Test if shorthand matches.
If also matches if the given shorthand is empty.
Definition at line 69 of file TableParseTableList.h.
References casacore::String::empty(), and shorthand_p.
|
private |
Definition at line 104 of file TableParseTableList.h.
Referenced by joinIndex().
|
private |
Definition at line 105 of file TableParseTableList.h.
Referenced by name().
|
private |
Definition at line 106 of file TableParseTableList.h.
Referenced by shorthand(), and test().
|
private |
Definition at line 107 of file TableParseTableList.h.
Referenced by replaceTable(), table(), and table().
|
private |
Definition at line 103 of file TableParseTableList.h.
Referenced by tabnr().