- Timestamp:
 - 04/11/06 12:19:37 (20 years ago)
 - File:
 - 
      
- 1 edited
 
- 
          
  trunk/src/Scantable.cpp (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/src/Scantable.cpp
r1000 r1009 101 101 initFactories(); 102 102 Table tab(name, Table::Update); 103 uInt version; 104 tab.keywordSet().get("VERSION", version); 103 uInt version = tab.keywordSet().asuInt("VERSION"); 105 104 if (version != version_) { 106 105 throw(AipsError("Unsupported version of ASAP file.")); 107 106 } 108 if ( type_ == Table::Memory ) 107 if ( type_ == Table::Memory ) { 109 108 table_ = tab.copyToMemoryTable(generateName()); 110 else109 } else { 111 110 table_ = tab; 111 } 112 112 113 attachSubtables(); 113 114 originalTable_ = table_; … … 177 178 TableDesc td("", "1", TableDesc::Scratch); 178 179 td.comment() = "An ASAP Scantable"; 179 td.rwKeywordSet().define("VERSION", Int(version_));180 td.rwKeywordSet().define("VERSION", uInt(version_)); 180 181 181 182 // n Cycles  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  