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
38 class Table;
39 class String;
40
41
42 // <synopsis>
43 // Parse and execute the given TaQL command.
44 // It will open (and close) all tables needed.
45 // It returns the resulting table.
46 // The command type and the selected or updated
47 // column names can be returned.
48 // Zero or more temporary tables can be used in the command
49 // using the $nnn syntax.
50 // </synopsis>
51 // <group name=tableCommand>
52 TaQLResult tableCommand (const String& command);
55 const Table& tempTable);
57 const std::vector<const Table*>& tempTables);
59 Vector<String>& columnNames);
61 Vector<String>& columnNames,
62 String& commandType);
64 const std::vector<const Table*>& tempTables,
65 Vector<String>& columnNames);
67 const std::vector<const Table*>& tempTables,
68 Vector<String>& columnNames,
69 String& commandType);
70 // </group>
71
72
73} //# NAMESPACE CASACORE - END
74
75#endif
String: the storage and methods of handling collections of characters.
Definition String.h:223
this file contains all the compiler specific defines
Definition mainpage.dox:28
TaQLResult tableCommand(const String &command)