casacore
Loading...
Searching...
No Matches
TableParse.h
Go to the documentation of this file.
1// # TableParse.h: Functions to parse and execute a TaQL command
2// # Copyright (C) 1994-2022
3// # Associated Universities, Inc. Washington DC, USA.
4// #
5// # This library is free software; you can redistribute it and/or modify it
6// # under the terms of the GNU Library General Public License as published by
7// # the Free Software Foundation; either version 2 of the License, or (at your
8// # option) any later version.
9// #
10// # This library is distributed in the hope that it will be useful, but WITHOUT
11// # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12// # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13// # License for more details.
14// #
15// # You should have received a copy of the GNU Library General Public License
16// # along with this library; if not, write to the Free Software Foundation,
17// # Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18// #
19// # Correspondence concerning AIPS++ should be addressed as follows:
20// # Internet email: casa-feedback@nrao.edu.
21// # Postal address: AIPS++ Project Office
22// # National Radio Astronomy Observatory
23// # 520 Edgemont Road
24// # Charlottesville, VA 22903-2475 USA
25
26#ifndef TABLES_TABLEPARSE_H
27#define TABLES_TABLEPARSE_H
28
29// # Includes
30#include <casacore/casa/aips.h>
31#include <casacore/tables/TaQL/TaQLResult.h>
32#include <casacore/casa/Arrays/ArrayFwd.h>
33#include <vector>
34
35namespace casacore { // # NAMESPACE CASACORE - BEGIN
36
37// # Forward Declarations
38class Table;
39class String;
40
41// <synopsis>
42// Parse and execute the given TaQL command.
43// It will open (and close) all tables needed.
44// It returns the resulting table.
45// The command type and the selected or updated
46// column names can be returned.
47// Zero or more temporary tables can be used in the command
48// using the $nnn syntax.
49// </synopsis>
50// <group name=tableCommand>
51TaQLResult tableCommand(const String& command);
53TaQLResult tableCommand(const String& command, const Table& tempTable);
54TaQLResult tableCommand(const String& command, const std::vector<const Table*>& tempTables);
55TaQLResult tableCommand(const String& command, Vector<String>& columnNames);
56TaQLResult tableCommand(const String& command, Vector<String>& columnNames, String& commandType);
57TaQLResult tableCommand(const String& command, const std::vector<const Table*>& tempTables,
58 Vector<String>& columnNames);
59TaQLResult tableCommand(const String& command, const std::vector<const Table*>& tempTables,
60 Vector<String>& columnNames, String& commandType);
61// </group>
62
63} // namespace casacore
64
65#endif
String: the storage and methods of handling collections of characters.
Definition String.h:355
For temporary backward namespace compatibility, use casa as alias for casacore.
Definition mainpage.dox:28
TaQLResult tableCommand(const String &command)