casacore
Loading...
Searching...
No Matches
RecordExpr.h
Go to the documentation of this file.
1//# RecordExpr.h: Global functions to make a expression node for a record field
2//# Copyright (C) 2000
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_RECORDEXPR_H
27#define TABLES_RECORDEXPR_H
28
29//# Includes
30#include <casacore/casa/aips.h>
31#include <casacore/tables/TaQL/ExprNode.h>
32#include <casacore/casa/Containers/RecordInterface.h>
33#include <casacore/casa/Containers/RecordDesc.h>
34
35
36
37namespace casacore { //# NAMESPACE CASACORE - BEGIN
38
39// <summary>
40// Global functions to make a expression node for a record field.
41// </summary>
42
43// <use visibility=export>
44
45// <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="">
46// </reviewed>
47//
48// <prerequisite>
49//# Classes you should understand before using this one.
50// <li> TableExprNode
51// </prerequisite>
52
53// <synopsis>
54// This file contains a few global functions to construct an expression
55// node for a field in a record.
56// </synopsis>
57
58
59// <group name=RecordExpr>
61// Make a record expression node for the given field in the record description.
62// <group>
64 Int fieldNumber);
66 const String& fieldName);
67// </group>
68
69// Make a record expression node for the given field in the record.
71 Int fieldNumber)
72 { return makeRecordExpr (record.description(), fieldNumber); }
73
74
75// Make a record expression node for the given field in the record.
76// The field can be a field in the record itself, but it can also be
77// a field in a subrecord (or subsubrecord, etc.). If it is not a field
78// in the record itself, the name must define the 'path' to the field
79// in the subrecord by preceeding the field name with the name(s) of the
80// subrecord(s) separated by dots. E.g. <src>sub1.sub2.fld</src>
82 const String& fieldName);
83// </group>
84
85
86
87
88} //# NAMESPACE CASACORE - END
89
90#endif
RecordDesc description() const
Get the description of this record.
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
int Int
Definition aipstype.h:48
TableExprNode makeRecordExpr(const RecordInterface &record, const String &fieldName)
Make a record expression node for the given field in the record.
TableExprNode makeRecordExpr(const RecordDesc &desc, const String &fieldName)
TableExprNode makeRecordExpr(const RecordDesc &desc, Int fieldNumber)
Make a record expression node for the given field in the record description.
TableExprNode makeRecordExpr(const RecordInterface &record, Int fieldNumber)
Make a record expression node for the given field in the record.
Definition RecordExpr.h:70