Ignore:
Timestamp:
03/02/11 16:09:10 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2718

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...

Copy ASDM subtable that are optionally created by importasdm task.
For filler, their root names are stored as String in table keyword,
while for writer, existing tables are copied and are stored as Table
in table keyword.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MSWriter.cpp

    r2021 r2022  
    503503    fillSysCal() ;
    504504
     505  // ASDM tables
     506  const TableRecord &stKeys = table_->table().keywordSet() ;
     507  TableRecord &msKeys = mstable_->rwKeywordSet() ;
     508  uInt nfields = stKeys.nfields() ;
     509  for ( uInt ifield = 0 ; ifield < nfields ; ifield++ ) {
     510    String kname = stKeys.name( ifield ) ;
     511    if ( kname.find( "ASDM" ) != String::npos ) {
     512      String asdmpath = stKeys.asString( ifield ) ;
     513      os_ << "found ASDM table: " << asdmpath << LogIO::POST ;
     514      if ( Table::isReadable( asdmpath ) ) {
     515        Table newAsdmTab( asdmpath, Table::Old ) ;
     516        newAsdmTab.copy( filename_+"/"+kname, Table::New ) ;
     517        os_ << "add subtable: " << kname << LogIO::POST ;
     518        msKeys.defineTable( kname, Table( filename_+"/"+kname, Table::Old ) ) ;
     519      }
     520    }
     521  }
     522
    505523  // replace POINTING table with original one if exists
    506524  if ( ptTabName_ != "" ) {
Note: See TracChangeset for help on using the changeset viewer.