casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CTMainColInterface.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //# CTMainColInterface.h: The generic interface for tables that can be used with MSSelection
3 //# Copyright (C) 1996,1997,1998,1999,2001
4 //# Associated Universities, Inc. Washington DC, USA.
5 //#
6 //# This library is free software; you can redistribute it and/or modify it
7 //# under the terms of the GNU Library General Public License as published by
8 //# the Free Software Foundation; either version 2 of the License, or (at your
9 //# option) any later version.
10 //#
11 //# This library is distributed in the hope that it will be useful, but WITHOUT
12 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
14 //# License for more details.
15 //#
16 //# You should have received a copy of the GNU Library General Public License
17 //# along with this library; if not, write to the Free Software Foundation,
18 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
19 //#
20 //# Correspondence concerning AIPS++ should be addressed as follows:
21 //# Internet email: aips2-request@nrao.edu.
22 //# Postal address: AIPS++ Project Office
23 //# National Radio Astronomy Observatory
24 //# 520 Edgemont Road
25 //# Charlottesville, VA 22903-2475 USA
26 //#
27 //#
28 //# $Id$
29 
30 #ifndef CT_CTMAINCOLINTERFACE_H
31 #define CT_CTMAINCOLINTERFACE_H
32 
33 #include <casa/aips.h>
34 #include <casa/BasicSL/String.h>
35 #include <casa/Arrays/Vector.h>
36 #include <casa/Arrays/Matrix.h>
37 #include <casa/Arrays/Cube.h>
38 #include <tables/TaQL/ExprNode.h>
44 namespace casa { //# NAMESPACE CASA - BEGIN
45 
46 
48  {
49  public:
52  {init(ctAsTable);}
53 
54  virtual ~CTMainColInterface() {if (ctCols_p) delete ctCols_p;};
55 
56  virtual void init(const casacore::Table& ctAsTable)
58 
60 
61  virtual casacore::Bool flagRow(const casacore::Int& i) {return allTrue(ctCols_p->flag()(i));}
62 
63  // For now, return timeEPQuant() even for exposureQuant.
64  virtual const casacore::ROScalarQuantColumn<casacore::Double>& exposureQuant() {return ctCols_p->timeEPQuant();};
65  virtual const casacore::ROScalarQuantColumn<casacore::Double>& timeQuant() {return ctCols_p->timeQuant();}
66 
67  // This is not an MS
68  virtual const casacore::MeasurementSet *asMS(){return NULL;};
69  private:
72 
73  };
74 
75 } //# NAMESPACE CASA - END
76 
77 #endif
int Int
Definition: aipstype.h:50
const casacore::ArrayColumn< casacore::Bool > & flag() const
Definition: CTMainColumns.h:78
Main interface class to a read/write table.
Definition: Table.h:153
virtual void init(const casacore::Table &ctAsTable)
virtual casacore::Bool flagRow(const casacore::Int &i)
virtual void init(const Table &msLikeTable)
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
A Table intended to hold astronomical data (a set of Measurements).
ROCTMainColumns * ctCols_p
virtual const casacore::ArrayColumn< casacore::Bool > & flag()
const casacore::ROScalarQuantColumn< casacore::Double > & timeQuant() const
Definition: CTMainColumns.h:61
virtual const casacore::ROScalarQuantColumn< casacore::Double > & timeQuant()
virtual const casacore::MeasurementSet * asMS()
This is not an MS.
const casacore::ROScalarQuantColumn< casacore::Double > & timeEPQuant() const
Definition: CTMainColumns.h:64
CTMainColInterface(const casacore::Table &ctAsTable)
virtual const casacore::ROScalarQuantColumn< casacore::Double > & exposureQuant()
For now, return timeEPQuant() even for exposureQuant.
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42