#include <msvis/MSVis/MeasurementSet2.h>
#include <casacore/ms/MSSel/MSSelection.h>
#include <casacore/tables/Tables.h>
using namespace casacore;
MeasurementSet2::MeasurementSet2 (const Table & table, MSSelection * msSelection)
: MeasurementSet (table),
msSelection_p (msSelection)
MeasurementSet2::MeasurementSet2 (const MeasurementSet2 & other)
: MeasurementSet (other),
msSelection_p = new MSSelection (* other.msSelection_p);
wasCreatedWithSelection_p = other.wasCreatedWithSelection();
MeasurementSet2::~MeasurementSet2 ()
MeasurementSet2::operator= (const MeasurementSet2 & other)
MeasurementSet::operator= (other);
msSelection_p = new MSSelection (* other.msSelection_p);
wasCreatedWithSelection_p = other.wasCreatedWithSelection();
MeasurementSet2::create (const String & filename, const MSSelection * msSelection)
MeasurementSet msOriginal (filename);
MSSelection * msSelectionCopy = new MSSelection (* msSelection);
TableExprNode node = msSelectionCopy->toTableExprNode (& msOriginal);
Table tablesel(msOriginal.tableName(), Table::Update);
MeasurementSet2 ms2 (tablesel(node, node.nrow()), msSelectionCopy);
MeasurementSet2::getMSSelection () const