Changeset 2405 for trunk


Ignore:
Timestamp:
02/13/12 18:30:51 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2816

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

  • Added copyright information.
  • Got rid of unnecessary header files.
  • copy subtable rows explicitly using TableCopy::copySubTables since Table::deepCopy with noRows=True doesn't copy all rows including subtables.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STGrid.cpp

    r2398 r2405  
    1 #include <iostream>
    2 #include <fstream>
    3 #include <cfloat>
    4 
     1//
     2// C++ Implementation: STGrid
     3//
     4// Description:
     5//
     6//
     7// Author: Takeshi Nakazato <takeshi.nakazato@nao.ac.jp>, (C) 2011
     8//
     9// Copyright: See COPYING file that comes with this distribution
     10//
     11//
    512#include <casa/BasicSL/String.h>
    613#include <casa/Arrays/Vector.h>
    7 #include <casa/Arrays/Matrix.h>
    8 #include <casa/Arrays/Cube.h>
    914#include <casa/Arrays/ArrayMath.h>
    10 #include <casa/Arrays/ArrayIter.h>
    1115#include <casa/Quanta/Quantum.h>
    1216#include <casa/Quanta/QuantumHolder.h>
     
    1923#include <tables/Tables/ScalarColumn.h>
    2024#include <tables/Tables/ArrayColumn.h>
    21 #include <tables/Tables/TableIter.h>
     25#include <tables/Tables/TableCopy.h>
    2226
    2327#include <measures/Measures/MDirection.h>
     
    16601664  t.deepCopy( name, Table::New, False, t.endianFormat(), True ) ;
    16611665  tab = Table( name, Table::Update ) ;
    1662 }
    1663 
    1664 }
     1666  // 2012/02/13 TN
     1667  // explicitly copy subtables since no rows including subtables are
     1668  // copied by Table::deepCopy with noRows=True
     1669  TableCopy::copySubTables( tab, t ) ;
     1670}
     1671
     1672}
Note: See TracChangeset for help on using the changeset viewer.