Source
columns_p.dataDescription_p.putColumnCells (rows, getVisBuffer()->dataDescriptionIds());
using namespace casacore;
using namespace casa::utilj;
using namespace casacore;
namespace casa {
namespace vi {
FinalTvi2::FinalTvi2 (ViImplementation2 * inputVi,
MeasurementSet & finalMs, Bool isWritable)
: TransformingVi2 (inputVi),
columns_p (),
columnsAttached_p (false),
ms_p (finalMs)
{
VisBufferOptions options = isWritable ? VbWritable : VbNoOptions;
setVisBuffer (createAttachedVisBuffer (options));
}
FinalTvi2::~FinalTvi2 ()
{
}
//void
//FinalTvi2::configureNewSubchunk ()
//{
// // Configure the VisBuffer for the new subchunk. Most information comes from
// // the Transforming VI2 superclass which in turn gets it from its VI implementation
// // object. The main addition is the need to provide the name of the MS output and
// // the MS index which is always zero since we only support a single output MS.
//
// Vector<Int> channels = getChannels (0, 0); // args are ignored
// Int nChannels = channels.nelements();
//
// getVisBuffer()->configureNewSubchunk (0, // always the first MS
// ms_p.tableName(),
// false,
// isNewArrayId (),
// isNewFieldId (),
// isNewSpectralWindow (),
// getSubchunkId (),
// nRows(),
// nChannels,
// getVii()->nPolarizationIds(),
// getVii()->getCorrelations(),
// getVii()->getWeightScaling());
//}
void
FinalTvi2::origin ()
{
TransformingVi2::origin ();